views:

25

answers:

0

Hello all,

I'm trying to implement to code described by this site to interface with the Connection Manager in Windows Mobile. However, I'm having trouble calling the ConnMgrMapURL function. Here is the function declaration:

<DllImport("CellCore.dll")> _
Public Function ConnMgrMapURL(ByVal url As String, ByRef networkguid As Guid, ByVal passZero As IntPtr)

End Function

Here is the call:

    Dim dest1 As Guid
    Dim result As IntPtr = IntPtr.Zero

    ConnMgrMapURL("http://www.google.co.uk", dest1, IntPtr.Zero)

The call just raises a NotSupportedException. I have tried changing the last parameter declaration to ByVal passZero as Integer, ByRef passZero as Integer and ByRef passZero as IntPtr, but to no avail.

I'm using Visual Studio 2008, with the Windows Mobile 6 Professional SDK and the .NET CF 3.5.

Any ideas?

--Amr