Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 873 Bytes

GetLengthSid.md

File metadata and controls

42 lines (29 loc) · 873 Bytes

Home

Function name : GetLengthSid

Group: Security - Library: advapi32


The GetLengthSid function returns the length, in bytes, of a valid security identifier (SID).


Code examples:

Obtaining a handle to the desktop associated with the calling thread
Accessing LSA Policy object (Local Security Authority)

Declaration:

DWORD GetLengthSid(
  PSID pSid
);  

FoxPro declaration:

DECLARE INTEGER GetLengthSid IN advapi32;
	STRING pSid  

Parameters:

pSid [in] Pointer to the SID structure whose length is returned.


Return value:

If the SID structure is valid, the return value is the length, in bytes, of the SID structure.