source: Daodan/MinGW/include/dhcpcsdk.h@ 1141

Last change on this file since 1141 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

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