J
Jay
Hello all,
I am using
string AppString = "deviceappid";
byte[] AppData = new byte[AppString.Length];
for (int count = 0; count < AppString.Length; count++)
AppData[count] = (byte)AppString[count];
int appDataSize = AppData.Length;
byte[] DeviceOutput = new byte[20];
uint SizeOut = 20;
GetDeviceUniqueID(AppData, appDataSize, 1,
DeviceOutput, out SizeOut);
----------------------------------
[DllImport("coredll.dll")]
private extern static int GetDeviceUniqueID([In, Out] byte[]
appdata,
int
cbApplictionData,
int
dwDeviceIDVersion,
[In, Out] byte[]
deviceIDOuput,
out uint
pcbDeviceIDOutput);
----------------------------------
to retrieve the device id in our application.
retrieving the device id works fine on the windows mobile emulator and
our windows mobile 5 devices. When I try to run it on our Windows CE
5.0 platform I get the following error.
Can't find an Entry Point 'GetDeviceUniqueID' in a PInvoke DLL
'coredll.dll'
any help would be great..
thanks in advanced.
Jay
I am using
string AppString = "deviceappid";
byte[] AppData = new byte[AppString.Length];
for (int count = 0; count < AppString.Length; count++)
AppData[count] = (byte)AppString[count];
int appDataSize = AppData.Length;
byte[] DeviceOutput = new byte[20];
uint SizeOut = 20;
GetDeviceUniqueID(AppData, appDataSize, 1,
DeviceOutput, out SizeOut);
----------------------------------
[DllImport("coredll.dll")]
private extern static int GetDeviceUniqueID([In, Out] byte[]
appdata,
int
cbApplictionData,
int
dwDeviceIDVersion,
[In, Out] byte[]
deviceIDOuput,
out uint
pcbDeviceIDOutput);
----------------------------------
to retrieve the device id in our application.
retrieving the device id works fine on the windows mobile emulator and
our windows mobile 5 devices. When I try to run it on our Windows CE
5.0 platform I get the following error.
Can't find an Entry Point 'GetDeviceUniqueID' in a PInvoke DLL
'coredll.dll'
any help would be great..
thanks in advanced.
Jay