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.

This code sample is named MSMQ.

To setup the mobile device

  1. Execute the file Optional Windows Mobile 5.0 Server Components.exe . The MSMQ.ARM.CAB file is unpacked and copied to a folder beneath the current folder.

  2. Copy the MSMQ.ARM.CAB file onto the mobile device. You can place it in the \My Documents folder.

  3. Run the MSMQ.ARM.CAB file on the device. The MSMQ driver and administration tools are extracted and installed on the mobile device.

  4. If the mobile device does not already have a unique name, give it one now. You do this from Start> Settings> System> About> Device ID.

  5. On the mobile device, use File Explorer to navigate to the \windowsfolder, and run the executable file VisAdm.exe. This is the MSMQ Administration application, and it allows you to configure the MSMQ service.

  6. In the MSMQ Administration application, tap Shortcuts.

  7. Tap Install. There is no indication for success.

  8. Tap Register. A GUID is displayed, or if it is already registered, then a warning is displayed.

  9. Soft-reset the mobile device.

  10. On the mobile device, once again, run the executable file VisAdm.exe.

  11. In the MSMQ Administration application, tap Shortcuts.

  12. Check to make sure that the MSMQ service is running correctly. Do this by tapping Verify., and by tapping Status. If the service appears to be running properly, then you can proceed with running the code sample.

To run the code sample

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

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

    Microsoft Visual Studio launches and loads the solution.

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

  3. Deploy the solution (F5).

Development Environments

SDK:Windows Mobile Professional SDK and Windows Mobile Standard SDK

Development Environment:Visual Studio 2005 or 2008.

ActiveSync:Version 4.5.


MSMQdemonstrates how to implement Message Queuing.

You must first install the MSMQ.ARM.CABfile onto the mobile device before running this sample. You get this cab file when you download Optional Optional Windows Mobile 5.0 Server Components.exe from the Mobile Developer Center .

Feature Area

Message Queuing

Relevant APIs

MSMQ Reference


MSMQis a visual wrapper around MSMQADM.exe.

See Also