Click here to Skip to main content
15,886,689 members
Home / Discussions / C#
   

C#

 
AnswerRe: Decrypt E-Mail address Pin
harold aptroot19-Nov-12 22:53
harold aptroot19-Nov-12 22:53 
QuestionGet data back from windows process Pin
tdcmystere19-Nov-12 2:42
tdcmystere19-Nov-12 2:42 
AnswerRe: Get data back from windows process Pin
Eddy Vluggen19-Nov-12 3:10
professionalEddy Vluggen19-Nov-12 3:10 
GeneralRe: Get data back from windows process Pin
tdcmystere19-Nov-12 3:19
tdcmystere19-Nov-12 3:19 
GeneralRe: Get data back from windows process Pin
Eddy Vluggen19-Nov-12 3:42
professionalEddy Vluggen19-Nov-12 3:42 
GeneralRe: Get data back from windows process Pin
tdcmystere19-Nov-12 4:17
tdcmystere19-Nov-12 4:17 
AnswerRe: Get data back from windows process Pin
Eddy Vluggen19-Nov-12 4:37
professionalEddy Vluggen19-Nov-12 4:37 
GeneralRe: Get data back from windows process Pin
tdcmystere19-Nov-12 5:21
tdcmystere19-Nov-12 5:21 
Thanks for this link, i already read this article, based on this, as i can understand is a console based server/client.

how i can whrite a simple command for server or client to get infos about printers.

for example i use this peace of code to retrieve local printers on a remote computer


C#
private void GetPrinters()
        {

            string strServer = "\\\\" + this.textBox20.Text; //if the computer is local machine, use the "." instead
            ConnectionOptions options = new ConnectionOptions();
            options.Username = "xxxx";
            options.Password = "xxxxx";
            options.Authority = "NTLMDOMAIN:consilium";

            ManagementScope myScope = new ManagementScope(strServer + "\\root\\cimv2", options);
            SelectQuery oQuery = new SelectQuery("SELECT * FROM WIN32_Printer");
            ManagementObjectSearcher oResults = new ManagementObjectSearcher(myScope, oQuery);

            //Iterate through printers...
            foreach (ManagementObject oItem in oResults.Get())
            {
                string strPrinterName = oItem.Properties["DriverName"].Value.ToString();
                listBox2.Items.Add(strPrinterName.ToString().ToUpper());
               // Console.WriteLine(strPrinterName);

            }
        }



i would like to execute this code on a remote computer and get the data back to my winform.

thank you in advance
SuggestionRe: Get data back from windows process Pin
Eddy Vluggen19-Nov-12 5:25
professionalEddy Vluggen19-Nov-12 5:25 
QuestionC# 2010 Express - SQL Server 2008 Express connection "Login failed" Pin
bneveux18-Nov-12 23:39
bneveux18-Nov-12 23:39 
AnswerRe: C# 2010 Express - SQL Server 2008 Express connection "Login failed" Pin
bneveux19-Nov-12 0:04
bneveux19-Nov-12 0:04 
QuestionWrite and read a paragraph in XML format string ? Pin
taibc18-Nov-12 16:29
taibc18-Nov-12 16:29 
AnswerRe: Write and read a paragraph in XML format string ? Pin
n.podbielski18-Nov-12 20:07
n.podbielski18-Nov-12 20:07 
GeneralRe: Write and read a paragraph in XML format string ? Pin
taibc18-Nov-12 20:21
taibc18-Nov-12 20:21 
GeneralRe: Write and read a paragraph in XML format string ? Pin
n.podbielski18-Nov-12 21:06
n.podbielski18-Nov-12 21:06 
GeneralRe: Write and read a paragraph in XML format string ? Pin
taibc18-Nov-12 21:10
taibc18-Nov-12 21:10 
GeneralRe: Write and read a paragraph in XML format string ? Pin
n.podbielski18-Nov-12 21:19
n.podbielski18-Nov-12 21:19 
GeneralRe: Write and read a paragraph in XML format string ? Pin
taibc18-Nov-12 21:28
taibc18-Nov-12 21:28 
GeneralRe: Write and read a paragraph in XML format string ? Pin
n.podbielski18-Nov-12 21:34
n.podbielski18-Nov-12 21:34 
GeneralRe: Write and read a paragraph in XML format string ? Pin
taibc18-Nov-12 21:36
taibc18-Nov-12 21:36 
AnswerRe: Write and read a paragraph in XML format string ? Pin
PIEBALDconsult20-Nov-12 4:18
mvePIEBALDconsult20-Nov-12 4:18 
GeneralRe: Write and read a paragraph in XML format string ? Pin
n.podbielski20-Nov-12 5:44
n.podbielski20-Nov-12 5:44 
GeneralRe: Write and read a paragraph in XML format string ? Pin
PIEBALDconsult20-Nov-12 6:29
mvePIEBALDconsult20-Nov-12 6:29 
GeneralRe: Write and read a paragraph in XML format string ? Pin
n.podbielski20-Nov-12 7:43
n.podbielski20-Nov-12 7:43 
GeneralRe: Write and read a paragraph in XML format string ? Pin
PIEBALDconsult20-Nov-12 10:45
mvePIEBALDconsult20-Nov-12 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.