AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Win32/Win64 API (native code) Delphi Angemeldeten Benutzer aus Dienst ermitteln
Thema durchsuchen
Ansicht
Themen-Optionen

Angemeldeten Benutzer aus Dienst ermitteln

Ein Thema von xZise · begonnen am 28. Nov 2007 · letzter Beitrag vom 31. Mär 2009
 
Dezipaitor

Registriert seit: 14. Apr 2003
Ort: Stuttgart
1.701 Beiträge
 
Delphi 7 Professional
 
#11

Re: Angemeldeter Benutzer aus Dienst ermitteln

  Alt 1. Dez 2007, 16:27
Ich hab den Link in die SecLib implementiert:

JwsclToken.TJWSecurityToken:

Delphi-Quellcode:
{@Name is a compatibility constructor for CreateWTSQueryUserToken which does
    not work in Windows 2000.
    It creates a token of the current logged on user.

    This constructor seeks a process of the user and gets its token.
    It only works in the same (terminal) session of the process.

    @param(DesiredAccess defines the desired access to the token)
    @param(ProcessName defines which process is used to get the token of the user)

    @raises(EJwsclProcessNotFound will be raised if process handle given in parameter
      ProcessName could not be retrieved.)
    @raises(EJwsclWinCallFailedException will be raised if the process handle of the found
      process could not be opened)
    @raises(EJwsclSecurityException Several exceptions can be raised by used methods:
      @unorderedlist(
        @item(CreateTokenByProcess)
        @item(CreateDuplicateExistingToken)
      ))
    }

    constructor CreateCompatibilityQueryUserToken(
      const DesiredAccess: TJwAccessMask;
      const ProcessName : TJwString = ExplorerProcessName);
Christian
Windows, Tokens, Access Control List, Dateisicherheit, Desktop, Vista Elevation?
Goto: JEDI API LIB & Windows Security Code Library (JWSCL)
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 23:48 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz