Click here to Skip to main content
15,887,214 members
Articles / Mobile Apps / Windows Mobile

Mobile Development: AutoHide Windows Mobile Device Center 2

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
29 Mar 2012CPOL1 min read 10.6K   103  
Mobile Development: AutoHide Windows Mobile Device Center 2

In an earlier post, I wrote about a tool to autohide the annoying WMDC window. As a developer, I don't like to keep WMDC come up every time I connect a device. I just need to know if the device is connected or not.

Fortunately, Henkie left a comment about a useful alternative for WMDC. But as commented here, there is no visual control of the connection.

Now I started to think about a small tool to have a visual control of WMDC connected or not. I had to use RAPI either provided by MS or via OpenNetCF.Desktop.Communication. Although the OpenNETCF one works OK, I was not satisfied, as it was impossible to get a connection status without disconnect/connect. So I went back to Win32 API and wrote this small tool based on DeviceInfo sample of Windows Mobile 6 SDK.

First, I again messed up with notification icons in Windows 7 (64bit). But the icon may be removed or not, depending on Windows 7 decisions I don't know.

So the tool uses a simple window and an icon to let you know the connection status.

Image 1

Just start the tool and the icon and edit window background will show, if device is connected or not. The application icon in the title bar as in the taskbar button will change from gray to color for a connected versa a disconnected device.

Visual Studio 2008 C/C++ Win32 code and EXE: DOWNLOAD WMDC-State2 Code and EXE

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --