WldpQueryWindowsLockdownMode function (wldp.h)
Retrieves the current Windows secure mode. Windows can be in locked mode, unlocked normal mode, or trial mode.
Syntax
HRESULT WldpQueryWindowsLockdownMode(
PWLDP_WINDOWS_LOCKDOWN_MODE lockdownMode
);
Parameters
lockdownMode
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
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 1803 |
Minimum supported server | Windows Server 2016 |
Header | wldp.h |
Library | wldp.lib |
DLL | wldp.dll |