| dhcpcsdk.h (6.1.7600.16385-Windows_7.0) | | dhcpcsdk.h (6.3.9600.17415-Windows_8.1) |
|
| | #include <winapifamily.h> |
| | |
| /*++ | | /*++ |
| | |
| Copyright (c) Microsoft Corporation. All rights reserved. | | Copyright (c) Microsoft Corporation. All rights reserved. |
| | |
| Module Name: | | Module Name: |
| | |
| dhcpcsdk.h | | dhcpcsdk.h |
| | |
| Abstract: | | Abstract: |
| | |
| | |
| skipping to change at line 43 | | skipping to change at line 45 |
| extern "C" { | | extern "C" { |
| #endif | | #endif |
| | |
| #ifndef DHCP_OPTIONS_DEFINED | | #ifndef DHCP_OPTIONS_DEFINED |
| #define DHCP_OPTIONS_DEFINED | | #define DHCP_OPTIONS_DEFINED |
| | |
| #if _MSC_VER > 1000 | | #if _MSC_VER > 1000 |
| #pragma once | | #pragma once |
| #endif | | #endif |
| | |
|
| | #pragma region Application Family |
| | #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) |
| | |
| // | | // |
| // DHCP Standard Options. | | // DHCP Standard Options. |
| // | | // |
| | |
| #define OPTION_PAD 0 | | #define OPTION_PAD 0 |
| #define OPTION_SUBNET_MASK 1 | | #define OPTION_SUBNET_MASK 1 |
| #define OPTION_TIME_OFFSET 2 | | #define OPTION_TIME_OFFSET 2 |
| #define OPTION_ROUTER_ADDRESS 3 | | #define OPTION_ROUTER_ADDRESS 3 |
| #define OPTION_TIME_SERVERS 4 | | #define OPTION_TIME_SERVERS 4 |
| #define OPTION_IEN116_NAME_SERVERS 5 | | #define OPTION_IEN116_NAME_SERVERS 5 |
| | |
| skipping to change at line 153 | | skipping to change at line 158 |
| #define OPTION_MESSAGE 56 | | #define OPTION_MESSAGE 56 |
| #define OPTION_MESSAGE_LENGTH 57 | | #define OPTION_MESSAGE_LENGTH 57 |
| #define OPTION_RENEWAL_TIME 58 // T1 | | #define OPTION_RENEWAL_TIME 58 // T1 |
| #define OPTION_REBIND_TIME 59 // T2 | | #define OPTION_REBIND_TIME 59 // T2 |
| #define OPTION_CLIENT_CLASS_INFO 60 | | #define OPTION_CLIENT_CLASS_INFO 60 |
| #define OPTION_CLIENT_ID 61 | | #define OPTION_CLIENT_ID 61 |
| | |
| #define OPTION_TFTP_SERVER_NAME 66 | | #define OPTION_TFTP_SERVER_NAME 66 |
| #define OPTION_BOOTFILE_NAME 67 | | #define OPTION_BOOTFILE_NAME 67 |
| | |
|
| | #define OPTION_MSFT_IE_PROXY 252 |
| #define OPTION_END 255 | | #define OPTION_END 255 |
| | |
|
| | #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ |
| | #pragma endregion |
| | |
| #endif DHCP_OPTIONS_DEFINED | | #endif DHCP_OPTIONS_DEFINED |
| | |
|
| | #pragma region Application Family |
| | #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) |
| | |
| #ifndef DHCPAPI_PARAMS_DEFINED | | #ifndef DHCPAPI_PARAMS_DEFINED |
| #define DHCPAPI_PARAMS_DEFINED | | #define DHCPAPI_PARAMS_DEFINED |
| typedef struct _DHCPAPI_PARAMS { // use this structure to reque
st params | | typedef struct _DHCPAPI_PARAMS { // use this structure to reque
st params |
| ULONG Flags; // for future use | | ULONG Flags; // for future use |
| ULONG OptionId; // what option is this? | | ULONG OptionId; // what option is this? |
| BOOL IsVendor; // is this vendor specific? | | BOOL IsVendor; // is this vendor specific? |
| #ifdef __midl | | #ifdef __midl |
| [size_is(nBytesData)] LPBYTE Data; // t
he actual data | | [size_is(nBytesData)] LPBYTE Data; // t
he actual data |
| #else | | #else |
|
| __field_bcount(nBytesData) LPBYTE Data; | | _Field_size_bytes_(nBytesData) LPBYTE Data; |
| #endif | | #endif |
| DWORD nBytesData; // how many bytes of data are
there in Data? | | DWORD nBytesData; // how many bytes of data are
there in Data? |
| } DHCPAPI_PARAMS, *PDHCPAPI_PARAMS, *LPDHCPAPI_PARAMS; | | } DHCPAPI_PARAMS, *PDHCPAPI_PARAMS, *LPDHCPAPI_PARAMS; |
| #endif DHCPAPI_PARAMS_DEFINED | | #endif DHCPAPI_PARAMS_DEFINED |
| | |
| typedef struct _DHCPAPI_PARAMS | | typedef struct _DHCPAPI_PARAMS |
| DHCPCAPI_PARAMS, *PDHCPCAPI_PARAMS, *LPDHCPCAPI_PARAMS; | | DHCPCAPI_PARAMS, *PDHCPCAPI_PARAMS, *LPDHCPCAPI_PARAMS; |
| | |
| typedef struct _DHCPCAPI_PARAMS_ARARAY { // array of params.. | | typedef struct _DHCPCAPI_PARAMS_ARARAY { // array of params.. |
| ULONG nParams; // size of array | | ULONG nParams; // size of array |
| #ifdef __midl | | #ifdef __midl |
| [size_is(nParams)] LPDHCPCAPI_PARAMS Params; // actu
al array | | [size_is(nParams)] LPDHCPCAPI_PARAMS Params; // actu
al array |
| #else | | #else |
|
| __field_ecount(nParams) LPDHCPCAPI_PARAMS Params; | | _Field_size_(nParams) LPDHCPCAPI_PARAMS Params; |
| #endif | | #endif |
| } DHCPCAPI_PARAMS_ARRAY, *PDHCPCAPI_PARAMS_ARRAY, *LPDHCPCAPI_PARAMS_ARRAY; | | } DHCPCAPI_PARAMS_ARRAY, *PDHCPCAPI_PARAMS_ARRAY, *LPDHCPCAPI_PARAMS_ARRAY; |
| | |
| typedef struct _DHCPCAPI_CLASSID { // defines a client class id. | | typedef struct _DHCPCAPI_CLASSID { // defines a client class id. |
| ULONG Flags; // must be zero currently. | | ULONG Flags; // must be zero currently. |
| #ifdef __midl | | #ifdef __midl |
| [size_is(nBytesData)] LPBYTE Data; // c
lassid binary data. | | [size_is(nBytesData)] LPBYTE Data; // c
lassid binary data. |
| #else | | #else |
|
| __field_bcount(nBytesData) LPBYTE Data; | | _Field_size_bytes_(nBytesData) LPBYTE Data; |
| #endif | | #endif |
| ULONG nBytesData; // how many bytes of data
are there? | | ULONG nBytesData; // how many bytes of data
are there? |
| } DHCPCAPI_CLASSID, *PDHCPCAPI_CLASSID, *LPDHCPCAPI_CLASSID; | | } DHCPCAPI_CLASSID, *PDHCPCAPI_CLASSID, *LPDHCPCAPI_CLASSID; |
| | |
| #define DHCPCAPI_REQUEST_PERSISTENT 0x01 // request this options "
permanently" | | #define DHCPCAPI_REQUEST_PERSISTENT 0x01 // request this options "
permanently" |
| #define DHCPCAPI_REQUEST_SYNCHRONOUS 0x02 // request and block on i
t | | #define DHCPCAPI_REQUEST_SYNCHRONOUS 0x02 // request and block on i
t |
| #define DHCPCAPI_REQUEST_ASYNCHRONOUS 0x04 // request and return, se
t event on completion | | #define DHCPCAPI_REQUEST_ASYNCHRONOUS 0x04 // request and return, se
t event on completion |
| #define DHCPCAPI_REQUEST_CANCEL 0x08 // cancel request | | #define DHCPCAPI_REQUEST_CANCEL 0x08 // cancel request |
| #define DHCPCAPI_REQUEST_MASK 0x0F // allowed flags.. | | #define DHCPCAPI_REQUEST_MASK 0x0F // allowed flags.. |
| | |
| | |
| skipping to change at line 217 | | skipping to change at line 229 |
| APIENTRY | | APIENTRY |
| DhcpCApiCleanup( | | DhcpCApiCleanup( |
| VOID | | VOID |
| ); | | ); |
| | |
| DWORD // win32 status | | DWORD // win32 status |
| APIENTRY | | APIENTRY |
| DhcpRequestParams( // request parameters of clien
t | | DhcpRequestParams( // request parameters of clien
t |
| IN DWORD Flags, // must be DHCPCAPI_REQUEST_SY
NCHRONOUS | | IN DWORD Flags, // must be DHCPCAPI_REQUEST_SY
NCHRONOUS |
| IN LPVOID Reserved, // this parameter is reserved | | IN LPVOID Reserved, // this parameter is reserved |
|
| __in LPWSTR AdapterName, // adapter name to request for | | _In_ LPWSTR AdapterName, // adapter name to request for |
| IN LPDHCPCAPI_CLASSID ClassId, // reserved must be NULL | | IN LPDHCPCAPI_CLASSID ClassId, // reserved must be NULL |
| IN DHCPCAPI_PARAMS_ARRAY SendParams, // parameters to send. | | IN DHCPCAPI_PARAMS_ARRAY SendParams, // parameters to send. |
| IN OUT DHCPCAPI_PARAMS_ARRAY RecdParams, // parameters that are to be r
equested.. | | IN OUT DHCPCAPI_PARAMS_ARRAY RecdParams, // parameters that are to be r
equested.. |
|
| __out_bcount_part(*pSize, *pSize) LPBYTE Buffer, // a buffer to hold data | | _Out_writes_bytes_to_(*pSize, *pSize) LPBYTE Buffer, // a buffer to hold |
| for RecdParams | | data for RecdParams |
| __inout LPDWORD pSize, // i/p: size of above in BYTES | | _Inout_ LPDWORD pSize, // i/p: size of above in BYTES |
| , o/p required bytes.. | | , o/p required bytes.. |
| __in LPWSTR RequestIdStr // needed for persistent reque | | _In_ LPWSTR RequestIdStr // needed for persistent reque |
| sts | | sts |
| ); // returns ERROR_MORE_DATA if o/p buffer is of insufficient size, and fills
in reqd size in # of bytes | | ); // returns ERROR_MORE_DATA if o/p buffer is of insufficient size, and fills
in reqd size in # of bytes |
| | |
|
| | #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ |
| | #pragma endregion |
| | |
| | #pragma region Desktop Family |
| | #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) |
| | |
| DWORD // win32 status | | DWORD // win32 status |
| APIENTRY | | APIENTRY |
| DhcpUndoRequestParams( // undo the effect of a persis
tent request -- currently undo from registry | | DhcpUndoRequestParams( // undo the effect of a persis
tent request -- currently undo from registry |
|
| __reserved DWORD Flags, // must be zero, reserved | | _Reserved_ DWORD Flags, // must be zero, reserved |
| __reserved LPVOID Reserved, // this parameter is reserved | | _Reserved_ LPVOID Reserved, // this parameter is reserved |
| __in LPWSTR AdapterName, // the name of the adpater to | | _In_ LPWSTR AdapterName, // the name of the adpater to |
| delete for | | delete for |
| __in LPWSTR RequestIdStr // needed for persistent requ | | _In_ LPWSTR RequestIdStr // needed for persistent requ |
| ests.. | | ests.. |
| ); | | ); |
| | |
| #define DHCPCAPI_REGISTER_HANDLE_EVENT 0x01 // handle returned is to
an event | | #define DHCPCAPI_REGISTER_HANDLE_EVENT 0x01 // handle returned is to
an event |
| DWORD // win32 status | | DWORD // win32 status |
| APIENTRY | | APIENTRY |
| DhcpRegisterParamChange( // notify if a parameter has c
hanged | | DhcpRegisterParamChange( // notify if a parameter has c
hanged |
| IN DWORD Flags, // must be zero, reserved | | IN DWORD Flags, // must be zero, reserved |
|
| __reserved LPVOID Reserved, // this parameter is reserv | | _Reserved_ LPVOID Reserved, // this parameter is reserv |
| ed | | ed |
| __in LPWSTR AdapterName, // adapter of interest | | _In_ LPWSTR AdapterName, // adapter of interest |
| IN LPDHCPCAPI_CLASSID ClassId, // reserved must be NULL | | IN LPDHCPCAPI_CLASSID ClassId, // reserved must be NULL |
| IN DHCPCAPI_PARAMS_ARRAY Params, // parameters of interest | | IN DHCPCAPI_PARAMS_ARRAY Params, // parameters of interest |
| IN OUT LPVOID Handle // handle to event that will b
e SetEvent'ed in case of param change | | IN OUT LPVOID Handle // handle to event that will b
e SetEvent'ed in case of param change |
| ); | | ); |
| | |
| #define DHCPCAPI_DEREGISTER_HANDLE_EVENT 0x01 // de-register handle tha
t is an event | | #define DHCPCAPI_DEREGISTER_HANDLE_EVENT 0x01 // de-register handle tha
t is an event |
| DWORD | | DWORD |
| APIENTRY | | APIENTRY |
| DhcpDeRegisterParamChange( // undo the registration | | DhcpDeRegisterParamChange( // undo the registration |
| IN DWORD Flags, // MUST BE ZERO --> No flags y
et. | | IN DWORD Flags, // MUST BE ZERO --> No flags y
et. |
| IN LPVOID Reserved, // MUST BE NULL --> Reserved | | IN LPVOID Reserved, // MUST BE NULL --> Reserved |
| IN LPVOID Event // handle to event returned by
DhcpRegisterParamChange. | | IN LPVOID Event // handle to event returned by
DhcpRegisterParamChange. |
| ); | | ); |
| | |
| DWORD | | DWORD |
| APIENTRY | | APIENTRY |
| DhcpRemoveDNSRegistrations( | | DhcpRemoveDNSRegistrations( |
| VOID | | VOID |
| ); | | ); |
| | |
|
| | DWORD |
| | APIENTRY |
| | DhcpGetOriginalSubnetMask( |
| | IN LPCWSTR sAdapterName, |
| | OUT DWORD *dwSubnetMask |
| | ); |
| | |
| | #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ |
| | #pragma endregion |
| | |
| #ifdef __cplusplus | | #ifdef __cplusplus |
| } | | } |
| #endif | | #endif |
| | |
| //==============================================================================
== | | //==============================================================================
== |
| // end of file | | // end of file |
| //==============================================================================
== | | //==============================================================================
== |
| #endif _DHCPCSDK_ | | #endif _DHCPCSDK_ |
| | |
| End of changes. 14 change blocks. |
| 19 lines changed or deleted | | 47 lines changed or added |
|