1 #ifndef _DHCPCDSK_H 2 #define _DHCPCDSK_H 3 4 #ifdef __cplusplus 5 extern "C" { 6 #endif 7 8 #if (_WIN32_WINNT >= 0x0500) 9 #define DHCPCAPI_REGISTER_HANDLE_EVENT 0x00000001 10 #define DHCPCAPI_REQUEST_PERSISTENT 0x00000001 11 #define DHCPCAPI_REQUEST_SYNCHRONOUS 0x00000002 12 typedef struct _DHCPAPI_CLASSID { 13 ULONG Flags; 14 LPBYTE Data; 15 ULONG nBytesData; 16 } DHCPCAPI_CLASSID,*PDHCPCAPI_CLASSID,*LPDHCPCAPI_CLASSID; 17 typedef struct _DHCPAPI_PARAMS { 18 ULONG Flags; 19 ULONG OptionId; 20 BOOL IsVendor; 21 LPBYTE Data; 22 DWORD nBytesData; 23 } DHCPAPI_PARAMS,*PDHCPAPI_PARAMS,*LPDHCPAPI_PARAMS; 24 typedef struct _DHCPAPI_PARAMS_ARRAY { 25 ULONG nParams; 26 LPDHCPAPI_PARAMS Params; 27 } DHCPCAPI_PARAMS_ARRAY,*PDHCPCAPI_PARAMS_ARRAY,*LPDHCPCAPI_PARAMS_ARRAY; 28 VOID WINAPI DhcpCApiCleanup(void); 29 DWORD WINAPI DhcpCApiInitialize(LPDWORD); 30 DWORD WINAPI DhcpDeRegisterParamChange(DWORD,LPVOID,LPVOID); 31 DWORD WINAPI DhcpRegisterParamChange(DWORD,LPVOID,PWSTR,LPDHCPCAPI_CLASSID,DHCPCAPI_PARAMS_ARRAY,LPVOID); 32 DWORD WINAPI DhcpRemoveDNSRegistrations(void); 33 DWORD WINAPI DhcpUndoRequestParams(DWORD,LPVOID,LPWSTR,LPWSTR); 34 #endif /* (_WIN32_WINNT >= 0x0500) */ 35 36 #ifdef __cplusplus 37 } 38 #endif 39 #endif 40