juvi Posted August 4, 2005 Posted August 4, 2005 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.