mirror of
https://github.com/reactos/reactos.git
synced 2026-07-03 05:34:27 +08:00
[DHCPCSVC][PSDK] Add parameter checks to DhcpRegisterParamChange
Also add the required definition of DHCPCAPI_REGISTER_HANDLE_EVENT.
This commit is contained in:
@@ -585,6 +585,13 @@ DhcpRegisterParamChange(
|
||||
_Inout_ LPVOID Handle)
|
||||
{
|
||||
DPRINT1("DhcpRegisterParamChange(%lx %p %S)\n", Flags, Reserved, AdapterName);
|
||||
|
||||
if (Flags != DHCPCAPI_REGISTER_HANDLE_EVENT)
|
||||
return ERROR_INVALID_PARAMETER;
|
||||
|
||||
if ((Reserved != NULL) || (AdapterName == NULL) || (Handle == NULL))
|
||||
return ERROR_INVALID_PARAMETER;
|
||||
|
||||
UNIMPLEMENTED;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -123,6 +123,8 @@ typedef struct _DHCPCAPI_CLASSID
|
||||
ULONG nBytesData;
|
||||
} DHCPCAPI_CLASSID, *PDHCPCAPI_CLASSID, *LPDHCPCAPI_CLASSID;
|
||||
|
||||
#define DHCPCAPI_REGISTER_HANDLE_EVENT 0x1
|
||||
|
||||
#define DHCPCAPI_REQUEST_PERSISTENT 0x1
|
||||
#define DHCPCAPI_REQUEST_SYNCHRONOUS 0x2
|
||||
#define DHCPCAPI_REQUEST_ASYNCHRONOUS 0x4
|
||||
|
||||
Reference in New Issue
Block a user