ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

mswsockdef.h
Go to the documentation of this file.
00001 #pragma once
00002 
00003 #ifdef __cplusplus
00004 extern "C" {
00005 #endif
00006 
00007 #if(_WIN32_WINNT >= 0x0600)
00008 #ifdef _MSC_VER
00009 #define MSWSOCKDEF_INLINE __inline
00010 #else
00011 #define MSWSOCKDEF_INLINE extern inline
00012 #endif
00013 #endif /* (_WIN32_WINNT>=0x0600) */
00014 
00015 #ifndef ASSERT
00016 #define MSWSOCKDEF_ASSERT_UNDEFINED
00017 #define ASSERT(exp) ((VOID) 0)
00018 #endif
00019 
00020 #if(_WIN32_WINNT >= 0x0600)
00021 
00022 #ifdef _WS2DEF_
00023 
00024 extern CONST UCHAR sockaddr_size[AF_MAX];
00025 
00026 MSWSOCKDEF_INLINE
00027 UCHAR
00028 SOCKADDR_SIZE(
00029   IN ADDRESS_FAMILY af)
00030 {
00031   return (UCHAR)((af < AF_MAX) ? sockaddr_size[af]
00032                                : sockaddr_size[AF_UNSPEC]);
00033 }
00034 
00035 MSWSOCKDEF_INLINE
00036 SCOPE_LEVEL
00037 ScopeLevel(
00038   IN SCOPE_ID ScopeId)
00039 {
00040   return (SCOPE_LEVEL)ScopeId.Level;
00041 }
00042 
00043 #endif /* _WS2DEF_ */
00044 
00045 #define SIO_SET_COMPATIBILITY_MODE _WSAIOW(IOC_VENDOR,300)
00046 
00047 typedef enum _WSA_COMPATIBILITY_BEHAVIOR_ID {
00048   WsaBehaviorAll = 0,
00049   WsaBehaviorReceiveBuffering,
00050   WsaBehaviorAutoTuning
00051 } WSA_COMPATIBILITY_BEHAVIOR_ID, *PWSA_COMPATIBILITY_BEHAVIOR_ID;
00052 
00053 typedef struct _WSA_COMPATIBILITY_MODE {
00054   WSA_COMPATIBILITY_BEHAVIOR_ID BehaviorId;
00055   ULONG TargetOsVersion;
00056 } WSA_COMPATIBILITY_MODE, *PWSA_COMPATIBILITY_MODE;   
00057 
00058 #endif /* (_WIN32_WINNT>=0x0600) */
00059 
00060 #ifdef MSWSOCKDEF_ASSERT_UNDEFINED
00061 #undef ASSERT
00062 #endif
00063 
00064 #ifdef __cplusplus
00065 }
00066 #endif

Generated on Sun May 27 2012 04:31:57 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.