Click here to Skip to main content
15,896,726 members
Articles / Mobile Apps / Windows Mobile

Managed Wrapper to Connection Manager and How to Bypass the Connection Planner

Rate me:
Please Sign up or sign in to vote.
4.33/5 (11 votes)
24 Sep 2008Public Domain4 min read 69.3K   1.5K   37  
This article explains how we can bypass the Connection Planner and establish a connection using the Connection Manager APIs on Windows Mobile devices.
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CMConsole", "CMConsole\CMConsole.csproj", "{3797FC53-4BC3-4B23-941E-94E36FBEBF1B}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ApplicationBlocks", "ApplicationBlocks", "{2D45619C-5D40-4DC0-9910-9A716BCAEFBC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mobile.Configuration", "..\ApplicationBlocks\Configuration\Src\Mobile.Configuration.csproj", "{3E601F92-35BC-4259-ABA6-02256AA77F99}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mobile.ConnectionMonitor", "..\ApplicationBlocks\ConnectionMonitor\Src\Mobile.ConnectionMonitor.csproj", "{EC349725-2966-476A-89EB-8572FDE38098}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mobile.ConnectionManager", "..\ApplicationBlocks\ConnectionManager\Src\Mobile.ConnectionManager.csproj", "{4A5F81D4-61FA-4851-983E-CF289F716A06}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Debug|Mixed Platforms = Debug|Mixed Platforms
		Debug|Pocket PC 2003 (ARMV4) = Debug|Pocket PC 2003 (ARMV4)
		Debug|Smartphone 2003 (ARMV4) = Debug|Smartphone 2003 (ARMV4)
		Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
		Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I) = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
		Debug|Windows Mobile 6 Professional SDK (ARMV4I) = Debug|Windows Mobile 6 Professional SDK (ARMV4I)
		Debug|Windows Mobile 6 Standard SDK (ARMV4I) = Debug|Windows Mobile 6 Standard SDK (ARMV4I)
		Release|Any CPU = Release|Any CPU
		Release|Mixed Platforms = Release|Mixed Platforms
		Release|Pocket PC 2003 (ARMV4) = Release|Pocket PC 2003 (ARMV4)
		Release|Smartphone 2003 (ARMV4) = Release|Smartphone 2003 (ARMV4)
		Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
		Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I) = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
		Release|Windows Mobile 6 Professional SDK (ARMV4I) = Release|Windows Mobile 6 Professional SDK (ARMV4I)
		Release|Windows Mobile 6 Standard SDK (ARMV4I) = Release|Windows Mobile 6 Standard SDK (ARMV4I)
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{3797FC53-4BC3-4B23-941E-94E36FBEBF1B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{3797FC53-4BC3-4B23-941E-94E36FBEBF1B}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{3797FC53-4BC3-4B23-941E-94E36FBEBF1B}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
		{3797FC53-4BC3-4B23-941E-94E36FBEBF1B}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
		{3797FC53-4BC3-4B23-941E-94E36FBEBF1B}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
		{3797FC53-4BC3-4B23-941E-94E36FBEBF1B}.Debug|Mixed Platforms.Deploy.0 = Debug|Any CPU
		{3797FC53-4BC3-4B23-941E-94E36FBEBF1B}.Debug|Pocket PC 2003 (ARMV4).ActiveCfg = Debug|Any CPU
		{3797FC53-4BC3-4B23-941E-94E36FBEBF1B}.Debug|Smartphone 2003 (ARMV4).ActiveCfg = Debug|Any CPU
		{3797FC53-4BC3-4B23-941E-94E36FBEBF1B}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Any CPU
		{3797FC53-4BC3-4B23-941E-94E36FBEBF1B}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Debug|Any CPU
		{3797FC53-4BC3-4B23-941E-94E36FBEBF1B}.Debug|Windows Mobile 6 Professional SDK (ARMV4I).ActiveCfg = Debug|Any CPU
		{3797FC53-4BC3-4B23-941E-94E36FBEBF1B}.Debug|Windows Mobile 6 Standard SDK (ARMV4I).ActiveCfg = Debug|Any CPU
		{3797FC53-4BC3-4B23-941E-94E36FBEBF1B}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{3797FC53-4BC3-4B23-941E-94E36FBEBF1B}.Release|Any CPU.Build.0 = Release|Any CPU
		{3797FC53-4BC3-4B23-941E-94E36FBEBF1B}.Release|Any CPU.Deploy.0 = Release|Any CPU
		{3797FC53-4BC3-4B23-941E-94E36FBEBF1B}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
		{3797FC53-4BC3-4B23-941E-94E36FBEBF1B}.Release|Mixed Platforms.Build.0 = Release|Any CPU
		{3797FC53-4BC3-4B23-941E-94E36FBEBF1B}.Release|Mixed Platforms.Deploy.0 = Release|Any CPU
		{3797FC53-4BC3-4B23-941E-94E36FBEBF1B}.Release|Pocket PC 2003 (ARMV4).ActiveCfg = Release|Any CPU
		{3797FC53-4BC3-4B23-941E-94E36FBEBF1B}.Release|Smartphone 2003 (ARMV4).ActiveCfg = Release|Any CPU
		{3797FC53-4BC3-4B23-941E-94E36FBEBF1B}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Any CPU
		{3797FC53-4BC3-4B23-941E-94E36FBEBF1B}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Release|Any CPU
		{3797FC53-4BC3-4B23-941E-94E36FBEBF1B}.Release|Windows Mobile 6 Professional SDK (ARMV4I).ActiveCfg = Release|Any CPU
		{3797FC53-4BC3-4B23-941E-94E36FBEBF1B}.Release|Windows Mobile 6 Standard SDK (ARMV4I).ActiveCfg = Release|Any CPU
		{3E601F92-35BC-4259-ABA6-02256AA77F99}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{3E601F92-35BC-4259-ABA6-02256AA77F99}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{3E601F92-35BC-4259-ABA6-02256AA77F99}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
		{3E601F92-35BC-4259-ABA6-02256AA77F99}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
		{3E601F92-35BC-4259-ABA6-02256AA77F99}.Debug|Pocket PC 2003 (ARMV4).ActiveCfg = Debug|Any CPU
		{3E601F92-35BC-4259-ABA6-02256AA77F99}.Debug|Smartphone 2003 (ARMV4).ActiveCfg = Debug|Any CPU
		{3E601F92-35BC-4259-ABA6-02256AA77F99}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Any CPU
		{3E601F92-35BC-4259-ABA6-02256AA77F99}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Debug|Any CPU
		{3E601F92-35BC-4259-ABA6-02256AA77F99}.Debug|Windows Mobile 6 Professional SDK (ARMV4I).ActiveCfg = Debug|Any CPU
		{3E601F92-35BC-4259-ABA6-02256AA77F99}.Debug|Windows Mobile 6 Standard SDK (ARMV4I).ActiveCfg = Debug|Any CPU
		{3E601F92-35BC-4259-ABA6-02256AA77F99}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{3E601F92-35BC-4259-ABA6-02256AA77F99}.Release|Any CPU.Build.0 = Release|Any CPU
		{3E601F92-35BC-4259-ABA6-02256AA77F99}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
		{3E601F92-35BC-4259-ABA6-02256AA77F99}.Release|Mixed Platforms.Build.0 = Release|Any CPU
		{3E601F92-35BC-4259-ABA6-02256AA77F99}.Release|Pocket PC 2003 (ARMV4).ActiveCfg = Release|Any CPU
		{3E601F92-35BC-4259-ABA6-02256AA77F99}.Release|Smartphone 2003 (ARMV4).ActiveCfg = Release|Any CPU
		{3E601F92-35BC-4259-ABA6-02256AA77F99}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Any CPU
		{3E601F92-35BC-4259-ABA6-02256AA77F99}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Release|Any CPU
		{3E601F92-35BC-4259-ABA6-02256AA77F99}.Release|Windows Mobile 6 Professional SDK (ARMV4I).ActiveCfg = Release|Any CPU
		{3E601F92-35BC-4259-ABA6-02256AA77F99}.Release|Windows Mobile 6 Standard SDK (ARMV4I).ActiveCfg = Release|Any CPU
		{EC349725-2966-476A-89EB-8572FDE38098}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{EC349725-2966-476A-89EB-8572FDE38098}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{EC349725-2966-476A-89EB-8572FDE38098}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
		{EC349725-2966-476A-89EB-8572FDE38098}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
		{EC349725-2966-476A-89EB-8572FDE38098}.Debug|Pocket PC 2003 (ARMV4).ActiveCfg = Debug|Any CPU
		{EC349725-2966-476A-89EB-8572FDE38098}.Debug|Smartphone 2003 (ARMV4).ActiveCfg = Debug|Any CPU
		{EC349725-2966-476A-89EB-8572FDE38098}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Any CPU
		{EC349725-2966-476A-89EB-8572FDE38098}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Debug|Any CPU
		{EC349725-2966-476A-89EB-8572FDE38098}.Debug|Windows Mobile 6 Professional SDK (ARMV4I).ActiveCfg = Debug|Any CPU
		{EC349725-2966-476A-89EB-8572FDE38098}.Debug|Windows Mobile 6 Standard SDK (ARMV4I).ActiveCfg = Debug|Any CPU
		{EC349725-2966-476A-89EB-8572FDE38098}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{EC349725-2966-476A-89EB-8572FDE38098}.Release|Any CPU.Build.0 = Release|Any CPU
		{EC349725-2966-476A-89EB-8572FDE38098}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
		{EC349725-2966-476A-89EB-8572FDE38098}.Release|Mixed Platforms.Build.0 = Release|Any CPU
		{EC349725-2966-476A-89EB-8572FDE38098}.Release|Pocket PC 2003 (ARMV4).ActiveCfg = Release|Any CPU
		{EC349725-2966-476A-89EB-8572FDE38098}.Release|Smartphone 2003 (ARMV4).ActiveCfg = Release|Any CPU
		{EC349725-2966-476A-89EB-8572FDE38098}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Any CPU
		{EC349725-2966-476A-89EB-8572FDE38098}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Release|Any CPU
		{EC349725-2966-476A-89EB-8572FDE38098}.Release|Windows Mobile 6 Professional SDK (ARMV4I).ActiveCfg = Release|Any CPU
		{EC349725-2966-476A-89EB-8572FDE38098}.Release|Windows Mobile 6 Standard SDK (ARMV4I).ActiveCfg = Release|Any CPU
		{4A5F81D4-61FA-4851-983E-CF289F716A06}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{4A5F81D4-61FA-4851-983E-CF289F716A06}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{4A5F81D4-61FA-4851-983E-CF289F716A06}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
		{4A5F81D4-61FA-4851-983E-CF289F716A06}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
		{4A5F81D4-61FA-4851-983E-CF289F716A06}.Debug|Pocket PC 2003 (ARMV4).ActiveCfg = Debug|Any CPU
		{4A5F81D4-61FA-4851-983E-CF289F716A06}.Debug|Smartphone 2003 (ARMV4).ActiveCfg = Debug|Any CPU
		{4A5F81D4-61FA-4851-983E-CF289F716A06}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Any CPU
		{4A5F81D4-61FA-4851-983E-CF289F716A06}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Debug|Any CPU
		{4A5F81D4-61FA-4851-983E-CF289F716A06}.Debug|Windows Mobile 6 Professional SDK (ARMV4I).ActiveCfg = Debug|Any CPU
		{4A5F81D4-61FA-4851-983E-CF289F716A06}.Debug|Windows Mobile 6 Standard SDK (ARMV4I).ActiveCfg = Debug|Any CPU
		{4A5F81D4-61FA-4851-983E-CF289F716A06}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{4A5F81D4-61FA-4851-983E-CF289F716A06}.Release|Any CPU.Build.0 = Release|Any CPU
		{4A5F81D4-61FA-4851-983E-CF289F716A06}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
		{4A5F81D4-61FA-4851-983E-CF289F716A06}.Release|Mixed Platforms.Build.0 = Release|Any CPU
		{4A5F81D4-61FA-4851-983E-CF289F716A06}.Release|Pocket PC 2003 (ARMV4).ActiveCfg = Release|Any CPU
		{4A5F81D4-61FA-4851-983E-CF289F716A06}.Release|Smartphone 2003 (ARMV4).ActiveCfg = Release|Any CPU
		{4A5F81D4-61FA-4851-983E-CF289F716A06}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Any CPU
		{4A5F81D4-61FA-4851-983E-CF289F716A06}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Release|Any CPU
		{4A5F81D4-61FA-4851-983E-CF289F716A06}.Release|Windows Mobile 6 Professional SDK (ARMV4I).ActiveCfg = Release|Any CPU
		{4A5F81D4-61FA-4851-983E-CF289F716A06}.Release|Windows Mobile 6 Standard SDK (ARMV4I).ActiveCfg = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
	GlobalSection(NestedProjects) = preSolution
		{3E601F92-35BC-4259-ABA6-02256AA77F99} = {2D45619C-5D40-4DC0-9910-9A716BCAEFBC}
		{EC349725-2966-476A-89EB-8572FDE38098} = {2D45619C-5D40-4DC0-9910-9A716BCAEFBC}
		{4A5F81D4-61FA-4851-983E-CF289F716A06} = {2D45619C-5D40-4DC0-9910-9A716BCAEFBC}
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under A Public Domain dedication


Written By
Architect Tata Consultancy Services
India India
Naynesh Shah is a senior solution architect working with the Mobile Solutions - Technology Excellency Group of TATA Consultancy Services.

He specializes in architecting enterprise and embedded mobile solutions based on Windows CE and Windows Mobile. He is also involved in helping customers define the mobile middleware adoption strategy.

Comments and Discussions