call api windows ce

  • Thread starter Thread starter Santiago Herrero
  • Start date Start date
S

Santiago Herrero

Hi everybody!
I am writting a compact framework app and I want to call to the api ras.dll
and I´m having problems to understand how to change from
(for example)
typedef struct _RASCONN {
DWORD dwSize;
HRASCONN hrasconn;
TCHAR szEntryName[RAS_MaxEntryName + 1];
} RASCONN ;

to c#structure.....


Can anybody show me a manual to calling windows ce api using compact
framework?

Thanks in advanced
 
thanks Girish.
This tutorial has been useful for me now I have to do a RAS connection with
my PDA, I have seen that the full .net Framework I would use
<dllimport("rasapi32.dll" Charset:=Charset.unicode)> and I have found this
for windows ce 3.0
http://msdn.microsoft.com/library/d...n-us/wcesdkr/html/wcesdkrrasconnstate_str.asp
that you get all active RAS connections
Wich dll Have i got to import?? <dllimport("ras.dll"
Charset:=Charset.unicode)> and then declare function
private shared Function RasEnumConnections(...
Am I on the right way???

Girish NS said:
Hi,

This article might be useful to u

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/netcfintrointerp.asp

Girish

Santiago Herrero said:
Hi everybody!
I am writting a compact framework app and I want to call to the api ras.dll
and I´m having problems to understand how to change from
(for example)
typedef struct _RASCONN {
DWORD dwSize;
HRASCONN hrasconn;
TCHAR szEntryName[RAS_MaxEntryName + 1];
} RASCONN ;

to c#structure.....


Can anybody show me a manual to calling windows ce api using compact
framework?

Thanks in advanced
 
Yes, you are, except that RAS APIs are in coredll.dll in Windows CE
[DllImport("coredll")]
extern public static void RasEnumEntries(string sReserved, string
sPhoneBook, byte[] pEntries, ref int lpcb, out int lpcEntries);



Santiago Herrero said:
thanks Girish.
This tutorial has been useful for me now I have to do a RAS connection with
my PDA, I have seen that the full .net Framework I would use
<dllimport("rasapi32.dll" Charset:=Charset.unicode)> and I have found this
for windows ce 3.0
http://msdn.microsoft.com/library/d...n-us/wcesdkr/html/wcesdkrrasconnstate_str.asp
that you get all active RAS connections
Wich dll Have i got to import?? <dllimport("ras.dll"
Charset:=Charset.unicode)> and then declare function
private shared Function RasEnumConnections(...
Am I on the right way???

Girish NS said:
Hi,

This article might be useful to u
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/netcfintrointerp.asp
Girish

Santiago Herrero said:
Hi everybody!
I am writting a compact framework app and I want to call to the api ras.dll
and I´m having problems to understand how to change from
(for example)
typedef struct _RASCONN {
DWORD dwSize;
HRASCONN hrasconn;
TCHAR szEntryName[RAS_MaxEntryName + 1];
} RASCONN ;

to c#structure.....


Can anybody show me a manual to calling windows ce api using compact
framework?

Thanks in advanced
 
Back
Top