Search

You searched for the word(s): userid:621531

Matching Posts

  • no window when starting processes on remote machine

    hello, i found a way to start and stop processes on a remote machine using the WMI, but the problem is that, when i create a process on another machine (for example the notepad), the process is created and it can be viewed in the task manager, but no notepad window appears.. someone could help me? tha code used is: public static bool fnCreateProcess(string computerName, string processName, int maxDelayTime) { ManagementOperationObserver observer = new ManagementOperationObserver(); //Set up a handler
  • Re: Check services on remote machine

    ok. now i found the way to do it, we just have to put the next code in the web.config file: <identity impersonate="true" userName="userName" password="password" /> obviously the user must have access to these services on the remote machine Thanks to all!
    Posted to Security (Forum) by odin_dark on 12/23/2005
  • Re: Check services on remote machine

    Ok, and how can i do that? i found some ImpersonationUtil, the code is the next, but it doesn't work public class ImpersonationUtil { public static bool Impersonate( string logon, string password, string domain ) { WindowsIdentity tempWindowsIdentity; IntPtr token = IntPtr.Zero; IntPtr tokenDuplicate = IntPtr.Zero; if( LogonUser( logon, domain, password, LOGON32_LOGON_INTERACTIVE, LOGON32_PROVIDER_DEFAULT, ref token) != 0 ) { if ( DuplicateToken( token, 2, ref tokenDuplicate ) != 0 ) { tempWindowsIdentity
    Posted to Security (Forum) by odin_dark on 12/22/2005
  • Check services on remote machine

    Hello, I'm trying to check the services status on a remote machine, the code i'm using is the next: string MachineName = "somename" ServiceController[] services = ServiceController.GetServices( MachineName ); foreach ( ServiceController service in services ) { Console.Write(string .Format( "{0} [ {1} ]", service.ServiceName, service.Status.ToString() ) ); } this works fine if i execute it on a windows C# application, but it doesn't work if i try to execute it on an ASP .NET WEB Application, it sends
    Posted to Security (Forum) by odin_dark on 12/20/2005
  • Detect Office Web Components Version.. how?

    hello, i would like to know how can i detect the Microsoft Office Web components (OWC) Version in C# or JavaScript or JScript.. or something!, this is because some OWC doesn't work properly under OWC Xp (windows xp) when configured to run under OWC 2000 (windows 2000). Thanx in advance!
  • Re: default button (no submit)!

    ok thanks man, i owe you one!!!!
    Posted to Client Side Web Development (Forum) by odin_dark on 8/29/2005
  • default button (no submit)!

    hello there, somebody know how can i make a button to be default (i mean, activated by pressing "enter") without using a Submit button and also, for example, if a text area or another button has the focus, this control shoul be activated, not the default button, this is because, i use this code: function fnExecClickByCode(controls, xCode){ //the button, and the key code wich will activate the button if ( event .keyCode == xCode) for (i = 0; i < controls.length; i++) if ( document.getElementById
    Posted to Client Side Web Development (Forum) by odin_dark on 8/26/2005
  • Re: dispose vs null assignment??!!

    ok, thanks for your time, let´s rock and roll!
    Posted to C# (Forum) by odin_dark on 8/25/2005
  • Re: dispose vs null assignment??!!

    Ok! so i can assume that a DataTable don't need to be Disposed or null assigned, just like an int variable or something, right?, thank you for your time!!
    Posted to C# (Forum) by odin_dark on 8/24/2005
  • dispose vs null assignment??!!

    hello, i would like to know... if the Dispose method supposedly r eleases the resources used by the MarshalByValueComponent. then, why after i called the dispose method i can still use the variable?? shouldn't this release an exception??? for example DataTable dt; dt = SomeObject.SomeFunction() //do something with dt dt.Dispose(); Response.Write(dt.Rows[0][0]); this works!!, why if the object is supposedly disposed??? note: if i assing null to the DataTable ( dt = null; ) then it works as i expect
    Posted to C# (Forum) by odin_dark on 8/24/2005
Page 1 of 1 (10 items)