Windows Mobile 軟重啟系統

2021-05-22 19:12:56 字數 725 閱讀 9912

在編寫windows mobile上的應用系統時,因為特殊的業務需要,需要通過軟體重啟手機,.net 託管api中不包含該介面,自己封裝了乙個。

public const uint file_device_hal = 0x00000101;

public const uint method_buffered = 0;

public const uint file_any_access = 0;

public static uint ctl_code(uint devicetype, uint function, uint method, uint access)

[system.runtime.interopservices.dllimport("coredll.dll")]

public extern static uint kerneliocontrol

(uint dwiocontrolcode,

intptr lpinbuf,

uint ninbufsize,

intptr lpoutbuf,

uint noutbufsize,

ref uint lpbytesreturned

);///

/// 重啟ppc操作

///

///

public static uint resetpocketpc()

在使用的時候,直接呼叫resetpocketpc即可。

玩轉windows mobile選單

1.wm的選單比較特殊,首先要有乙個放置選單的地方,這就是 menu bar 乙個視窗,擁有視窗控制代碼 hwnd 可以通過 showwindow 來顯示和隱藏 a 系統缺省會建立乙個空的 menu bar 如在dialog 模式下,menu bar 上只顯示了乙個輸入法圖示,returns men...

Windows Mobile開發簡介

windows mobile開發簡介 簡單介紹windows mobile上的應用軟體開發過程 os windows mobile windows mobile上的應用軟體開發主要用visual c vb,visual c ide用visual studio 2005以上版本。helloworld ...

windows mobile傳送簡訊

windows mobile傳送簡訊應用分為兩種,一是呼叫windows mobile自有的傳送簡訊視窗,將接收使用者的手機號碼傳遞給該視窗,完成簡訊傳送,另一種是通過呼叫api將文字傳送給指定的號碼,這中傳送方式對於使用者是無感知的視窗簡訊 視窗簡訊實現比較簡單,可以直接使用下面的啟動引數啟動系統...