Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

 

How can I turn off my pocket pc with c#.net or vb.net? I only found embedded visual c++ samples:

 

--------------------------------------------------------------------------

//

// Switch off a Pocket PC

//

#include "stdafx.h"

 

int WINAPI WinMain( HINSTANCE hInstance,

HINSTANCE hPrevInstance,

LPTSTR lpCmdLine,

int nCmdShow)

{

 

// Send keypresses that mean power off

keybd_event(VK_OFF,0,KEYEVENTF_SILENT,0);

keybd_event(VK_OFF,0,(KEYEVENTF_KEYUP|KEYEVENTF_SILENT),0);

 

return 0;

}

--------------------------------------------------------------------------

 

Please help me :confused: . Thanks

 

juvi

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...