N
nzpcmad
Typically, a program in the CF (Win CE not PPC) will open a connection
to the e.g. GPRS modem using RasDial via P/Invoke. This returns a
handle to the Ras connection.
Now I have a requirement to send some AT type commands to the modem
while the RasDial connection is still open e.g. to extract the current
firmware level to see if the card's firmware needs updating. This can
be done in a standalone application (i.e. RasDial not invoked) by using
CreateFile (where the file name is a COM port) via P/Invoke. This
returns a handle to the file.
Invoking CreateFile while the RasDial connection is open throws an
error.
I thought I could get round this by "sharing" the handle but the two
handles are not the same.
Can anyone throw any light on how I can achieve this?
Thanks
to the e.g. GPRS modem using RasDial via P/Invoke. This returns a
handle to the Ras connection.
Now I have a requirement to send some AT type commands to the modem
while the RasDial connection is still open e.g. to extract the current
firmware level to see if the card's firmware needs updating. This can
be done in a standalone application (i.e. RasDial not invoked) by using
CreateFile (where the file name is a COM port) via P/Invoke. This
returns a handle to the file.
Invoking CreateFile while the RasDial connection is open throws an
error.
I thought I could get round this by "sharing" the handle but the two
handles are not the same.
Can anyone throw any light on how I can achieve this?
Thanks