English
Regulars table & Café

GetLengthSid.

 


Description:

GetLengthSid determined The length in Bytes one Security Identifiers (SID). The function there only NT-based Windowssystemen.




Deklaration:

DEF @GetLengthSid(1) !advapi32,GetLengthSid




Parameter:

1.Parameter: Memory-Variable with of/ one SID Structure or address of/ one SID structure.



Return Value:

If the SID structure validly is, length the SID structure in Bytes. is tappt im dunkeln null, is the Return Value undefiniert.


Examples:

CompileMarkSeparation
DEF @LookupAccountName(7) !"advapi32","LookupAccountNameA"
DEF @GetLengthSid(1) !"advapi32","GetLengthSid"
Declare sys$,User$,SIDa#,SIZE_SID#,DOMAIN#,SIZE_DOMAIN#,SID_NAME_USE#,Fehler&
DIM SIDa#,1024
DIM SIZE_SID#,4
DIM DOMAIN#,256
DIM SIZE_DOMAIN#,4
DIM SID_NAME_USE#,4
LET SYS$=""
LET USER$="Administrator"
CLEAR SIDa#,DOMAIN#,SID_NAME_USE#
LONG SIZE_SID#,0=1024
LONG SIZE_DOMAIN#,0=256
LET Fehler&=@LookupAccountName(@ADDR(SYS$),@addr(USER$),SIDa#,SIZE_SID#,DOMAIN#,SIZE_DOMAIN#,SID_NAME_USE#)
ADDSTRING "Fehlercode LookupAccountName="+@STR$(Fehler&)
LET FEHLER&=@GetLengthSid(SIDa#)
ADDSTRING "Länge des SIDs für Administrator="+@STR$(Fehler&)+" Bytes"
Dispose SIDa#
Dispose SIZE_SID#
Dispose DOMAIN#
Dispose SIZE_DOMAIN#
Dispose SID_NAME_USE#
@EDITBOX("Rückgaben",1<
lass=s2>)

[keywords:5920f56b6e]
SID Security Idenfifier Size length Bytes byte dimensionieren DIM
[/keywords:5920f56b6e]
 
05/22/05  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.471 Views

Untitledvor 0 min.

Themeninformationen

this Topic has 1 subscriber:

unbekannt (1x)


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