WldpQueryWindowsLockdownMode function

Retrieves the current Windows secure mode. Windows can be in locked mode, unlocked normal mode, or trial mode.

Syntax

 WINAPI WldpQueryWindowsLockdownMode(
  _Out_ PWLDP_WINDOWS_LOCKDOWN_MODE lockdownMode
);

Parameters

lockdownMode [out]

On success, returns a PWLDP_WINDOWS_LOCKDOWN_MODE that indicates the secure mode for the current Windows 10 device.

Return value

This method returns S_OK if successful or a failure code otherwise.

Requirements

Minimum supported client
Windows 10, version 1803 [desktop apps only]
Minimum supported server
Windows Server 2016 [desktop apps only]
Header
Wldp.h
DLL
Wldp.dll