M
Mobileboy36
Hello group,
I use VS 2005, VB.NET and CF 2.0. Windows Mobile 5.0 Smartphone SDK For
Dotnet 2.0 has been installed.
I'm trying to set flight mode on and off. I found that this was possible
with opennetcf, but i don't have the opennetcf.Tapi assembly on my pc. Do I
have a wrong version (smart device framework free edition) and can I solve
the problem by buying a license???
So I decided to P/invoke. 2 problems:
1. For LineNegotiateAPIVersion I need tapi32.dll (for mobile 5). But I can't
find it. Where do I get tapi32.dll ? (I get a missing method exception which
is completely normal)
<Runtime.InteropServices.DllImport("tapi32.dll")> _
Public Shared Function LineNegotiateAPIVersion(ByVal m_hLineApp As IntPtr,
ByVal dwDeviceID As Integer, ByVal dwAPILowVersion As Integer, ByVal
dwAPIHighVersion As Integer, _
ByRef lpdwAPIVersion As Integer, ByRef lpExtensionID As lineextensionid) As
Integer
End Function
2. lineSetEquipmentState -> I get a missing method exception
<Runtime.InteropServices.DllImport("coredll")> _
Public Shared Sub lineSetEquipmentState(ByVal hline As IntPtr, ByVal dwState
As Integer)
End Sub
<Runtime.InteropServices.DllImport("coredll")> _
Public Shared Sub lineSetEquipmentState(ByVal hline As IntPtr, ByVal dwState
As Integer)
End Sub
Any help would be greatly appreciated.
Best regards,
Mobile boy
I use VS 2005, VB.NET and CF 2.0. Windows Mobile 5.0 Smartphone SDK For
Dotnet 2.0 has been installed.
I'm trying to set flight mode on and off. I found that this was possible
with opennetcf, but i don't have the opennetcf.Tapi assembly on my pc. Do I
have a wrong version (smart device framework free edition) and can I solve
the problem by buying a license???
So I decided to P/invoke. 2 problems:
1. For LineNegotiateAPIVersion I need tapi32.dll (for mobile 5). But I can't
find it. Where do I get tapi32.dll ? (I get a missing method exception which
is completely normal)
<Runtime.InteropServices.DllImport("tapi32.dll")> _
Public Shared Function LineNegotiateAPIVersion(ByVal m_hLineApp As IntPtr,
ByVal dwDeviceID As Integer, ByVal dwAPILowVersion As Integer, ByVal
dwAPIHighVersion As Integer, _
ByRef lpdwAPIVersion As Integer, ByRef lpExtensionID As lineextensionid) As
Integer
End Function
2. lineSetEquipmentState -> I get a missing method exception
<Runtime.InteropServices.DllImport("coredll")> _
Public Shared Sub lineSetEquipmentState(ByVal hline As IntPtr, ByVal dwState
As Integer)
End Sub
<Runtime.InteropServices.DllImport("coredll")> _
Public Shared Sub lineSetEquipmentState(ByVal hline As IntPtr, ByVal dwState
As Integer)
End Sub
Any help would be greatly appreciated.
Best regards,
Mobile boy