From b740819e30cab90036cadc50dd0c78e6178943e3 Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Tue, 11 Nov 2008 08:12:23 +0100 Subject: [PATCH] advapi32: Implement LsaSetSecret stub. --- dlls/advapi32/advapi32.spec | 2 +- dlls/advapi32/lsa.c | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/dlls/advapi32/advapi32.spec b/dlls/advapi32/advapi32.spec index cb4dd4d857a..ec924ffa534 100644 --- a/dlls/advapi32/advapi32.spec +++ b/dlls/advapi32/advapi32.spec @@ -397,7 +397,7 @@ @ stdcall LsaSetInformationPolicy(long long ptr) @ stub LsaSetInformationTrustedDomain # @ stub LsaSetQuotasForAccount -@ stub LsaSetSecret +@ stdcall LsaSetSecret(ptr ptr ptr) # @ stub LsaSetSecurityObject @ stub LsaSetSystemAccessAccount @ stdcall LsaSetTrustedDomainInfoByName(ptr ptr long ptr) diff --git a/dlls/advapi32/lsa.c b/dlls/advapi32/lsa.c index 5a136b69975..cb1a6f3c2af 100644 --- a/dlls/advapi32/lsa.c +++ b/dlls/advapi32/lsa.c @@ -623,6 +623,30 @@ NTSTATUS WINAPI LsaSetInformationPolicy( return STATUS_UNSUCCESSFUL; } +/****************************************************************************** + * LsaSetSecret [ADVAPI32.@] + * + * Set old and new values on a secret handle + * + * PARAMS + * SecretHandle [I] Handle to a secret object. + * EncryptedCurrentValue [I] Pointer to encrypted new value, can be NULL + * EncryptedOldValue [I] Pointer to encrypted old value, can be NULL + * + * RETURNS + * Success: STATUS_SUCCESS + * Failure: NTSTATUS code. + */ +NTSTATUS WINAPI LsaSetSecret( + IN LSA_HANDLE SecretHandle, + IN PLSA_UNICODE_STRING EncryptedCurrentValue, + IN PLSA_UNICODE_STRING EncryptedOldValue) +{ + FIXME("(%p,%p,%p) stub\n", SecretHandle, EncryptedCurrentValue, + EncryptedOldValue); + return STATUS_SUCCESS; +} + /****************************************************************************** * LsaSetTrustedDomainInfoByName [ADVAPI32.@] *