SHDeviceLockAndPrompt
Windows Mobile SupportedWindows Embedded CE Not Supported
8/28/2008

This function puts the device into a lock state and prompts the user to unlock it.

Syntax


HRESULT SHDeviceLockAndPrompt();
Parameters

None.

Return Value

This function returns an HRESULT value.

If the lock succeeded, S_OK is returned. Note that the return value does not confirm a device unlock. All other values indicate failure.

Remarks

SHDeviceLockAndPrompt can only be called by a privileged application.

A successful return value does not guarantee that the device was unlocked by the user, or even successfully locked, but only that the process to lock and unlock the device has started.

Requirements

Headeraygshell.h
LibraryAygshell.dll
Windows MobileWindows Mobile 6 Classic and later, Windows Mobile 6 Professional and later, Windows Mobile 6 Standard and later
See Also

Reference

Shell Functions

Tags :


Page view tracker