使用微软提供的设备模拟器模拟设备休眠和唤醒是否可能?
模拟睡眠的Windows移动设备
原标题:
最佳回答
是的,但是你必须使用修改过的内核生成自己的模拟器映像(更改OEMPowerOff)。Bruce Eitman在此博客中提到了这件事。由于您没有详细说明您的需求,因此很难说,但是您可以通过手动设置命名的电源管理事件来提供某种形式的模拟。
问题回答
这是一个老的主题,但是如果其他人偶然发现它,你是可以让Windows Mobile模拟器进入睡眠和唤醒的,但不能在调试器连接时执行。
- Close the emulator window while your application is running and save the state. Or, configure power management to sleep the emulator at the desired time; the emulator will close and save its state automatically. If the debugger is attached, it will lose its connection and stop debugging.
- Open Device Emulator Manager and click Refresh until the emulator shows up as disconnected (no icon next to it). Right-click on the emulator name and select Connect.
- Emulator wakes up and reappears. If your application is listening for the wake-up notification, it will be signaled at this point.
您也可以使用Debug >附加到进程来唤醒模拟器,尽管这并不总是成功。无论哪种方式,当调试器附加时,唤醒序列已经执行。如果您可以使用调试语句,则比修改模拟器映像更容易。
相关问题
热门标签
- winforms
- combobox
- fogbugz
- java
- date
- internationalization
- asp.net
- iis
- url-rewriting
- urlrewriter
- c#
- enums
- ocaml
- haxe
- algorithm
- string
- viewstate
- .net
- c++
- c
- symbol-table
- mysql
- database
- postgresql
- licensing
- migration
- vb.net
- vb6
- declaration
- vb6-migration
- python
- psycopg2
- backup
- vmware
- virtualization
- gnu-screen
- authentication
- desktop
- excel
- xll
- cultureinfo
- regioninfo
- oracle
- client
- session
- download
- html
- virtual
- constructor
- scenarios
- perl
- full-text-search
- javascript
- ajax
- testing
- oop
- inheritance
- vim
- encapsulation
- information-hiding