DhcpV4FailoverGetSystemTime function

The DhcpV4FailoverGetSystemTime function returns the current time on the DHCP server.

Syntax


DWORD DHCP_API_FUNCTION DhcpV4FailoverGetSystemTime(
  _In_opt_ LPWSTR  ServerIpAddress,
  _Out_    LPDWORD pTime
);

Parameters

ServerIpAddress [in, optional]

Pointer to a null-terminated Unicode string that represents the IP address or hostname of the DHCP server.

pTime [out]

Pointer to a DWORD that returns the current time, in seconds, elapsed since midnight, January 1, 1970, Coordinated Universal Time (UTC), on the DHCP server.

Return value

If the function succeeds, it returns ERROR_SUCCESS.

If the function fails, it returns one of the following or an error code from DHCP Server Management API Error Codes.

ValueMeaning
ERROR_INVALID_PARAMETER

One or more of the parameters were invalid.

 

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Dhcpsapi.h

Library

Dhcpsapi.lib

DLL

Dhcpsapi.dll

 

 

Show: