Click here to Skip to main content
11,481,916 members (63,113 online)
   

C#

 
AnswerRe: Decrypt E-Mail address Pin
harold aptroot19-Nov-12 23:53
memberharold aptroot19-Nov-12 23:53 
QuestionGet data back from windows process Pin
tdcmystere19-Nov-12 3:42
membertdcmystere19-Nov-12 3:42 
AnswerRe: Get data back from windows process Pin
Eddy Vluggen19-Nov-12 4:10
memberEddy Vluggen19-Nov-12 4:10 
GeneralRe: Get data back from windows process Pin
tdcmystere19-Nov-12 4:19
membertdcmystere19-Nov-12 4:19 
GeneralRe: Get data back from windows process Pin
Eddy Vluggen19-Nov-12 4:42
memberEddy Vluggen19-Nov-12 4:42 
GeneralRe: Get data back from windows process Pin
tdcmystere19-Nov-12 5:17
membertdcmystere19-Nov-12 5:17 
AnswerRe: Get data back from windows process Pin
Eddy Vluggen19-Nov-12 5:37
memberEddy Vluggen19-Nov-12 5:37 
GeneralRe: Get data back from windows process Pin
tdcmystere19-Nov-12 6:21
membertdcmystere19-Nov-12 6: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


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 6:25
memberEddy Vluggen19-Nov-12 6:25 
QuestionC# 2010 Express - SQL Server 2008 Express connection "Login failed" Pin
bneveux19-Nov-12 0:39
memberbneveux19-Nov-12 0:39 
AnswerRe: C# 2010 Express - SQL Server 2008 Express connection "Login failed" Pin
bneveux19-Nov-12 1:04
memberbneveux19-Nov-12 1:04 
QuestionWrite and read a paragraph in XML format string ? Pin
taibc18-Nov-12 17:29
membertaibc18-Nov-12 17:29 
AnswerRe: Write and read a paragraph in XML format string ? Pin
n.podbielski18-Nov-12 21:07
membern.podbielski18-Nov-12 21:07 
GeneralRe: Write and read a paragraph in XML format string ? Pin
taibc18-Nov-12 21:21
membertaibc18-Nov-12 21:21 
GeneralRe: Write and read a paragraph in XML format string ? Pin
n.podbielski18-Nov-12 22:06
membern.podbielski18-Nov-12 22:06 
GeneralRe: Write and read a paragraph in XML format string ? Pin
taibc18-Nov-12 22:10
membertaibc18-Nov-12 22:10 
GeneralRe: Write and read a paragraph in XML format string ? Pin
n.podbielski18-Nov-12 22:19
membern.podbielski18-Nov-12 22:19 
GeneralRe: Write and read a paragraph in XML format string ? Pin
taibc18-Nov-12 22:28
membertaibc18-Nov-12 22:28 
GeneralRe: Write and read a paragraph in XML format string ? Pin
n.podbielski18-Nov-12 22:34
membern.podbielski18-Nov-12 22:34 
GeneralRe: Write and read a paragraph in XML format string ? Pin
taibc18-Nov-12 22:36
membertaibc18-Nov-12 22:36 
AnswerRe: Write and read a paragraph in XML format string ? [modified] Pin
PIEBALDconsult20-Nov-12 5:18
memberPIEBALDconsult20-Nov-12 5:18 
GeneralRe: Write and read a paragraph in XML format string ? Pin
n.podbielski20-Nov-12 6:44
membern.podbielski20-Nov-12 6:44 
GeneralRe: Write and read a paragraph in XML format string ? Pin
PIEBALDconsult20-Nov-12 7:29
memberPIEBALDconsult20-Nov-12 7:29 
GeneralRe: Write and read a paragraph in XML format string ? Pin
n.podbielski20-Nov-12 8:43
membern.podbielski20-Nov-12 8:43 
GeneralRe: Write and read a paragraph in XML format string ? Pin
PIEBALDconsult20-Nov-12 11:45
memberPIEBALDconsult20-Nov-12 11:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.150520.1 | Last Updated 24 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid