lineSetEquipmentState..missing method exception

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
 
P

Peter Foot [MVP]

On Windows CE the core TAPI methods are within coredll.dll. The cellular
specific methods are in cellcore.dll. You can use the SDK documentation to
determine this as the methods are shown in library coredll.lib and
cellcore.lib respectively.

Peter
 
M

Mobileboy36

Thank you peter I will take a look at it
Peter Foot said:
On Windows CE the core TAPI methods are within coredll.dll. The cellular
specific methods are in cellcore.dll. You can use the SDK documentation to
determine this as the methods are shown in library coredll.lib and
cellcore.lib respectively.

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top