Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
4/8/2010

This code sample is named autorun. It demonstrates how to handle autorun notifications when a storage card is either inserted or removed from the mobile device.

Feature Area

Relevant APIs

The autorun.exeutility that ships with the Windows Mobile 6.5.3 DTK

Usage

To run the code sample

  1. Navigate to the solution file (*.sln), and double-click it. By default, the solution file is copied to the following folder:

    C:\Program Files\Windows Mobile 6.5.3 DTK\Samples\Common\CPP\Win32\autorun

    Microsoft Visual Studio launches and loads the solution.

  2. Build the solution (Ctrl+Shift+B).

  3. Deploy the solution (F5).

To install the certificate from the windows desktop

  1. The executable must be named "autorun.exe", and you must place it in a processor specific directory (2577) on the storage card.

  2. When the storage card is inserted, the application will be launched with "install" as its command-line parameter.

  3. When the storage card is removed, the application will be launched with "uninstall" as its command-line parameter.

Development Environments

SDK:Windows Mobile Professional SDK and Windows Mobile Standard SDK

Development Environment:Visual Studio 2005 or 2008.

ActiveSync:Version 4.5.

Comments

You must have a storage card to run this code sample.

See Also