Click here to Skip to main content
15,909,324 members
Home / Discussions / C#
   

C#

 
AnswerRe: Windows Service User Account Credentials Pin
~~~Johnny~~~19-Dec-06 2:21
~~~Johnny~~~19-Dec-06 2:21 
GeneralRe: Windows Service User Account Credentials Pin
ekynox19-Dec-06 9:45
ekynox19-Dec-06 9:45 
GeneralRe: Windows Service User Account Credentials Pin
~~~Johnny~~~19-Dec-06 9:55
~~~Johnny~~~19-Dec-06 9:55 
QuestionRegarding LineCounterAddin Pin
harryyadav19-Dec-06 0:41
harryyadav19-Dec-06 0:41 
AnswerRe: Regarding LineCounterAddin Pin
Paul Conrad25-Dec-06 18:29
professionalPaul Conrad25-Dec-06 18:29 
QuestionFiles in printer queue Pin
sujanakar18-Dec-06 23:59
sujanakar18-Dec-06 23:59 
AnswerRe: Files in printer queue [modified] Pin
althamda19-Dec-06 0:10
althamda19-Dec-06 0:10 
AnswerRe: Files in printer queue Pin
Pete O'Hanlon19-Dec-06 1:59
mvePete O'Hanlon19-Dec-06 1:59 
You should probably use WMI for this:

using System.Management;

....

{
	ObjectQuery qry = new ObjectQuery("SELECT * FROM Win32_PrintJob");
	ManagementObjectSearcher srchr = new ManagementObjectSearcher(qry);
	ManagementObjectCollection coll = srchr.Get();
	foreach (ManagementObject mo in coll)
	{
		string info = string.Format("Driver : {0}\r\nOwner : {1}\r\nName : {2}",
		mo["DriverName"].ToString(),
		mo["Owner"].ToString(),
		mo["Document"].ToString()
	);
	Console.WriteLine(info);
}



the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer

Deja View - the feeling that you've seen this post before.

GeneralRe: Files in printer queue Pin
Martin#19-Dec-06 2:16
Martin#19-Dec-06 2:16 
GeneralRe: Files in printer queue Pin
Pete O'Hanlon19-Dec-06 2:44
mvePete O'Hanlon19-Dec-06 2:44 
GeneralRe: Files in printer queue Pin
Martin#19-Dec-06 2:50
Martin#19-Dec-06 2:50 
GeneralRe: Files in printer queue Pin
Pete O'Hanlon19-Dec-06 5:10
mvePete O'Hanlon19-Dec-06 5:10 
QuestionRe: Files in printer queue Pin
GrusumZA7-Mar-07 23:42
GrusumZA7-Mar-07 23:42 
QuestionHmm [modified] Pin
althamda18-Dec-06 23:50
althamda18-Dec-06 23:50 
AnswerRe: Hmm Pin
Stefan Troschuetz18-Dec-06 23:55
Stefan Troschuetz18-Dec-06 23:55 
AnswerRe: Hmm Pin
V.18-Dec-06 23:58
professionalV.18-Dec-06 23:58 
GeneralRe: Hmm Pin
althamda19-Dec-06 0:00
althamda19-Dec-06 0:00 
GeneralRe: Hmm Pin
V.19-Dec-06 0:02
professionalV.19-Dec-06 0:02 
AnswerRe: Hmm Pin
quiteSmart19-Dec-06 0:41
quiteSmart19-Dec-06 0:41 
GeneralRe: Hmm Pin
althamda19-Dec-06 1:00
althamda19-Dec-06 1:00 
GeneralRe: Hmm Pin
Argus219-Dec-06 1:15
Argus219-Dec-06 1:15 
AnswerRe: Hmm Pin
ednrgc19-Dec-06 2:38
ednrgc19-Dec-06 2:38 
GeneralRe: Hmm Pin
althamda19-Dec-06 3:03
althamda19-Dec-06 3:03 
QuestionReverse a string Pin
quiteSmart18-Dec-06 23:21
quiteSmart18-Dec-06 23:21 
AnswerRe: Reverse a string Pin
Seishin#18-Dec-06 23:28
Seishin#18-Dec-06 23:28 

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.