Group: Security - Library: advapi32
Accessing LSA Policy object (Local Security Authority)
NTSTATUS LsaOpenPolicy(
PLSA_UNICODE_STRING SystemName,
PLSA_OBJECT_ATTRIBUTES ObjectAttributes,
ACCESS_MASK DesiredAccess,
PLSA_HANDLE PolicyHandle
);
DECLARE INTEGER LsaOpenPolicy IN advapi32;
STRING SystemName,;
STRING @ ObjectAttributes,;
INTEGER DesiredAccess,;
INTEGER @ PolicyHandle
SystemName [in] Pointer to an LSA_UNICODE_STRING structure containing the name of the target system.
ObjectAttributes [in] Pointer to an LSA_OBJECT_ATTRIBUTES structure that specifies the connection attributes.
DesiredAccess [in] An access mask that specifies the requested access rights.
PolicyHandle [in, out] Pointer to an LSA_HANDLE variable that receives a handle to the Policy object.
If the function succeeds, the return value is STATUS_SUCCESS (0).
Home