Click here to Skip to main content
15,902,112 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: Ini file handling Pin
Sunshine Always21-Sep-09 0:53
Sunshine Always21-Sep-09 0:53 
QuestionHow to get the IMEI number of pocket PC windows Mobile Phone using VC++ Pin
programmer8127-Aug-09 19:16
programmer8127-Aug-09 19:16 
AnswerRe: How to get the IMEI number of pocket PC windows Mobile Phone using VC++ Pin
Mr. Prakash12-Sep-09 23:50
Mr. Prakash12-Sep-09 23:50 
GeneralRe: How to get the IMEI number of pocket PC windows Mobile Phone using VC++ Pin
programmer8113-Sep-09 15:59
programmer8113-Sep-09 15:59 
AnswerRe: How to get the IMEI number of pocket PC windows Mobile Phone using VC++ Pin
LHP02103-Nov-09 21:22
LHP02103-Nov-09 21:22 
QuestionTurn my PDA to USB Mass Storage Pin
dagwaping200027-Aug-09 7:34
dagwaping200027-Aug-09 7:34 
AnswerRe: Turn my PDA to USB Mass Storage Pin
Joel Ivory Johnson7-Sep-09 3:00
professionalJoel Ivory Johnson7-Sep-09 3:00 
QuestionSHDeviceLockAndPrompt problems Pin
Paulo Mitchell27-Aug-09 5:00
Paulo Mitchell27-Aug-09 5:00 
WM 6.0
Pocket PC
C#
Visual Studio 2008

I have been trying to get the above command to work in order that I can allow the user to lock the device and stick it in his pocket between jobs without it bumping around and entering spurious data.

The instructions seem quite striahtforward and I have followed them.

Declare as ......
[DllImport("aygshell.dll")]
public extern static IntPtr SHDeviceLockAndPrompt();

and call it with....

IntPtr hresult=SHDeviceLockAndPrompt();

When I run the code I get a 0 return but nothing happens.

I have signed the app and I don't get any errors or prompts on the PDA when executing. I can use the lock functionality on the PDA directly and it is fine. I have no passwords set up.

I have a few questions:

1. Does anybody have any idea what I may be doing wrong
2. Does anybody know what should happen. I added a button to one of the forms (launched by another form) in my app and used the on_click event to make the function call. I am trying to picture what should happen to the UI.
3. Assuming that I can't get this to work, does anybody have any suggestions as to how I can disable/enable the app quickly and easliy by the user. I realise that the user could just put the forms into the background and click the WM Lock button but I really need a single click solution.

Thanks
QuestionActiveSync: How to detect synchronization in progress? Pin
Vautour25-Aug-09 22:47
Vautour25-Aug-09 22:47 
QuestionMessge "the device is not ready" occur. Pin
Le@rner20-Aug-09 20:42
Le@rner20-Aug-09 20:42 
AnswerRe: Messge "the device is not ready" occur. Pin
João Paulo Figueira25-Aug-09 22:09
professionalJoão Paulo Figueira25-Aug-09 22:09 
GeneralRe: Messge "the device is not ready" occur. Pin
Le@rner25-Aug-09 22:15
Le@rner25-Aug-09 22:15 
GeneralRe: Messge "the device is not ready" occur. Pin
João Paulo Figueira25-Aug-09 22:34
professionalJoão Paulo Figueira25-Aug-09 22:34 
QuestionRe: Messge "the device is not ready" occur. Pin
ellieroth.c5-Nov-09 21:55
ellieroth.c5-Nov-09 21:55 
AnswerRe: Messge "the device is not ready" occur. Pin
João Paulo Figueira5-Nov-09 22:51
professionalJoão Paulo Figueira5-Nov-09 22:51 
GeneralRe: Messge "the device is not ready" occur. Pin
ellieroth.c5-Nov-09 23:28
ellieroth.c5-Nov-09 23:28 
GeneralRe: Messge "the device is not ready" occur. Pin
ellieroth.c6-Nov-09 2:11
ellieroth.c6-Nov-09 2:11 
QuestionLocked & full screen form for vb.net Pin
PDASensei19-Aug-09 11:03
PDASensei19-Aug-09 11:03 
AnswerRe: Locked & full screen form for vb.net Pin
Gear119-Aug-09 21:18
Gear119-Aug-09 21:18 
GeneralRe: Locked & full screen form for vb.net Pin
PDASensei24-Aug-09 9:32
PDASensei24-Aug-09 9:32 
GeneralRe: Locked & full screen form for vb.net Pin
PDASensei24-Aug-09 10:14
PDASensei24-Aug-09 10:14 
Questiontransparent cellphones Pin
bhanu2419-Aug-09 0:58
bhanu2419-Aug-09 0:58 
QuestionI cannot get the information about PR_EMAIL_ADDRESS Pin
nkh3717-Aug-09 20:32
nkh3717-Aug-09 20:32 
QuestionTreeview background colour / image Pin
jhorlock13-Aug-09 21:32
jhorlock13-Aug-09 21:32 
QuestionMaking Interactive CAB. Pin
mayurpurandare12-Aug-09 21:00
mayurpurandare12-Aug-09 21:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.