| |
|
|
| 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? |
|
|
| |
|
|
|
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?? |
|
|
| |
|
|
|
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. |
|
|
| |
|
|
|
| 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... |
|
|
| |
|
|