Re: Get handle of current logged on user?

From: chad (ceothrow1_at_gmail.com)
Date: 09/17/05

  • Next message: lelteto: "RE: CryptGetUserKey fails with 8009000d"
    Date: 17 Sep 2005 11:28:04 -0700
    
    

    Ah, Ok Eric Perlin's suggestion will probably work. I had to do this
    exact same thing in the past, and it sucked. What I did was the
    following:

    Enumerated all the processes on the machine
    looked for all the instances of "explorer.exe" and "cmd.exe",
    Checked the usernames associated with those processes.

    My method gets all the users using the system (for example, if you've
    done fast-user-switching an XP box), but it depends on microsoft
    calling the shell explorer.exe.


  • Next message: lelteto: "RE: CryptGetUserKey fails with 8009000d"

    Relevant Pages

    • Re: How to interrupt a method ?
      ... "This is a bad suggestion, you should never call Thread.Abort from user ... "Calling Thread.Abort is a very BAD BAD BAD BAD idea!" ... obviously other cases where starting and terminating threads is the ... Manfred Lange ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: Why all the NON-AMP POST
      ... ranting or even a bit of name calling. ... someone and making threats, or spewing revolting fantasies involving sexual ... violence against children with the suggestion someone you dislike is the ...
      (alt.guitar.amps)
    • Re: Windows Explorer has encountered - PCBUTTS Impersonating me again
      ... NNTP-Posting-Host: 76.198.93.184 ... The below suggestion provided by PaulM. ... Following any advice from PCBUTTS would put your system at risk. ... Calling an illegal alien an "undocumented worker" is like calling a ...
      (microsoft.public.windowsxp.help_and_support)
    • Re: Time Warner cuts newsgroups in KC
      ... After calling them and getting ... the run around and the suggestion from Time Warner that I use a ... premium news reader service I'll use Google until I get over my mad. ...
      (rec.games.pinball)
    • Re: Search and replace using sed or tr
      ... > I'd bet your shell is csh or tcsh. ... > of the suggestion at section 4.1 of the sed FAQ ... But the ouput file is ...
      (comp.unix.programmer)