name in the caller's language. LsarEnumeratePrivileges 2) The LsarEnumeratePrivileges method is invoked to enumerate all known to the system. This method can be called multiple times to return its output in fragments. NTSTATUS LsarEnumeratePrivileges( [in] LSAPR_HANDLE PolicyHandle, [in, out] unsigned long* EnumerationContext, [out] PLSAPR_PRIVILEGE_ENUM_BUFFER EnumerationBuffer, [in] unsigned long PreferedMaximumLength ); An context handle obtained from either or . PolicyHandle: EnumerationContext: A pointer to a context value that is used to resume enumeration, if necessary. EnumerationBuffer: A pointer to a structure that will contain the results of the enumeration. PreferedMaximumLength: A value that indicates the approximate size of the data to be returned. Return Values: The following is a summary of the return values that an implementation MUST return, as specified by the message processing that follows. Return value/code Description 0x00000000 The request was successfully STATUS_SUCCESS completed. 0xC0000022 The caller does not have the STATUS_ACCESS_DENIED permissions to perform this operation. 0x00000105 More information is available to STATUS_MORE_ENTRIES successive calls. 0x8000001A No more entries are available from the STATUS_NO_MORE_ENTRIES enumeration. 0xC000000D One of the parameters supplied STATUS_INVALID_PARAMETER was invalid. This can happen if EnumerationBuffer is NULL or EnumerationContext is NULL.
name in the caller's language. LsarEnumeratePrivileges 2) The LsarEnumeratePrivileges method is invoked to enumerate all known to the system. This method can be called multiple times to return its output in fragments. NTSTATUS LsarEnumeratePrivileges( [in] LSAPR_HANDLE PolicyHandle, [in, out] unsigned long* EnumerationContext, [out] PLSAPR_PRIVILEGE_ENUM_BUFFER EnumerationBuffer, [in] unsigned long PreferedMaximumLength ); PolicyHandle: An context handle obtained from either or . EnumerationContext: A pointer to a context value that is used to resume enumeration, if necessary. EnumerationBuffer: A pointer to a structure that will contain the results of the enumeration. PreferedMaximumLength: A value that indicates the approximate size of the data to be returned. Return Values: The following is a summary of the return values that an implementation MUST return, as specified by the message processing that follows. Return value/code Description 0x00000000 STATUS_SUCCESS The request was successfully completed. 0xC0000022 STATUS_ACCESS_DENIED The caller does not have the permissions to perform this operation. 0x00000105 STATUS_MORE_ENTRIES More information is available to successive calls. 0x8000001A STATUS_NO_MORE_ENTRIES No more entries are available from the enumeration. 0xC000000D STATUS_INVALID_PARAMETER One of the parameters supplied was invalid. This can happen if EnumerationBuffer is NULL or EnumerationContext is NULL.