Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Mobile
Windows Mobile 5.0
Native Code
Shell
Shell Reference
Shell Functions
 SHDeviceLockAndPrompt

  Switch on low bandwidth view
Windows Mobile Version 5.0 SDK
SHDeviceLockAndPrompt
Send Feedback

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

HRESULT SHDeviceLockAndPrompt();

Parameters

None.

Return Values

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 be called only by a trusted process.

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

OS Versions: Windows CE 5.01 and later
Header: Aygshell.h
Library: Aygshell.dll


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker