Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: ProgressBar in multi-threaded application Pin
Mark Salsbery2-Sep-08 7:56
Mark Salsbery2-Sep-08 7:56 
GeneralRe: ProgressBar in multi-threaded application Pin
Lutosław2-Sep-08 9:09
Lutosław2-Sep-08 9:09 
GeneralRe: ProgressBar in multi-threaded application Pin
#realJSOP2-Sep-08 9:58
mve#realJSOP2-Sep-08 9:58 
AnswerRe: ProgressBar in multi-threaded application Pin
Daniel Grunwald2-Sep-08 6:22
Daniel Grunwald2-Sep-08 6:22 
GeneralRe: ProgressBar in multi-threaded application Pin
Lutosław2-Sep-08 6:29
Lutosław2-Sep-08 6:29 
GeneralRe: ProgressBar in multi-threaded application Pin
Lutosław2-Sep-08 9:33
Lutosław2-Sep-08 9:33 
GeneralRe: ProgressBar in multi-threaded application Pin
Daniel Grunwald2-Sep-08 9:38
Daniel Grunwald2-Sep-08 9:38 
QuestionID Pin
ellllllllie2-Sep-08 3:07
ellllllllie2-Sep-08 3:07 
Hello,
this is my code to retrieve the DeviceId of a windows mobile 5.0
[DllImport("coredll.dll")]
private static extern int GetDeviceUniqueID([In, Out] byte[] appdata, int cbApplictionData,
int dwDeviceIDVersion,
[In, Out] byte[] deviceIDOuput, ref uint pcbDeviceIDOutput);

private static string s_UniqueDeviceID;
public static string GetUniqueDeviceID()
{
if (string.IsNullOrEmpty(s_UniqueDeviceID))
{
// define AppString
string AppString = "MyAppString";

// get the byte array for the string
byte[] AppData = Encoding.ASCII.GetBytes(AppString);

// some parameters for the native call
int appDataSize = AppData.Length;
uint SizeOut = 20;

// our out parameter
byte[] DeviceOutput = new byte[20];

// Call the native GetDeviceUniqueID method from coredll.dll
GetDeviceUniqueID(AppData, appDataSize, 1, DeviceOutput, ref SizeOut);

// check that we got something
if (SizeOut > 0)
{
// build text from received bytes
StringBuilder resultText = new StringBuilder();
for (int i = 0; i < DeviceOutput.Length; i++)
{
resultText.Append(string.Format("{0:x2}", DeviceOutput));
}

// set up result
s_UniqueDeviceID = resultText.ToString();
}
}

return s_UniqueDeviceID;
}
}


The GetDeviceUniqueId() raise an error of type Cannot find an entry point .


Do someone can help me.

Best regards

dghdfghdfghdfghdgh

AnswerRe: ID Pin
Manas Bhardwaj2-Sep-08 3:36
professionalManas Bhardwaj2-Sep-08 3:36 
GeneralRe: ID Pin
leppie2-Sep-08 3:45
leppie2-Sep-08 3:45 
AnswerRe: ID Pin
leppie2-Sep-08 3:43
leppie2-Sep-08 3:43 
GeneralRe: ID Pin
Anthony Mushrow2-Sep-08 6:35
professionalAnthony Mushrow2-Sep-08 6:35 
AnswerRe: ID Pin
Pete O'Hanlon2-Sep-08 4:22
mvePete O'Hanlon2-Sep-08 4:22 
AnswerRe: ID Pin
Pete O'Hanlon2-Sep-08 8:09
mvePete O'Hanlon2-Sep-08 8:09 
QuestionC# Classes Pin
Stephen Lintott2-Sep-08 3:07
Stephen Lintott2-Sep-08 3:07 
AnswerRe: C# Classes Pin
Ravi Bhavnani2-Sep-08 3:25
professionalRavi Bhavnani2-Sep-08 3:25 
GeneralRe: C# Classes Pin
Stephen Lintott2-Sep-08 3:28
Stephen Lintott2-Sep-08 3:28 
GeneralRe: C# Classes Pin
Ravi Bhavnani2-Sep-08 3:30
professionalRavi Bhavnani2-Sep-08 3:30 
GeneralRe: C# Classes Pin
Stephen Lintott2-Sep-08 3:45
Stephen Lintott2-Sep-08 3:45 
GeneralRe: C# Classes Pin
Ravi Bhavnani2-Sep-08 5:06
professionalRavi Bhavnani2-Sep-08 5:06 
AnswerRe: C# Classes Pin
Guffa2-Sep-08 3:38
Guffa2-Sep-08 3:38 
GeneralRe: C# Classes Pin
leppie2-Sep-08 3:46
leppie2-Sep-08 3:46 
GeneralRe: C# Classes Pin
Stephen Lintott2-Sep-08 3:47
Stephen Lintott2-Sep-08 3:47 
GeneralRe: C# Classes Pin
leppie2-Sep-08 3:49
leppie2-Sep-08 3:49 
GeneralRe: C# Classes Pin
#realJSOP2-Sep-08 4:34
mve#realJSOP2-Sep-08 4:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.