Managing Applications on Storage Cards with Autorun.exe
来源:互联网 发布:爱上单片机 第3版 pdf 编辑:程序博客网 时间:2024/05/21 13:20
The autorun.exe utility that ships with the Windows Mobile SDK enables Windows Mobile software to detect a storage card that has been inserted into a mobile device and to automatically load a specified application from the storage card into active memory. This utility also enables Windows Mobile software to detect removal of the storage card and instructs the application to perform cleanup and to remove itself from active memory.
To take advantage of this tool, add the following directory structure and files to a storage card:
Root/.../2577/autorun.exe |
When a user inserts a storage card, the Windows Mobile-based device software searches the root directory of the card for a directory with the same name as the processor for that device. On Windows Mobile 2002 and later software for Pocket PCs, which are ARM based, this directory is always named 2577 — the processor type for ARM. The software then searches this directory for the autorun.exe file and loads this file to the /Windows directory in main memory on the device. Finally, the shell invokes the copy of autorun.exe on the device by using the install parameter. When the user removes the card, the shell invokes autorun.exe by using the uninstall parameter. The software also detects whether a card is inserted, removed, or swapped while power is off and takes appropriate action as soon as the device is turned on.
For example, a game developer can store game binaries and data files on a storage card. The developer can then design an autorun.exe file that adds registry settings and loads necessary files when the storage card is inserted into the device and removes these settings and files when the card is removed.
In an enterprise application, autorun.exe could be used to deploy a custom software application and data to a large number of devices. Updates to the application could be distributed to remote employees on inexpensive, low-capacity storage cards that perform automatic and trouble-free installation when inserted into the devices. If users must cold boot or replace their devices, they can simply insert the storage card that contains the application and data.
Programmers can determine the source directory for the autorun.exe file by using the SHGetAutoRunPath function. A storage card must be inserted for this function to succeed, although autorun.exe does not need to be present on the storage card.
http://msdn.microsoft.com/en-us/library/aa458852.aspx
- Managing Applications on Storage Cards with Autorun.exe
- autorun.exe
- Managing Emails on Cygwin
- Managing Windows with WMI
- Managing Access with CVS
- Autorun病毒kocmbcd.exe分析
- QUESTION 118 You are managing an Oracle Database 11g instance with ASM storage. You lost an ASM disk
- High-Availability Storage With GlusterFS On Ubuntu 9.10 - Automatic File Replication (Mirror) Across Two Storage Servers
- managing database storage structures system表空间
- QEMU KVM Libvirt手册(11): Managing Storage
- HDP学习--Managing HDFS Storage(00)
- HDP学习--Managing HDFS Storage(01)
- HDP学习--Managing HDFS Storage(02)
- Body onload with PrimeFaces autoRun
- A. Cards with Numbers
- Cards with Numbers
- ymfqplr.exe,autorun.inf,oduxyym.exe,veckdld.exe清除办法
- Managing Communications with the Emulator
- WinCE中支持多国语言切换
- FlexChart: 针对AJAX的Flash绘图应用
- C#设计模式(5)-Factory Method Pattern
- Function实现ALV Table 九:编辑功能
- 统筹规划,分布实施
- Managing Applications on Storage Cards with Autorun.exe
- JAVA学习笔记之多线程
- 软件开发相关开源项目分类
- 从数据中快速筛选想要的结果
- 外包中的“小事情”往往决定能否长期合作
- 《开源合辑-软件开发->应用服务器》
- 网购体验下一站
- C语言经典100例
- 《开源合辑-(软件开发->代码生成)之(C++)》