J
Jason Jacob
To all,
Due to some problem, my project can't use the OpenNetCF classes, so
I'll have to use the P/Invoke under the WinCE.Net
now I've got some problems in using the P/Invoke things.
1) after using the CreateFile P/Invoke, I've got a Handle value back
(or IntPtr), but value is a large -ve value, I don't know if this is
the normal case (quite strange)
2) then I've called the SetupComm P/Invoke, the win32 error returned
is 12 --> "the access code is invalid", this time I think this is an
error for sure...
But what's the cause? (is it because the Handle returned is -ve, so
access is not possible ?)
Thanks!
From Jason (Kusanagihk)
Due to some problem, my project can't use the OpenNetCF classes, so
I'll have to use the P/Invoke under the WinCE.Net
now I've got some problems in using the P/Invoke things.
1) after using the CreateFile P/Invoke, I've got a Handle value back
(or IntPtr), but value is a large -ve value, I don't know if this is
the normal case (quite strange)
2) then I've called the SetupComm P/Invoke, the win32 error returned
is 12 --> "the access code is invalid", this time I think this is an
error for sure...
But what's the cause? (is it because the Handle returned is -ve, so
access is not possible ?)
Thanks!
From Jason (Kusanagihk)