English
Forum

declared LsaEnumerateAccountRights

 
Hello Profaner...

with the API LsaEnumerateAccountRights can I me The in a Login Profile vorhandenen Privilegien lists let:
[quote:024a74784e]
NTSTATUS LsaEnumerateAccountRights(
LSA_HANDLE PolicyHandle,
PSID AccountSid,
PLSA_UNICODE_STRING* UserRights,
PULONG CountOfRights
);
Parameters
PolicyHandle
[in] lever to a Policy object. The lever must have the POLICY_LOOKUP_NAMES access right. For more information, sea Opening a Policy Object lever.
AccountSid
[in] Pointer to the SID of the account for which to enumerate privileges.
UserRights
[out] Receives a pointer to on aray of LSA_UNICODE_STRING structures. Each structure contains the name of a privilege hero by the account. For a list of privilege names, sea Privilege Constants

When you no longer need the information, pass the returned pointer to LsaFreeMemory.
CountOfRights
[out] Pointer to a variable that receives the number of privileges in the UserRights aray.
[/quote:024a74784e]
The Rest is clear - but what kind of aray - and How come I over the Pointer on The items?? has someone a idea?
 
12/17/04  
 




Michael
Dell
Hello Andreas,

in the Description the function LsaEnumerateAccountsWithUserRight standing concerning the second Parameters:
[quote:ef715ce69e]UserRights
[in] Pointer to on LSA_UNICODE_STRING structure that specifies the name of a privilege.
For a list of privileges, sea Privilege Constants and Account Rights Constants.[/quote:ef715ce69e]
therefore take I the too The spending of LsaEnumerateAccountRights nothing other is
as one Zeiger on LSA_UNICODE_STRING.

Greeting...
 
Salu Michael...

Hab zwar krumme Fieß awer dofir e' ecklich Gsicht! 
12/17/04  
 



Hello Michael...

unfortunately not. with LsaEnumerateAccountRights is this aray one Return Value the function. here stand The Privilegien, The one spezieller User with the SID in Parameter 2 has. the are the rule mehere rights => therefore aray.
alike I here einsetze, I get only a Long-worth back and no aray. I take at times, this is one Zeiger on a others Speicherbereich - this Speicherbereich must then with LsaFreeMemory again released go, because it Yes my Program directly not manages.
If I lest integrally on the Holzweg be, How come I then but on the aray??
 
12/17/04  
 




Michael
Dell
Hi again,

I fürchte there's one aray the LSA_UNICODE_STRING - structure meant, So one Bereichs- aray.
the can itself directly but first with XProfan 9 solve, or with ploy ex XProfan 8 (see Stefan Schnells XProfan- Help). Vieleicht GEHTS too before, unfortunately kenn I lest so well from.

Greeting...
 
Salu Michael...

Hab zwar krumme Fieß awer dofir e' ecklich Gsicht! 
12/17/04  
 



Hello Michael...

best Thanks for your Info. Since I nir anyhow in the next year XProfan9 add go, I will The Solution the Problems yet by then move. I suppose, that it then for me übersichtlicher and plainer becomes.
 
12/18/04  
 



Hello Profaner...

The problem is resolved. the Umbiegen one Bereiches on a Pointer shining with Global Speicherbereichen not To functions. Here me The API CopyMemory weitergeholfen, so funktionierts free from problems...
 
12/30/04  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.370 Views

Untitledvor 0 min.

Themeninformationen

this Topic has 2 subscriber:

unbekannt (4x)
Michael Dell (2x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie