mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[ADVAPI32]
Implement LsaOpenPolicySce. [LSASRV] Update the LsarOpenPolicySce prototype. svn path=/trunk/; revision=70566
This commit is contained in:
@@ -1164,7 +1164,7 @@ LsaOpenPolicy(IN PLSA_UNICODE_STRING SystemName OPTIONAL,
|
||||
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
* @implemented
|
||||
*/
|
||||
NTSTATUS
|
||||
WINAPI
|
||||
@@ -1173,10 +1173,34 @@ LsaOpenPolicySce(IN PLSA_UNICODE_STRING SystemName OPTIONAL,
|
||||
IN ACCESS_MASK DesiredAccess,
|
||||
OUT PLSA_HANDLE PolicyHandle)
|
||||
{
|
||||
FIXME("LsaOpenPolicySce(%s %p 0x%08lx %p)\n",
|
||||
NTSTATUS Status;
|
||||
|
||||
TRACE("LsaOpenPolicySce(%s %p 0x%08lx %p)\n",
|
||||
SystemName ? debugstr_w(SystemName->Buffer) : "(null)",
|
||||
ObjectAttributes, DesiredAccess, PolicyHandle);
|
||||
return STATUS_NOT_IMPLEMENTED;
|
||||
|
||||
/* FIXME: RPC should take care of this */
|
||||
if (!LsapIsLocalComputer(SystemName))
|
||||
return RPC_NT_SERVER_UNAVAILABLE;
|
||||
|
||||
RpcTryExcept
|
||||
{
|
||||
*PolicyHandle = NULL;
|
||||
|
||||
Status = LsarOpenPolicySce(SystemName ? SystemName->Buffer : NULL,
|
||||
(PLSAPR_OBJECT_ATTRIBUTES)ObjectAttributes,
|
||||
DesiredAccess,
|
||||
PolicyHandle);
|
||||
}
|
||||
RpcExcept(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
Status = I_RpcMapWin32Status(RpcExceptionCode());
|
||||
}
|
||||
RpcEndExcept;
|
||||
|
||||
TRACE("LsaOpenPolicySce() done (Status: 0x%08lx)\n", Status);
|
||||
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -3153,7 +3153,10 @@ NTSTATUS WINAPI LsarLookupNames4(
|
||||
|
||||
/* Function 78 */
|
||||
NTSTATUS WINAPI LsarOpenPolicySce(
|
||||
handle_t hBinding)
|
||||
LPWSTR SystemName,
|
||||
PLSAPR_OBJECT_ATTRIBUTES ObjectAttributes,
|
||||
ACCESS_MASK DesiredAccess,
|
||||
LSAPR_HANDLE *PolicyHandle)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
return STATUS_NOT_IMPLEMENTED;
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
@ stdcall LsarLookupSids2(ptr ptr ptr ptr long long long long)
|
||||
@ stdcall LsarOpenAccount(ptr ptr long ptr)
|
||||
@ stdcall LsarOpenPolicy(ptr ptr long ptr)
|
||||
@ stdcall LsarOpenPolicySce(ptr)
|
||||
@ stdcall LsarOpenPolicySce(ptr ptr long ptr)
|
||||
@ stdcall LsarOpenSecret(ptr ptr long ptr)
|
||||
@ stdcall LsarOpenTrustedDomain(ptr ptr long ptr)
|
||||
@ stdcall LsarOpenTrustedDomainByName(ptr ptr long ptr)
|
||||
|
||||
@@ -1091,7 +1091,10 @@ cpp_quote("#if _WIN32_WINNT >= 0x0501")
|
||||
|
||||
/* Function 78 */
|
||||
NTSTATUS __stdcall LsarOpenPolicySce(
|
||||
[in] handle_t hBinding); /* FIXME */
|
||||
[in, unique] PLSAPR_SERVER_NAME SystemName,
|
||||
[in] PLSAPR_OBJECT_ATTRIBUTES ObjectAttributes,
|
||||
[in] ACCESS_MASK DesiredAccess,
|
||||
[out] LSAPR_HANDLE *PolicyHandle);
|
||||
|
||||
/* Function 79 */
|
||||
NTSTATUS __stdcall LsarAdtRegisterSecurityEventSource(
|
||||
|
||||
Reference in New Issue
Block a user