Click here to Skip to main content
15,908,901 members
Home / Discussions / C#
   

C#

 
GeneralRe: Where Did Microsoft.CSharp Go? Pin
Roger Wright27-Oct-11 20:01
professionalRoger Wright27-Oct-11 20:01 
AnswerRe: Where Did Microsoft.CSharp Go? Pin
Bernhard Hiller27-Oct-11 21:27
Bernhard Hiller27-Oct-11 21:27 
AnswerRe: Where Did Microsoft.CSharp Go? Pin
Subin Mavunkal27-Oct-11 22:35
Subin Mavunkal27-Oct-11 22:35 
GeneralRe: Where Did Microsoft.CSharp Go? Pin
Roger Wright28-Oct-11 4:38
professionalRoger Wright28-Oct-11 4:38 
AnswerRe: Where Did Microsoft.CSharp Go? Pin
PIEBALDconsult28-Oct-11 2:58
mvePIEBALDconsult28-Oct-11 2:58 
QuestionA bit of help with process.getprocesses Pin
CCodeNewbie27-Oct-11 8:37
CCodeNewbie27-Oct-11 8:37 
AnswerRe: A bit of help with process.getprocesses Pin
Wayne Gaylard27-Oct-11 9:01
professionalWayne Gaylard27-Oct-11 9:01 
GeneralRe: A bit of help with process.getprocesses Pin
CCodeNewbie27-Oct-11 10:16
CCodeNewbie27-Oct-11 10:16 
Hi Wayne,

Thanks for that. Interesting though that if I use WMI as a "proxy" running...
C#
ManagementObjectSearcher searcher = new ManagementObjectSearcher("root\\CIMV2", "SELECT * FROM Win32_Process");

                foreach (ManagementObject queryObj in searcher.Get())
                {
                    string[] argList = new string[] { string.Empty, string.Empty };
                    int returnVal = Convert.ToInt32(queryObj.InvokeMethod("GetOwner", argList));
                    if (returnVal == 0)
                    {
                        string owner = argList[1] + "\\" + argList[0];
                        Console.WriteLine("Name: {0} Owner: {1}", queryObj["Name"], owner);
                    }
                }

It tells me "Name: System Owner: NT AUTHORITY\SYSTEM" and then goes on to list a whole bunch of other NT AUTHORITY\SYSTEM processes. Interesting too that "Idle" doesn't show up in the list.

What are your thoughts?
AnswerRe: A bit of help with process.getprocesses Pin
Mark Salsbery27-Oct-11 9:04
Mark Salsbery27-Oct-11 9:04 
QuestionHow to simulate in C#, a VB6 Activex EXE Standalone application which exposes a com visible object . Pin
SuperMiQi27-Oct-11 7:38
SuperMiQi27-Oct-11 7:38 
QuestionCustom Editor for TabPages in PropertyGrid Pin
Bernhard Hiller27-Oct-11 2:57
Bernhard Hiller27-Oct-11 2:57 
AnswerRe: Custom Editor for TabPages in PropertyGrid Pin
Bernhard Hiller27-Oct-11 21:34
Bernhard Hiller27-Oct-11 21:34 
QuestionRemove Enum prefix from tlb Pin
liqnit27-Oct-11 0:29
liqnit27-Oct-11 0:29 
AnswerRe: Remove Enum prefix from tlb Pin
Pete O'Hanlon27-Oct-11 1:25
mvePete O'Hanlon27-Oct-11 1:25 
GeneralRe: Remove Enum prefix from tlb Pin
liqnit27-Oct-11 2:40
liqnit27-Oct-11 2:40 
GeneralRe: Remove Enum prefix from tlb Pin
Pete O'Hanlon27-Oct-11 3:10
mvePete O'Hanlon27-Oct-11 3:10 
GeneralRe: Remove Enum prefix from tlb Pin
Dave Kreskowiak27-Oct-11 3:48
mveDave Kreskowiak27-Oct-11 3:48 
GeneralRe: Remove Enum prefix from tlb Pin
liqnit29-Oct-11 21:05
liqnit29-Oct-11 21:05 
QuestionUpdating an access database table using C# Pin
Theresho26-Oct-11 23:47
Theresho26-Oct-11 23:47 
AnswerRe: Updating an access database table using C# Pin
Richard MacCutchan27-Oct-11 0:32
mveRichard MacCutchan27-Oct-11 0:32 
AnswerRe: Updating an access database table using C# Pin
BobJanova27-Oct-11 3:05
BobJanova27-Oct-11 3:05 
AnswerRe: Updating an access database table using C# Pin
jschell27-Oct-11 8:35
jschell27-Oct-11 8:35 
Question"Linked open data" in C# ASP.Net Pin
shanNSK26-Oct-11 20:49
shanNSK26-Oct-11 20:49 
AnswerRe: How to Convert URL to URI in rdf format? Pin
OriginalGriff26-Oct-11 22:00
mveOriginalGriff26-Oct-11 22:00 
QuestionC# access setting file Pin
sc steinhayse26-Oct-11 5:46
sc steinhayse26-Oct-11 5:46 

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.