Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
GeneralRe: Remote desktop Pin
krinaljariwala9-Jan-09 0:04
krinaljariwala9-Jan-09 0:04 
QuestionMouse Cursor Pin
yesu prakash4-Jan-09 18:44
yesu prakash4-Jan-09 18:44 
AnswerRe: Mouse Cursor Pin
Dragonfly_Lee4-Jan-09 20:53
Dragonfly_Lee4-Jan-09 20:53 
AnswerRe: Mouse Cursor Pin
Mark Salsbery4-Jan-09 21:37
Mark Salsbery4-Jan-09 21:37 
GeneralRe: Mouse Cursor Pin
Dragonfly_Lee4-Jan-09 22:51
Dragonfly_Lee4-Jan-09 22:51 
GeneralRe: Mouse Cursor Pin
Mark Salsbery5-Jan-09 6:02
Mark Salsbery5-Jan-09 6:02 
AnswerRe: Mouse Cursor Pin
Mark Salsbery5-Jan-09 6:05
Mark Salsbery5-Jan-09 6:05 
QuestionGetting unique key Pin
sumit70344-Jan-09 18:27
sumit70344-Jan-09 18:27 
hii
I am generating key based on cpu id using following code
public static string GetProcessorID()
{
string sProcessorID = "";
string sQuery = "SELECT ProcessorId FROM Win32_Processor";
ManagementObjectSearcher oManagementObjectSearcher = new ManagementObjectSearcher(sQuery );
ManagementObjectCollection oCollection = oManagementObjectSearcher.Get();
foreach(ManagementObject oManagementObject in oCollection )
{
sProcessorID = (string)oManagementObject["ProcessorId"];
}

return (sProcessorID);
}


But i find that the generated id is not unique.
is there any other way to generate unique id based on cpu?
as i want to secure my software from piracy

thanks in advance
AnswerRe: Getting unique key Pin
TommyTomToms4-Jan-09 19:53
TommyTomToms4-Jan-09 19:53 
GeneralRe: Getting unique key Pin
Jason C Bourne4-Jan-09 20:12
Jason C Bourne4-Jan-09 20:12 
GeneralRe: Getting unique key Pin
sumit70344-Jan-09 21:14
sumit70344-Jan-09 21:14 
GeneralRe: Getting unique key Pin
Dragonfly_Lee4-Jan-09 21:40
Dragonfly_Lee4-Jan-09 21:40 
GeneralRe: Getting unique key Pin
sumit70344-Jan-09 22:07
sumit70344-Jan-09 22:07 
GeneralRe: Getting unique key Pin
Dragonfly_Lee5-Jan-09 2:45
Dragonfly_Lee5-Jan-09 2:45 
AnswerRe: Getting unique key Pin
dan!sh 4-Jan-09 22:52
professional dan!sh 4-Jan-09 22:52 
QuestionNumber of client connections Pin
George_George4-Jan-09 18:26
George_George4-Jan-09 18:26 
QuestionMultiline textbox Pin
yesu prakash4-Jan-09 17:13
yesu prakash4-Jan-09 17:13 
GeneralRe: Multiline textbox Pin
Luc Pattyn4-Jan-09 17:40
sitebuilderLuc Pattyn4-Jan-09 17:40 
AnswerRe: Multiline textbox Pin
Dragonfly_Lee4-Jan-09 21:21
Dragonfly_Lee4-Jan-09 21:21 
AnswerRe: Multiline textbox Pin
Seraph_summer5-Jan-09 1:46
Seraph_summer5-Jan-09 1:46 
QuestionReading an objects Namespace Pin
thrakazog4-Jan-09 14:06
thrakazog4-Jan-09 14:06 
AnswerRe: Reading an objects Namespace Pin
Dragonfly_Lee4-Jan-09 21:34
Dragonfly_Lee4-Jan-09 21:34 
GeneralRe: Reading an objects Namespace Pin
thrakazog5-Jan-09 6:17
thrakazog5-Jan-09 6:17 
QuestionVS 2005 and Setup and Deployment Project Shortcuts Pin
paas4-Jan-09 5:23
paas4-Jan-09 5:23 
AnswerRe: VS 2005 and Setup and Deployment Project Shortcuts Pin
Not Active4-Jan-09 10:45
mentorNot Active4-Jan-09 10:45 

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.