Click here to Skip to main content
15,898,035 members
Home / Discussions / C#
   

C#

 
GeneralRe: RTB Redraw problem Pin
IceWater4222-Sep-07 15:33
IceWater4222-Sep-07 15:33 
QuestionWindows service communication Pin
Justin Perez22-Sep-07 6:57
Justin Perez22-Sep-07 6:57 
AnswerRe: Windows service communication Pin
Justin Perez22-Sep-07 7:23
Justin Perez22-Sep-07 7:23 
GeneralRe: Windows service communication Pin
Scott Dorman22-Sep-07 14:25
professionalScott Dorman22-Sep-07 14:25 
QuestionXML Encryption Pin
Member 450778122-Sep-07 6:01
Member 450778122-Sep-07 6:01 
AnswerRe: XML Encryption Pin
Anthony Mushrow22-Sep-07 6:30
professionalAnthony Mushrow22-Sep-07 6:30 
AnswerRe: XML Encryption Pin
Scott Dorman22-Sep-07 14:26
professionalScott Dorman22-Sep-07 14:26 
AnswerRe: XML Encryption Pin
Nissim Salomon23-Sep-07 1:09
Nissim Salomon23-Sep-07 1:09 
QuestionTroubles closing a thread [modified] Pin
Anthony Mushrow22-Sep-07 5:49
professionalAnthony Mushrow22-Sep-07 5:49 
QuestionReceive TV remote controller signals? Pin
tmp022-Sep-07 4:05
tmp022-Sep-07 4:05 
QuestionGetting Processor Id Pin
M. J. Jaya Chitra22-Sep-07 2:32
M. J. Jaya Chitra22-Sep-07 2:32 
AnswerRe: Getting Processor Id Pin
Paul Conrad22-Sep-07 5:24
professionalPaul Conrad22-Sep-07 5:24 
AnswerRe: Getting Processor Id Pin
Nissim Salomon22-Sep-07 9:21
Nissim Salomon22-Sep-07 9:21 
Hi
In order to retrieve information regarding the current cpu you can use WMI
In this case i am using the Win32_Processor Class
http://msdn2.microsoft.com/en-us/library/Aa394373.aspx[^]
Try using the following code:
class Program
    {
        static void Main(string[] args)
        {
            ConnectionOptions conn = new ConnectionOptions(); 
            conn.Impersonation = ImpersonationLevel.Impersonate; 
            ManagementScope scope = new ManagementScope(@"\\mymachine", conn); 
            ObjectQuery query = new ObjectQuery("Select * From Win32_Processor"); 
            ManagementObjectSearcher searcher = new ManagementObjectSearcher(scope, query); 
            ManagementObjectCollection coll = searcher.Get(); 
            
            foreach (ManagementObject obj in coll) 
            {

                Console.WriteLine(obj["UniqueId"].ToString());               
            }
        }
    }

Questionwhy my enum return value is in integer in C# Pin
nicolus22-Sep-07 2:19
nicolus22-Sep-07 2:19 
AnswerRe: why my enum return value is in integer in C# Pin
Lutosław22-Sep-07 2:27
Lutosław22-Sep-07 2:27 
GeneralRe: why my enum return value is in integer in C# Pin
nicolus22-Sep-07 2:35
nicolus22-Sep-07 2:35 
GeneralRe: why my enum return value is in integer in C# Pin
Lutosław22-Sep-07 2:45
Lutosław22-Sep-07 2:45 
GeneralRe: why my enum return value is in integer in C# Pin
nicolus22-Sep-07 3:05
nicolus22-Sep-07 3:05 
GeneralRe: why my enum return value is in integer in C# Pin
Lutosław22-Sep-07 3:52
Lutosław22-Sep-07 3:52 
QuestionUsing C++.net Interfaces in C# Pin
Sandeep Datta22-Sep-07 0:58
Sandeep Datta22-Sep-07 0:58 
AnswerRe: Using C++.net Interfaces in C# Pin
TJoe25-Sep-07 9:34
TJoe25-Sep-07 9:34 
GeneralRe: Using C++.net Interfaces in C# Pin
Sandeep Datta25-Sep-07 19:56
Sandeep Datta25-Sep-07 19:56 
QuestionHow add rows and column into DataTable Pin
That's Aragon22-Sep-07 0:52
That's Aragon22-Sep-07 0:52 
AnswerRe: How add rows and column into DataTable Pin
pmarfleet22-Sep-07 0:59
pmarfleet22-Sep-07 0:59 
GeneralRe: How add rows and column into DataTable [modified] Pin
That's Aragon22-Sep-07 1:18
That's Aragon22-Sep-07 1:18 

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.