2005-02-06 21:57:44 +00:00
|
|
|
/*
|
1999-05-19 16:43:30 +00:00
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS system libraries
|
2009-12-16 20:26:18 +00:00
|
|
|
* FILE: dll/win32/advapi32/sec/lsa.c
|
1999-05-19 16:43:30 +00:00
|
|
|
* PURPOSE: Local security authority functions
|
|
|
|
* PROGRAMMER: Emanuele Aliberti
|
|
|
|
* UPDATE HISTORY:
|
2009-12-16 20:26:18 +00:00
|
|
|
* 19990322 EA created
|
|
|
|
* 19990515 EA stubs
|
2003-02-02 19:24:44 +00:00
|
|
|
* 20030202 KJK compressed stubs
|
2004-02-14 23:13:58 +00:00
|
|
|
*
|
1999-05-19 16:43:30 +00:00
|
|
|
*/
|
2005-08-05 10:31:28 +00:00
|
|
|
#include <advapi32.h>
|
2008-02-08 17:04:39 +00:00
|
|
|
#include "wine/debug.h"
|
Sync aclui, advapi32, atl, authz, kernel32, msi, oledlg, powrprof, qmgr, riched20, samlib to Wine 1.2rc5
Update some psdk Headers to get some more synched winetests build
svn path=/trunk/; revision=47930
2010-07-03 12:42:55 +00:00
|
|
|
#include "wine/unicode.h"
|
2004-03-08 18:09:05 +00:00
|
|
|
|
2008-02-08 17:04:39 +00:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(advapi);
|
2004-03-08 18:09:05 +00:00
|
|
|
|
2009-02-01 06:14:29 +00:00
|
|
|
/* imported from wine 1.1.14 */
|
|
|
|
static void* ADVAPI_GetDomainName(unsigned sz, unsigned ofs)
|
|
|
|
{
|
|
|
|
HKEY key;
|
|
|
|
LONG ret;
|
|
|
|
BYTE* ptr = NULL;
|
|
|
|
UNICODE_STRING* ustr;
|
|
|
|
|
|
|
|
static const WCHAR wVNETSUP[] = {
|
|
|
|
'S','y','s','t','e','m','\\',
|
|
|
|
'C','u','r','r','e','n','t','C','o','n','t','r','o','l','S','e','t','\\',
|
|
|
|
'S','e','r','v','i','c','e','s','\\',
|
|
|
|
'V','x','D','\\','V','N','E','T','S','U','P','\0'};
|
|
|
|
|
|
|
|
ret = RegOpenKeyExW(HKEY_LOCAL_MACHINE, wVNETSUP, 0, KEY_READ, &key);
|
|
|
|
if (ret == ERROR_SUCCESS)
|
|
|
|
{
|
|
|
|
DWORD size = 0;
|
|
|
|
static const WCHAR wg[] = { 'W','o','r','k','g','r','o','u','p',0 };
|
|
|
|
|
|
|
|
ret = RegQueryValueExW(key, wg, NULL, NULL, NULL, &size);
|
|
|
|
if (ret == ERROR_MORE_DATA || ret == ERROR_SUCCESS)
|
|
|
|
{
|
|
|
|
ptr = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sz + size);
|
|
|
|
if (!ptr) return NULL;
|
|
|
|
ustr = (UNICODE_STRING*)(ptr + ofs);
|
|
|
|
ustr->MaximumLength = size;
|
|
|
|
ustr->Buffer = (WCHAR*)(ptr + sz);
|
|
|
|
ret = RegQueryValueExW(key, wg, NULL, NULL, (LPBYTE)ustr->Buffer, &size);
|
|
|
|
if (ret != ERROR_SUCCESS)
|
|
|
|
{
|
|
|
|
HeapFree(GetProcessHeap(), 0, ptr);
|
|
|
|
ptr = NULL;
|
|
|
|
}
|
|
|
|
else ustr->Length = size - sizeof(WCHAR);
|
|
|
|
}
|
|
|
|
RegCloseKey(key);
|
|
|
|
}
|
|
|
|
if (!ptr)
|
|
|
|
{
|
|
|
|
static const WCHAR wDomain[] = {'D','O','M','A','I','N','\0'};
|
|
|
|
ptr = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
|
|
|
|
sz + sizeof(wDomain));
|
|
|
|
if (!ptr) return NULL;
|
|
|
|
ustr = (UNICODE_STRING*)(ptr + ofs);
|
|
|
|
ustr->MaximumLength = sizeof(wDomain);
|
|
|
|
ustr->Buffer = (WCHAR*)(ptr + sz);
|
|
|
|
ustr->Length = sizeof(wDomain) - sizeof(WCHAR);
|
|
|
|
memcpy(ustr->Buffer, wDomain, sizeof(wDomain));
|
|
|
|
}
|
|
|
|
return ptr;
|
|
|
|
}
|
2003-09-08 09:56:57 +00:00
|
|
|
|
2010-07-04 12:51:39 +00:00
|
|
|
|
|
|
|
static BOOL LsapIsLocalComputer(PLSA_UNICODE_STRING ServerName)
|
|
|
|
{
|
|
|
|
DWORD dwSize = MAX_COMPUTERNAME_LENGTH + 1;
|
|
|
|
BOOL Result;
|
|
|
|
LPWSTR buf;
|
|
|
|
|
|
|
|
if (ServerName == NULL || ServerName->Length == 0 || ServerName->Buffer == NULL)
|
|
|
|
return TRUE;
|
|
|
|
|
|
|
|
buf = HeapAlloc(GetProcessHeap(), 0, dwSize * sizeof(WCHAR));
|
|
|
|
Result = GetComputerNameW(buf, &dwSize);
|
|
|
|
if (Result && (ServerName->Buffer[0] == '\\') && (ServerName->Buffer[1] == '\\'))
|
|
|
|
ServerName += 2;
|
|
|
|
Result = Result && !lstrcmpW(ServerName->Buffer, buf);
|
|
|
|
HeapFree(GetProcessHeap(), 0, buf);
|
|
|
|
|
|
|
|
return Result;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2008-10-26 22:53:30 +00:00
|
|
|
handle_t __RPC_USER
|
|
|
|
PLSAPR_SERVER_NAME_bind(PLSAPR_SERVER_NAME pszSystemName)
|
2006-01-15 13:19:57 +00:00
|
|
|
{
|
2008-10-26 22:53:30 +00:00
|
|
|
handle_t hBinding = NULL;
|
2006-01-15 13:19:57 +00:00
|
|
|
LPWSTR pszStringBinding;
|
|
|
|
RPC_STATUS status;
|
|
|
|
|
2008-10-26 22:53:30 +00:00
|
|
|
TRACE("PLSAPR_SERVER_NAME_bind() called\n");
|
2006-01-15 13:19:57 +00:00
|
|
|
|
2008-10-31 22:21:34 +00:00
|
|
|
status = RpcStringBindingComposeW(NULL,
|
2006-01-15 13:19:57 +00:00
|
|
|
L"ncacn_np",
|
2008-10-31 22:21:34 +00:00
|
|
|
pszSystemName,
|
2006-01-15 13:19:57 +00:00
|
|
|
L"\\pipe\\lsarpc",
|
|
|
|
NULL,
|
|
|
|
&pszStringBinding);
|
|
|
|
if (status)
|
|
|
|
{
|
2008-02-08 17:04:39 +00:00
|
|
|
TRACE("RpcStringBindingCompose returned 0x%x\n", status);
|
2008-10-26 22:53:30 +00:00
|
|
|
return NULL;
|
2006-01-15 13:19:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Set the binding handle that will be used to bind to the server. */
|
|
|
|
status = RpcBindingFromStringBindingW(pszStringBinding,
|
2008-10-26 22:53:30 +00:00
|
|
|
&hBinding);
|
2006-01-15 13:19:57 +00:00
|
|
|
if (status)
|
|
|
|
{
|
2008-02-08 17:04:39 +00:00
|
|
|
TRACE("RpcBindingFromStringBinding returned 0x%x\n", status);
|
2006-01-15 13:19:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
status = RpcStringFreeW(&pszStringBinding);
|
|
|
|
if (status)
|
|
|
|
{
|
2008-02-08 17:04:39 +00:00
|
|
|
TRACE("RpcStringFree returned 0x%x\n", status);
|
2006-01-15 13:19:57 +00:00
|
|
|
}
|
|
|
|
|
2008-10-26 22:53:30 +00:00
|
|
|
return hBinding;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void __RPC_USER
|
|
|
|
PLSAPR_SERVER_NAME_unbind(PLSAPR_SERVER_NAME pszSystemName,
|
|
|
|
handle_t hBinding)
|
|
|
|
{
|
|
|
|
RPC_STATUS status;
|
|
|
|
|
|
|
|
TRACE("PLSAPR_SERVER_NAME_unbind() called\n");
|
|
|
|
|
|
|
|
status = RpcBindingFree(&hBinding);
|
|
|
|
if (status)
|
2006-01-15 13:19:57 +00:00
|
|
|
{
|
2008-10-26 22:53:30 +00:00
|
|
|
TRACE("RpcBindingFree returned 0x%x\n", status);
|
2006-01-15 13:19:57 +00:00
|
|
|
}
|
|
|
|
}
|
2004-03-08 18:09:05 +00:00
|
|
|
|
2003-09-08 09:56:57 +00:00
|
|
|
|
|
|
|
/*
|
2006-01-15 13:19:57 +00:00
|
|
|
* @implemented
|
2003-09-08 09:56:57 +00:00
|
|
|
*/
|
2008-11-30 11:42:05 +00:00
|
|
|
NTSTATUS WINAPI
|
2003-09-08 09:56:57 +00:00
|
|
|
LsaClose(LSA_HANDLE ObjectHandle)
|
|
|
|
{
|
2008-12-20 13:48:35 +00:00
|
|
|
NTSTATUS Status;
|
2008-12-14 13:16:16 +00:00
|
|
|
|
2008-02-08 17:04:39 +00:00
|
|
|
TRACE("LsaClose(0x%p) called\n", ObjectHandle);
|
2006-01-15 13:19:57 +00:00
|
|
|
|
2009-01-07 09:44:21 +00:00
|
|
|
RpcTryExcept
|
2008-12-14 13:16:16 +00:00
|
|
|
{
|
|
|
|
Status = LsarClose((PLSAPR_HANDLE)&ObjectHandle);
|
|
|
|
}
|
2009-01-07 09:44:21 +00:00
|
|
|
RpcExcept(EXCEPTION_EXECUTE_HANDLER)
|
2008-12-14 13:16:16 +00:00
|
|
|
{
|
|
|
|
Status = I_RpcMapWin32Status(RpcExceptionCode());
|
|
|
|
}
|
2009-01-07 09:44:21 +00:00
|
|
|
RpcEndExcept;
|
2008-02-08 17:52:48 +00:00
|
|
|
|
2008-12-14 13:16:16 +00:00
|
|
|
return Status;
|
2003-09-08 09:56:57 +00:00
|
|
|
}
|
|
|
|
|
2006-01-15 14:34:58 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
2008-11-30 11:42:05 +00:00
|
|
|
NTSTATUS WINAPI
|
2006-01-15 14:34:58 +00:00
|
|
|
LsaDelete(LSA_HANDLE ObjectHandle)
|
|
|
|
{
|
2008-12-14 13:16:16 +00:00
|
|
|
NTSTATUS Status;
|
|
|
|
|
2008-02-08 17:04:39 +00:00
|
|
|
TRACE("LsaDelete(0x%p) called\n", ObjectHandle);
|
2006-01-15 14:34:58 +00:00
|
|
|
|
2009-01-07 09:44:21 +00:00
|
|
|
RpcTryExcept
|
2008-12-14 13:16:16 +00:00
|
|
|
{
|
|
|
|
Status = LsarDelete((LSAPR_HANDLE)ObjectHandle);
|
|
|
|
}
|
2009-01-07 09:44:21 +00:00
|
|
|
RpcExcept(EXCEPTION_EXECUTE_HANDLER)
|
2008-12-14 13:16:16 +00:00
|
|
|
{
|
|
|
|
Status = I_RpcMapWin32Status(RpcExceptionCode());
|
|
|
|
}
|
2009-01-07 09:44:21 +00:00
|
|
|
RpcEndExcept;
|
2008-12-14 13:16:16 +00:00
|
|
|
|
|
|
|
return Status;
|
2006-01-15 14:34:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-09-08 09:56:57 +00:00
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
NTSTATUS
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2003-09-08 09:56:57 +00:00
|
|
|
LsaAddAccountRights(
|
2004-06-17 09:07:12 +00:00
|
|
|
LSA_HANDLE PolicyHandle,
|
2003-09-08 09:56:57 +00:00
|
|
|
PSID AccountSid,
|
|
|
|
PLSA_UNICODE_STRING UserRights,
|
2004-06-17 09:07:12 +00:00
|
|
|
ULONG CountOfRights)
|
2003-09-08 09:56:57 +00:00
|
|
|
{
|
2008-02-08 20:11:56 +00:00
|
|
|
FIXME("(%p,%p,%p,0x%08x) stub\n", PolicyHandle, AccountSid, UserRights, CountOfRights);
|
2009-06-19 22:08:02 +00:00
|
|
|
return STATUS_OBJECT_NAME_NOT_FOUND;
|
2003-09-08 09:56:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
NTSTATUS
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2003-09-08 09:56:57 +00:00
|
|
|
LsaCreateTrustedDomainEx(
|
2004-06-17 09:07:12 +00:00
|
|
|
LSA_HANDLE PolicyHandle,
|
2003-09-08 09:56:57 +00:00
|
|
|
PTRUSTED_DOMAIN_INFORMATION_EX TrustedDomainInformation,
|
|
|
|
PTRUSTED_DOMAIN_AUTH_INFORMATION AuthenticationInformation,
|
|
|
|
ACCESS_MASK DesiredAccess,
|
2004-06-17 09:07:12 +00:00
|
|
|
PLSA_HANDLE TrustedDomainHandle)
|
2003-09-08 09:56:57 +00:00
|
|
|
{
|
2008-02-08 20:11:56 +00:00
|
|
|
FIXME("(%p,%p,%p,0x%08x,%p) stub\n", PolicyHandle, TrustedDomainInformation, AuthenticationInformation,
|
|
|
|
DesiredAccess, TrustedDomainHandle);
|
Sync aclui, advapi32, atl, authz, kernel32, msi, oledlg, powrprof, qmgr, riched20, samlib to Wine 1.2rc5
Update some psdk Headers to get some more synched winetests build
svn path=/trunk/; revision=47930
2010-07-03 12:42:55 +00:00
|
|
|
return STATUS_SUCCESS;
|
2003-09-08 09:56:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
NTSTATUS
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2003-09-08 09:56:57 +00:00
|
|
|
LsaDeleteTrustedDomain(
|
2004-06-17 09:07:12 +00:00
|
|
|
LSA_HANDLE PolicyHandle,
|
|
|
|
PSID TrustedDomainSid)
|
2003-09-08 09:56:57 +00:00
|
|
|
{
|
2008-02-08 20:11:56 +00:00
|
|
|
FIXME("(%p,%p) stub\n", PolicyHandle, TrustedDomainSid);
|
2009-06-19 22:08:02 +00:00
|
|
|
return STATUS_SUCCESS;
|
2003-09-08 09:56:57 +00:00
|
|
|
}
|
1999-05-19 16:43:30 +00:00
|
|
|
|
2003-02-02 19:24:44 +00:00
|
|
|
/*
|
2010-02-07 13:51:25 +00:00
|
|
|
* @implemented
|
2003-09-08 09:56:57 +00:00
|
|
|
*/
|
|
|
|
NTSTATUS
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2003-09-08 09:56:57 +00:00
|
|
|
LsaEnumerateAccountRights(
|
2004-06-17 09:07:12 +00:00
|
|
|
LSA_HANDLE PolicyHandle,
|
2003-09-08 09:56:57 +00:00
|
|
|
PSID AccountSid,
|
|
|
|
PLSA_UNICODE_STRING *UserRights,
|
2004-06-17 09:07:12 +00:00
|
|
|
PULONG CountOfRights)
|
2003-09-08 09:56:57 +00:00
|
|
|
{
|
2010-02-07 13:51:25 +00:00
|
|
|
LSAPR_USER_RIGHT_SET UserRightsSet;
|
|
|
|
NTSTATUS Status;
|
|
|
|
|
|
|
|
TRACE("(%p,%p,%p,%p) stub\n", PolicyHandle, AccountSid, UserRights, CountOfRights);
|
|
|
|
|
|
|
|
UserRightsSet.Entries = 0;
|
|
|
|
UserRightsSet.UserRights = NULL;
|
|
|
|
|
|
|
|
RpcTryExcept
|
|
|
|
{
|
|
|
|
Status = LsarEnmuerateAccountRights((LSAPR_HANDLE)PolicyHandle,
|
|
|
|
AccountSid,
|
|
|
|
&UserRightsSet);
|
|
|
|
|
|
|
|
*CountOfRights = UserRightsSet.Entries;
|
|
|
|
*UserRights = (PUNICODE_STRING)UserRightsSet.UserRights;
|
|
|
|
}
|
|
|
|
RpcExcept(EXCEPTION_EXECUTE_HANDLER)
|
|
|
|
{
|
|
|
|
Status = I_RpcMapWin32Status(RpcExceptionCode());
|
|
|
|
|
|
|
|
if (UserRightsSet.UserRights != NULL)
|
|
|
|
{
|
|
|
|
MIDL_user_free(UserRightsSet.UserRights);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
RpcEndExcept;
|
|
|
|
|
|
|
|
return Status;
|
2003-09-08 09:56:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
NTSTATUS
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2003-09-08 09:56:57 +00:00
|
|
|
LsaEnumerateAccountsWithUserRight(
|
2004-06-17 09:07:12 +00:00
|
|
|
LSA_HANDLE PolicyHandle,
|
2003-09-08 09:56:57 +00:00
|
|
|
OPTIONAL PLSA_UNICODE_STRING UserRights,
|
|
|
|
PVOID *EnumerationBuffer,
|
2004-06-17 09:07:12 +00:00
|
|
|
PULONG CountReturned)
|
2003-09-08 09:56:57 +00:00
|
|
|
{
|
2008-02-08 20:11:56 +00:00
|
|
|
FIXME("(%p,%p,%p,%p) stub\n", PolicyHandle, UserRights, EnumerationBuffer, CountReturned);
|
2009-06-19 22:08:02 +00:00
|
|
|
return STATUS_NO_MORE_ENTRIES;
|
2003-09-08 09:56:57 +00:00
|
|
|
}
|
1999-05-19 16:43:30 +00:00
|
|
|
|
2003-09-08 09:56:57 +00:00
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
NTSTATUS
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2003-09-08 09:56:57 +00:00
|
|
|
LsaEnumerateTrustedDomains(
|
2004-06-17 09:07:12 +00:00
|
|
|
LSA_HANDLE PolicyHandle,
|
2003-09-08 09:56:57 +00:00
|
|
|
PLSA_ENUMERATION_HANDLE EnumerationContext,
|
|
|
|
PVOID *Buffer,
|
|
|
|
ULONG PreferedMaximumLength,
|
2004-06-17 09:07:12 +00:00
|
|
|
PULONG CountReturned)
|
2003-09-08 09:56:57 +00:00
|
|
|
{
|
2008-02-08 20:11:56 +00:00
|
|
|
FIXME("(%p,%p,%p,0x%08x,%p) stub\n", PolicyHandle, EnumerationContext,
|
|
|
|
Buffer, PreferedMaximumLength, CountReturned);
|
2009-06-19 22:08:02 +00:00
|
|
|
|
|
|
|
if (CountReturned) *CountReturned = 0;
|
|
|
|
return STATUS_SUCCESS;
|
2003-09-08 09:56:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
NTSTATUS
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2003-09-08 09:56:57 +00:00
|
|
|
LsaEnumerateTrustedDomainsEx(
|
2004-06-17 09:07:12 +00:00
|
|
|
LSA_HANDLE PolicyHandle,
|
2003-09-08 09:56:57 +00:00
|
|
|
PLSA_ENUMERATION_HANDLE EnumerationContext,
|
|
|
|
PVOID *Buffer,
|
|
|
|
ULONG PreferedMaximumLength,
|
2004-06-17 09:07:12 +00:00
|
|
|
PULONG CountReturned)
|
2003-09-08 09:56:57 +00:00
|
|
|
{
|
2008-02-08 20:11:56 +00:00
|
|
|
FIXME("(%p,%p,%p,0x%08x,%p) stub\n", PolicyHandle, EnumerationContext, Buffer,
|
|
|
|
PreferedMaximumLength, CountReturned);
|
2009-06-19 22:08:02 +00:00
|
|
|
if (CountReturned) *CountReturned = 0;
|
|
|
|
return STATUS_SUCCESS;
|
2004-06-17 09:07:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
2010-02-07 13:51:25 +00:00
|
|
|
NTSTATUS
|
|
|
|
WINAPI
|
2004-06-17 09:07:12 +00:00
|
|
|
LsaFreeMemory(PVOID Buffer)
|
|
|
|
{
|
2008-02-08 20:11:56 +00:00
|
|
|
TRACE("(%p)\n", Buffer);
|
|
|
|
return RtlFreeHeap(RtlGetProcessHeap(), 0, Buffer);
|
2003-09-08 09:56:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2007-08-08 08:24:32 +00:00
|
|
|
* @implemented
|
2003-09-08 09:56:57 +00:00
|
|
|
*/
|
|
|
|
NTSTATUS
|
2007-08-08 08:24:32 +00:00
|
|
|
WINAPI
|
2010-07-18 20:34:34 +00:00
|
|
|
LsaLookupNames(IN LSA_HANDLE PolicyHandle,
|
|
|
|
IN ULONG Count,
|
|
|
|
IN PLSA_UNICODE_STRING Names,
|
|
|
|
OUT PLSA_REFERENCED_DOMAIN_LIST *ReferencedDomains,
|
|
|
|
OUT PLSA_TRANSLATED_SID *Sids)
|
2003-09-08 09:56:57 +00:00
|
|
|
{
|
2010-07-18 20:34:34 +00:00
|
|
|
LSAPR_TRANSLATED_SIDS TranslatedSids;
|
|
|
|
ULONG MappedCount = 0;
|
2007-08-08 08:24:32 +00:00
|
|
|
NTSTATUS Status;
|
|
|
|
|
2008-02-08 20:11:56 +00:00
|
|
|
TRACE("(%p,0x%08x,%p,%p,%p)\n", PolicyHandle, Count, Names,
|
|
|
|
ReferencedDomains, Sids);
|
|
|
|
|
2010-07-18 20:34:34 +00:00
|
|
|
RpcTryExcept
|
2007-08-08 08:24:32 +00:00
|
|
|
{
|
2010-07-18 20:34:34 +00:00
|
|
|
*ReferencedDomains = NULL;
|
|
|
|
*Sids = NULL;
|
|
|
|
|
|
|
|
TranslatedSids.Entries = Count;
|
|
|
|
TranslatedSids.Sids = *Sids;
|
|
|
|
|
|
|
|
Status = LsarLookupNames((LSAPR_HANDLE)PolicyHandle,
|
|
|
|
Count,
|
|
|
|
(PRPC_UNICODE_STRING)Names,
|
|
|
|
(PLSAPR_REFERENCED_DOMAIN_LIST *)ReferencedDomains,
|
|
|
|
&TranslatedSids,
|
|
|
|
LsapLookupWksta,
|
|
|
|
&MappedCount);
|
|
|
|
|
|
|
|
*Sids = (PLSA_TRANSLATED_SID)TranslatedSids.Sids;
|
2007-08-08 08:24:32 +00:00
|
|
|
}
|
2010-07-18 20:34:34 +00:00
|
|
|
RpcExcept(EXCEPTION_EXECUTE_HANDLER)
|
2007-08-08 08:24:32 +00:00
|
|
|
{
|
2010-07-18 20:34:34 +00:00
|
|
|
if (TranslatedSids.Sids != NULL)
|
2007-08-08 08:24:32 +00:00
|
|
|
{
|
2010-07-18 20:34:34 +00:00
|
|
|
MIDL_user_free(TranslatedSids.Sids);
|
2007-08-08 08:24:32 +00:00
|
|
|
}
|
|
|
|
|
2010-07-18 20:34:34 +00:00
|
|
|
Status = I_RpcMapWin32Status(RpcExceptionCode());
|
|
|
|
}
|
|
|
|
RpcEndExcept;
|
2007-08-08 08:24:32 +00:00
|
|
|
|
|
|
|
return Status;
|
2003-09-08 09:56:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
NTSTATUS
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2003-09-08 09:56:57 +00:00
|
|
|
LsaLookupNames2(
|
2004-06-17 09:07:12 +00:00
|
|
|
LSA_HANDLE PolicyHandle,
|
2003-09-08 09:56:57 +00:00
|
|
|
ULONG Flags,
|
|
|
|
ULONG Count,
|
|
|
|
PLSA_UNICODE_STRING Names,
|
|
|
|
PLSA_REFERENCED_DOMAIN_LIST *ReferencedDomains,
|
2004-06-17 09:07:12 +00:00
|
|
|
PLSA_TRANSLATED_SID2 *Sids)
|
2003-09-08 09:56:57 +00:00
|
|
|
{
|
2008-02-08 17:52:48 +00:00
|
|
|
FIXME("(%p,0x%08x,0x%08x,%p,%p,%p) stub\n", PolicyHandle, Flags,
|
|
|
|
Count, Names, ReferencedDomains, Sids);
|
2009-12-16 20:26:18 +00:00
|
|
|
if (Names != NULL && Count > 0)
|
|
|
|
{
|
|
|
|
*ReferencedDomains = RtlAllocateHeap(RtlGetProcessHeap(), 0, sizeof(LSA_REFERENCED_DOMAIN_LIST));
|
|
|
|
*Sids = RtlAllocateHeap(RtlGetProcessHeap(), 0, Count * sizeof(LSA_TRANSLATED_SID2));
|
|
|
|
return STATUS_SOME_NOT_MAPPED;
|
|
|
|
}
|
2008-02-08 17:52:48 +00:00
|
|
|
return STATUS_NONE_MAPPED;
|
2003-09-08 09:56:57 +00:00
|
|
|
}
|
|
|
|
|
2010-07-04 12:51:39 +00:00
|
|
|
/*
|
|
|
|
* @unmplemented
|
|
|
|
*/
|
|
|
|
NTSTATUS
|
|
|
|
WINAPI
|
|
|
|
LsaLookupPrivilegeName(IN LSA_HANDLE PolicyHandle,
|
|
|
|
IN PLUID Value,
|
|
|
|
OUT PUNICODE_STRING *Name)
|
|
|
|
{
|
|
|
|
PRPC_UNICODE_STRING NameBuffer = NULL;
|
|
|
|
NTSTATUS Status;
|
|
|
|
|
2010-07-11 09:33:44 +00:00
|
|
|
TRACE("(%p,%p,%p)\n", PolicyHandle, Value, Name);
|
2010-07-04 12:51:39 +00:00
|
|
|
|
|
|
|
RpcTryExcept
|
|
|
|
{
|
|
|
|
Status = LsarLookupPrivilegeName(PolicyHandle,
|
|
|
|
Value,
|
|
|
|
&NameBuffer);
|
|
|
|
|
|
|
|
*Name = (PUNICODE_STRING)NameBuffer;
|
|
|
|
}
|
|
|
|
RpcExcept(EXCEPTION_EXECUTE_HANDLER)
|
|
|
|
{
|
|
|
|
if (NameBuffer != NULL)
|
|
|
|
MIDL_user_free(NameBuffer);
|
|
|
|
|
|
|
|
Status = I_RpcMapWin32Status(RpcExceptionCode());
|
|
|
|
}
|
|
|
|
RpcEndExcept;
|
|
|
|
|
|
|
|
return Status;
|
|
|
|
}
|
|
|
|
|
2010-07-03 22:51:44 +00:00
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
NTSTATUS
|
|
|
|
WINAPI
|
|
|
|
LsaLookupPrivilegeValue(IN LSA_HANDLE PolicyHandle,
|
|
|
|
IN PLSA_UNICODE_STRING Name,
|
|
|
|
OUT PLUID Value)
|
|
|
|
{
|
|
|
|
LUID Luid;
|
|
|
|
NTSTATUS Status;
|
|
|
|
|
2010-07-11 09:33:44 +00:00
|
|
|
TRACE("(%p,%p,%p)\n", PolicyHandle, Name, Value);
|
2010-07-03 22:51:44 +00:00
|
|
|
|
|
|
|
RpcTryExcept
|
|
|
|
{
|
|
|
|
Status = LsarLookupPrivilegeValue(PolicyHandle,
|
|
|
|
(PRPC_UNICODE_STRING)Name,
|
|
|
|
&Luid);
|
|
|
|
if (Status == STATUS_SUCCESS)
|
|
|
|
*Value = Luid;
|
|
|
|
}
|
|
|
|
RpcExcept(EXCEPTION_EXECUTE_HANDLER)
|
|
|
|
{
|
|
|
|
Status = I_RpcMapWin32Status(RpcExceptionCode());
|
|
|
|
}
|
|
|
|
RpcEndExcept;
|
|
|
|
|
|
|
|
return Status;
|
|
|
|
}
|
|
|
|
|
2003-09-08 09:56:57 +00:00
|
|
|
/*
|
2010-07-11 09:33:44 +00:00
|
|
|
* @implemented
|
2003-09-08 09:56:57 +00:00
|
|
|
*/
|
|
|
|
NTSTATUS
|
2007-08-08 08:24:32 +00:00
|
|
|
WINAPI
|
2010-07-18 20:34:34 +00:00
|
|
|
LsaLookupSids(IN LSA_HANDLE PolicyHandle,
|
|
|
|
IN ULONG Count,
|
|
|
|
IN PSID *Sids,
|
|
|
|
OUT PLSA_REFERENCED_DOMAIN_LIST *ReferencedDomains,
|
|
|
|
OUT PLSA_TRANSLATED_NAME *Names)
|
2004-06-17 09:07:12 +00:00
|
|
|
{
|
2010-07-11 09:33:44 +00:00
|
|
|
LSAPR_SID_ENUM_BUFFER SidEnumBuffer;
|
|
|
|
LSAPR_TRANSLATED_NAMES TranslatedNames;
|
|
|
|
ULONG MappedCount = 0;
|
|
|
|
NTSTATUS Status;
|
2007-08-08 08:24:32 +00:00
|
|
|
|
2010-07-11 09:33:44 +00:00
|
|
|
TRACE("(%p,%u,%p,%p,%p)\n", PolicyHandle, Count, Sids,
|
2008-02-08 20:11:56 +00:00
|
|
|
ReferencedDomains, Names);
|
|
|
|
|
2010-07-11 09:33:44 +00:00
|
|
|
if (Count == 0)
|
|
|
|
return STATUS_INVALID_PARAMETER;
|
|
|
|
|
|
|
|
SidEnumBuffer.Entries = Count;
|
|
|
|
SidEnumBuffer.SidInfo = (PLSAPR_SID_INFORMATION)Sids;
|
|
|
|
|
|
|
|
RpcTryExcept
|
2007-08-08 08:24:32 +00:00
|
|
|
{
|
2010-07-11 09:33:44 +00:00
|
|
|
*ReferencedDomains = NULL;
|
|
|
|
*Names = NULL;
|
|
|
|
|
|
|
|
TranslatedNames.Entries = 0;
|
|
|
|
TranslatedNames.Names = NULL;
|
|
|
|
|
|
|
|
Status = LsarLookupSids((LSAPR_HANDLE)PolicyHandle,
|
|
|
|
&SidEnumBuffer,
|
|
|
|
(PLSAPR_REFERENCED_DOMAIN_LIST *)ReferencedDomains,
|
|
|
|
&TranslatedNames,
|
|
|
|
LsapLookupWksta,
|
|
|
|
&MappedCount);
|
|
|
|
|
|
|
|
*Names = (PLSA_TRANSLATED_NAME)TranslatedNames.Names;
|
2007-08-08 08:24:32 +00:00
|
|
|
}
|
2010-07-11 09:33:44 +00:00
|
|
|
RpcExcept(EXCEPTION_EXECUTE_HANDLER)
|
|
|
|
{
|
|
|
|
if (TranslatedNames.Names != NULL)
|
|
|
|
{
|
|
|
|
MIDL_user_free(TranslatedNames.Names);
|
|
|
|
}
|
|
|
|
|
|
|
|
Status = I_RpcMapWin32Status(RpcExceptionCode());
|
|
|
|
}
|
|
|
|
RpcEndExcept;
|
|
|
|
|
|
|
|
return Status;
|
2004-06-17 09:07:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* LsaNtStatusToWinError
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* Status [I]
|
|
|
|
*
|
|
|
|
* @implemented
|
|
|
|
*/
|
2008-11-30 11:42:05 +00:00
|
|
|
ULONG WINAPI
|
2004-06-17 09:07:12 +00:00
|
|
|
LsaNtStatusToWinError(NTSTATUS Status)
|
2003-09-08 09:56:57 +00:00
|
|
|
{
|
2008-02-08 20:11:56 +00:00
|
|
|
TRACE("(%lx)\n", Status);
|
|
|
|
return RtlNtStatusToDosError(Status);
|
2004-06-17 09:07:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* LsaOpenPolicy
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* x1 []
|
|
|
|
* x2 []
|
|
|
|
* x3 []
|
|
|
|
* x4 []
|
|
|
|
*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
2008-02-08 17:52:48 +00:00
|
|
|
NTSTATUS
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2008-02-08 17:52:48 +00:00
|
|
|
LsaOpenPolicy(
|
|
|
|
IN PLSA_UNICODE_STRING SystemName,
|
|
|
|
IN PLSA_OBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
IN ACCESS_MASK DesiredAccess,
|
|
|
|
IN OUT PLSA_HANDLE PolicyHandle)
|
2004-06-17 09:07:12 +00:00
|
|
|
{
|
2008-12-20 13:48:35 +00:00
|
|
|
NTSTATUS Status;
|
2008-12-14 13:16:16 +00:00
|
|
|
|
|
|
|
TRACE("LsaOpenPolicy (%s,%p,0x%08x,%p)\n",
|
2009-02-01 05:51:07 +00:00
|
|
|
SystemName ? debugstr_w(SystemName->Buffer) : "(null)",
|
2008-02-08 17:52:48 +00:00
|
|
|
ObjectAttributes, DesiredAccess, PolicyHandle);
|
|
|
|
|
2010-07-04 12:51:39 +00:00
|
|
|
/* FIXME: RPC should take care of this */
|
|
|
|
if (!LsapIsLocalComputer(SystemName))
|
|
|
|
return RPC_NT_SERVER_UNAVAILABLE;
|
|
|
|
|
2009-01-07 09:44:21 +00:00
|
|
|
RpcTryExcept
|
2008-12-14 13:16:16 +00:00
|
|
|
{
|
|
|
|
*PolicyHandle = NULL;
|
|
|
|
|
2009-02-01 05:51:07 +00:00
|
|
|
Status = LsarOpenPolicy(SystemName ? SystemName->Buffer : NULL,
|
2008-12-14 13:16:16 +00:00
|
|
|
(PLSAPR_OBJECT_ATTRIBUTES)ObjectAttributes,
|
|
|
|
DesiredAccess,
|
|
|
|
PolicyHandle);
|
|
|
|
}
|
2009-01-07 09:44:21 +00:00
|
|
|
RpcExcept(EXCEPTION_EXECUTE_HANDLER)
|
2008-12-14 13:16:16 +00:00
|
|
|
{
|
|
|
|
Status = I_RpcMapWin32Status(RpcExceptionCode());
|
|
|
|
}
|
2009-01-07 09:44:21 +00:00
|
|
|
RpcEndExcept;
|
2008-12-14 13:16:16 +00:00
|
|
|
|
|
|
|
TRACE("LsaOpenPolicy() done (Status: 0x%08lx)\n", Status);
|
|
|
|
|
|
|
|
return Status;
|
2003-09-08 09:56:57 +00:00
|
|
|
}
|
|
|
|
|
2008-12-14 13:16:16 +00:00
|
|
|
|
2003-09-08 09:56:57 +00:00
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
NTSTATUS
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2003-09-08 09:56:57 +00:00
|
|
|
LsaOpenTrustedDomainByName(
|
2004-06-17 09:07:12 +00:00
|
|
|
LSA_HANDLE PolicyHandle,
|
2003-09-08 09:56:57 +00:00
|
|
|
PLSA_UNICODE_STRING TrustedDomainName,
|
|
|
|
ACCESS_MASK DesiredAccess,
|
2004-06-17 09:07:12 +00:00
|
|
|
PLSA_HANDLE TrustedDomainHandle)
|
2003-09-08 09:56:57 +00:00
|
|
|
{
|
2008-02-08 20:11:56 +00:00
|
|
|
FIXME("(%p,%p,0x%08x,%p) stub\n", PolicyHandle, TrustedDomainName, DesiredAccess, TrustedDomainHandle);
|
2009-06-19 22:08:02 +00:00
|
|
|
return STATUS_OBJECT_NAME_NOT_FOUND;
|
2003-09-08 09:56:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
NTSTATUS
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2003-09-08 09:56:57 +00:00
|
|
|
LsaQueryDomainInformationPolicy(
|
2004-06-17 09:07:12 +00:00
|
|
|
LSA_HANDLE PolicyHandle,
|
2008-02-08 20:11:56 +00:00
|
|
|
POLICY_DOMAIN_INFORMATION_CLASS InformationClass,
|
2004-06-17 09:07:12 +00:00
|
|
|
PVOID *Buffer)
|
2003-09-08 09:56:57 +00:00
|
|
|
{
|
2008-02-08 20:11:56 +00:00
|
|
|
FIXME("(%p,0x%08x,%p)\n", PolicyHandle, InformationClass, Buffer);
|
|
|
|
return STATUS_NOT_IMPLEMENTED;
|
2003-09-08 09:56:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
NTSTATUS
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2003-09-08 09:56:57 +00:00
|
|
|
LsaQueryForestTrustInformation(
|
2004-06-17 09:07:12 +00:00
|
|
|
LSA_HANDLE PolicyHandle,
|
2003-09-08 09:56:57 +00:00
|
|
|
PLSA_UNICODE_STRING TrustedDomainName,
|
2004-06-17 09:07:12 +00:00
|
|
|
PLSA_FOREST_TRUST_INFORMATION * ForestTrustInfo)
|
|
|
|
{
|
2008-02-08 20:11:56 +00:00
|
|
|
FIXME("(%p,%p,%p) stub\n", PolicyHandle, TrustedDomainName, ForestTrustInfo);
|
|
|
|
return STATUS_NOT_IMPLEMENTED;
|
2004-06-17 09:07:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
2008-11-30 11:42:05 +00:00
|
|
|
NTSTATUS WINAPI
|
2004-06-17 09:07:12 +00:00
|
|
|
LsaQueryInformationPolicy(LSA_HANDLE PolicyHandle,
|
2008-09-05 11:32:15 +00:00
|
|
|
POLICY_INFORMATION_CLASS InformationClass,
|
|
|
|
PVOID *Buffer)
|
2003-09-08 09:56:57 +00:00
|
|
|
{
|
2008-09-05 11:32:15 +00:00
|
|
|
TRACE("(%p,0x%08x,%p)\n", PolicyHandle, InformationClass, Buffer);
|
|
|
|
|
|
|
|
if(!Buffer) return STATUS_INVALID_PARAMETER;
|
|
|
|
switch (InformationClass)
|
|
|
|
{
|
|
|
|
case PolicyAuditEventsInformation: /* 2 */
|
|
|
|
{
|
|
|
|
PPOLICY_AUDIT_EVENTS_INFO p = RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY,
|
|
|
|
sizeof(POLICY_AUDIT_EVENTS_INFO));
|
|
|
|
p->AuditingMode = FALSE; /* no auditing */
|
|
|
|
*Buffer = p;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case PolicyPrimaryDomainInformation: /* 3 */
|
2009-02-01 06:14:29 +00:00
|
|
|
{
|
|
|
|
/* Only the domain name is valid for the local computer.
|
|
|
|
* All other fields are zero.
|
|
|
|
*/
|
|
|
|
PPOLICY_PRIMARY_DOMAIN_INFO pinfo;
|
|
|
|
|
|
|
|
pinfo = ADVAPI_GetDomainName(sizeof(*pinfo), offsetof(POLICY_PRIMARY_DOMAIN_INFO, Name));
|
|
|
|
|
|
|
|
TRACE("setting domain to %s\n", debugstr_w(pinfo->Name.Buffer));
|
|
|
|
|
|
|
|
*Buffer = pinfo;
|
|
|
|
}
|
2008-09-05 11:32:15 +00:00
|
|
|
case PolicyAccountDomainInformation: /* 5 */
|
|
|
|
{
|
|
|
|
struct di
|
|
|
|
{
|
2009-02-01 06:14:29 +00:00
|
|
|
POLICY_ACCOUNT_DOMAIN_INFO info;
|
2008-09-05 11:32:15 +00:00
|
|
|
SID sid;
|
2009-02-01 06:14:29 +00:00
|
|
|
DWORD padding[3];
|
|
|
|
WCHAR domain[MAX_COMPUTERNAME_LENGTH + 1];
|
2008-09-05 11:32:15 +00:00
|
|
|
};
|
|
|
|
|
2009-02-01 06:14:29 +00:00
|
|
|
DWORD dwSize = MAX_COMPUTERNAME_LENGTH + 1;
|
Sync aclui, advapi32, atl, authz, kernel32, msi, oledlg, powrprof, qmgr, riched20, samlib to Wine 1.2rc5
Update some psdk Headers to get some more synched winetests build
svn path=/trunk/; revision=47930
2010-07-03 12:42:55 +00:00
|
|
|
struct di * xdi = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*xdi));
|
2008-09-05 11:32:15 +00:00
|
|
|
|
2009-02-01 06:14:29 +00:00
|
|
|
xdi->info.DomainName.MaximumLength = dwSize * sizeof(WCHAR);
|
|
|
|
xdi->info.DomainName.Buffer = xdi->domain;
|
|
|
|
if (GetComputerNameW(xdi->info.DomainName.Buffer, &dwSize))
|
|
|
|
xdi->info.DomainName.Length = dwSize * sizeof(WCHAR);
|
|
|
|
|
|
|
|
TRACE("setting name to %s\n", debugstr_w(xdi->info.DomainName.Buffer));
|
|
|
|
|
|
|
|
xdi->info.DomainSid = &xdi->sid;
|
Sync aclui, advapi32, atl, authz, kernel32, msi, oledlg, powrprof, qmgr, riched20, samlib to Wine 1.2rc5
Update some psdk Headers to get some more synched winetests build
svn path=/trunk/; revision=47930
2010-07-03 12:42:55 +00:00
|
|
|
|
|
|
|
/* read the computer SID from the registry */
|
|
|
|
if (!ADVAPI_GetComputerSid(&xdi->sid))
|
|
|
|
{
|
|
|
|
HeapFree(GetProcessHeap(), 0, xdi);
|
|
|
|
|
|
|
|
WARN("Computer SID not found\n");
|
|
|
|
|
|
|
|
return STATUS_UNSUCCESSFUL;
|
|
|
|
}
|
2009-02-01 06:14:29 +00:00
|
|
|
|
2008-09-05 11:32:15 +00:00
|
|
|
*Buffer = xdi;
|
|
|
|
}
|
|
|
|
break;
|
2009-02-01 06:14:29 +00:00
|
|
|
case PolicyDnsDomainInformation: /* 12 (0xc) */
|
|
|
|
{
|
|
|
|
/* Only the domain name is valid for the local computer.
|
|
|
|
* All other fields are zero.
|
|
|
|
*/
|
|
|
|
PPOLICY_DNS_DOMAIN_INFO pinfo;
|
|
|
|
|
|
|
|
pinfo = ADVAPI_GetDomainName(sizeof(*pinfo), offsetof(POLICY_DNS_DOMAIN_INFO, Name));
|
|
|
|
|
|
|
|
TRACE("setting domain to %s\n", debugstr_w(pinfo->Name.Buffer));
|
|
|
|
|
|
|
|
*Buffer = pinfo;
|
|
|
|
}
|
|
|
|
break;
|
2008-09-05 11:32:15 +00:00
|
|
|
case PolicyAuditLogInformation:
|
|
|
|
case PolicyPdAccountInformation:
|
|
|
|
case PolicyLsaServerRoleInformation:
|
|
|
|
case PolicyReplicaSourceInformation:
|
|
|
|
case PolicyDefaultQuotaInformation:
|
|
|
|
case PolicyModificationInformation:
|
|
|
|
case PolicyAuditFullSetInformation:
|
|
|
|
case PolicyAuditFullQueryInformation:
|
|
|
|
case PolicyEfsInformation:
|
|
|
|
{
|
|
|
|
FIXME("category not implemented\n");
|
|
|
|
return STATUS_UNSUCCESSFUL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return STATUS_SUCCESS;
|
2003-09-08 09:56:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
NTSTATUS
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2003-09-08 09:56:57 +00:00
|
|
|
LsaQueryTrustedDomainInfoByName(
|
2004-06-17 09:07:12 +00:00
|
|
|
LSA_HANDLE PolicyHandle,
|
2003-09-08 09:56:57 +00:00
|
|
|
PLSA_UNICODE_STRING TrustedDomainName,
|
2008-02-08 20:11:56 +00:00
|
|
|
TRUSTED_INFORMATION_CLASS InformationClass,
|
2004-06-17 09:07:12 +00:00
|
|
|
PVOID *Buffer)
|
2003-09-08 09:56:57 +00:00
|
|
|
{
|
2008-02-08 20:11:56 +00:00
|
|
|
FIXME("(%p,%p,%d,%p) stub\n", PolicyHandle, TrustedDomainName, InformationClass, Buffer);
|
2009-06-19 22:08:02 +00:00
|
|
|
return STATUS_OBJECT_NAME_NOT_FOUND;
|
2003-09-08 09:56:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
NTSTATUS
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2003-09-08 09:56:57 +00:00
|
|
|
LsaQueryTrustedDomainInfo(
|
2004-06-17 09:07:12 +00:00
|
|
|
LSA_HANDLE PolicyHandle,
|
2003-09-08 09:56:57 +00:00
|
|
|
PSID TrustedDomainSid,
|
2008-02-08 20:11:56 +00:00
|
|
|
TRUSTED_INFORMATION_CLASS InformationClass,
|
2004-06-17 09:07:12 +00:00
|
|
|
PVOID *Buffer)
|
2003-09-08 09:56:57 +00:00
|
|
|
{
|
2008-02-08 20:11:56 +00:00
|
|
|
FIXME("(%p,%p,%d,%p) stub\n", PolicyHandle, TrustedDomainSid, InformationClass, Buffer);
|
2009-06-19 22:08:02 +00:00
|
|
|
return STATUS_OBJECT_NAME_NOT_FOUND;
|
2003-09-08 09:56:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
NTSTATUS
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2003-09-08 09:56:57 +00:00
|
|
|
LsaRemoveAccountRights(
|
2004-06-17 09:07:12 +00:00
|
|
|
LSA_HANDLE PolicyHandle,
|
2003-09-08 09:56:57 +00:00
|
|
|
PSID AccountSid,
|
2004-06-17 09:07:12 +00:00
|
|
|
BOOLEAN AllRights,
|
2003-09-08 09:56:57 +00:00
|
|
|
PLSA_UNICODE_STRING UserRights,
|
2004-06-17 09:07:12 +00:00
|
|
|
ULONG CountOfRights)
|
2003-09-08 09:56:57 +00:00
|
|
|
{
|
2008-02-08 20:11:56 +00:00
|
|
|
FIXME("(%p,%p,%d,%p,0x%08x) stub\n", PolicyHandle, AccountSid, AllRights, UserRights, CountOfRights);
|
2009-06-19 22:08:02 +00:00
|
|
|
return STATUS_SUCCESS;
|
2003-09-08 09:56:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
NTSTATUS
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2003-09-08 09:56:57 +00:00
|
|
|
LsaRetrievePrivateData(
|
2004-06-17 09:07:12 +00:00
|
|
|
LSA_HANDLE PolicyHandle,
|
2003-09-08 09:56:57 +00:00
|
|
|
PLSA_UNICODE_STRING KeyName,
|
2004-06-17 09:07:12 +00:00
|
|
|
PLSA_UNICODE_STRING *PrivateData)
|
2003-09-08 09:56:57 +00:00
|
|
|
{
|
2008-02-08 20:11:56 +00:00
|
|
|
FIXME("(%p,%p,%p) stub\n", PolicyHandle, KeyName, PrivateData);
|
Sync aclui, advapi32, atl, authz, kernel32, msi, oledlg, powrprof, qmgr, riched20, samlib to Wine 1.2rc5
Update some psdk Headers to get some more synched winetests build
svn path=/trunk/; revision=47930
2010-07-03 12:42:55 +00:00
|
|
|
return STATUS_OBJECT_NAME_NOT_FOUND;
|
2003-09-08 09:56:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
NTSTATUS
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2003-09-08 09:56:57 +00:00
|
|
|
LsaSetDomainInformationPolicy(
|
2004-06-17 09:07:12 +00:00
|
|
|
LSA_HANDLE PolicyHandle,
|
2008-02-08 20:11:56 +00:00
|
|
|
POLICY_DOMAIN_INFORMATION_CLASS InformationClass,
|
2004-06-17 09:07:12 +00:00
|
|
|
PVOID Buffer)
|
2003-09-08 09:56:57 +00:00
|
|
|
{
|
2008-02-08 20:11:56 +00:00
|
|
|
FIXME("(%p,0x%08x,%p) stub\n", PolicyHandle, InformationClass, Buffer);
|
Sync aclui, advapi32, atl, authz, kernel32, msi, oledlg, powrprof, qmgr, riched20, samlib to Wine 1.2rc5
Update some psdk Headers to get some more synched winetests build
svn path=/trunk/; revision=47930
2010-07-03 12:42:55 +00:00
|
|
|
return STATUS_UNSUCCESSFUL;
|
2003-09-08 09:56:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
NTSTATUS
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2003-09-08 09:56:57 +00:00
|
|
|
LsaSetInformationPolicy(
|
2004-06-17 09:07:12 +00:00
|
|
|
LSA_HANDLE PolicyHandle,
|
2008-02-08 20:11:56 +00:00
|
|
|
POLICY_INFORMATION_CLASS InformationClass,
|
2004-06-17 09:07:12 +00:00
|
|
|
PVOID Buffer)
|
2003-09-08 09:56:57 +00:00
|
|
|
{
|
2008-02-08 20:11:56 +00:00
|
|
|
FIXME("(%p,0x%08x,%p) stub\n", PolicyHandle, InformationClass, Buffer);
|
2009-06-19 22:08:02 +00:00
|
|
|
return STATUS_UNSUCCESSFUL;
|
2003-09-08 09:56:57 +00:00
|
|
|
}
|
|
|
|
|
Sync aclui, advapi32, atl, authz, kernel32, msi, oledlg, powrprof, qmgr, riched20, samlib to Wine 1.2rc5
Update some psdk Headers to get some more synched winetests build
svn path=/trunk/; revision=47930
2010-07-03 12:42:55 +00:00
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2003-09-08 09:56:57 +00:00
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
NTSTATUS
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2003-09-08 09:56:57 +00:00
|
|
|
LsaSetForestTrustInformation(
|
2004-06-17 09:07:12 +00:00
|
|
|
LSA_HANDLE PolicyHandle,
|
2003-09-08 09:56:57 +00:00
|
|
|
PLSA_UNICODE_STRING TrustedDomainName,
|
|
|
|
PLSA_FOREST_TRUST_INFORMATION ForestTrustInfo,
|
2004-01-20 01:40:19 +00:00
|
|
|
BOOL CheckOnly,
|
2004-06-17 09:07:12 +00:00
|
|
|
PLSA_FOREST_TRUST_COLLISION_INFORMATION *CollisionInfo)
|
2003-09-08 09:56:57 +00:00
|
|
|
{
|
2008-02-08 20:11:56 +00:00
|
|
|
FIXME("(%p,%p,%p,%d,%p) stub\n", PolicyHandle, TrustedDomainName, ForestTrustInfo, CheckOnly, CollisionInfo);
|
|
|
|
return STATUS_NOT_IMPLEMENTED;
|
2003-09-08 09:56:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
NTSTATUS
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2003-09-08 09:56:57 +00:00
|
|
|
LsaSetTrustedDomainInfoByName(
|
2004-06-17 09:07:12 +00:00
|
|
|
LSA_HANDLE PolicyHandle,
|
2003-09-08 09:56:57 +00:00
|
|
|
PLSA_UNICODE_STRING TrustedDomainName,
|
2008-02-08 20:11:56 +00:00
|
|
|
TRUSTED_INFORMATION_CLASS InformationClass,
|
2004-06-17 09:07:12 +00:00
|
|
|
PVOID Buffer)
|
2003-09-08 09:56:57 +00:00
|
|
|
{
|
2008-02-08 20:11:56 +00:00
|
|
|
FIXME("(%p,%p,%d,%p) stub\n", PolicyHandle, TrustedDomainName, InformationClass, Buffer);
|
2009-06-19 22:08:02 +00:00
|
|
|
return STATUS_SUCCESS;
|
2003-09-08 09:56:57 +00:00
|
|
|
}
|
|
|
|
|
Sync aclui, advapi32, atl, authz, kernel32, msi, oledlg, powrprof, qmgr, riched20, samlib to Wine 1.2rc5
Update some psdk Headers to get some more synched winetests build
svn path=/trunk/; revision=47930
2010-07-03 12:42:55 +00:00
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI LsaRegisterPolicyChangeNotification(
|
|
|
|
POLICY_NOTIFICATION_INFORMATION_CLASS class,
|
|
|
|
HANDLE event)
|
|
|
|
{
|
|
|
|
FIXME("(%d,%p) stub\n", class, event);
|
|
|
|
return STATUS_UNSUCCESSFUL;
|
|
|
|
}
|
|
|
|
|
2003-09-08 09:56:57 +00:00
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
NTSTATUS
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2003-09-08 09:56:57 +00:00
|
|
|
LsaSetTrustedDomainInformation(
|
2004-06-17 09:07:12 +00:00
|
|
|
LSA_HANDLE PolicyHandle,
|
2003-09-08 09:56:57 +00:00
|
|
|
PSID TrustedDomainSid,
|
2008-02-08 20:11:56 +00:00
|
|
|
TRUSTED_INFORMATION_CLASS InformationClass,
|
2004-06-17 09:07:12 +00:00
|
|
|
PVOID Buffer)
|
2003-09-08 09:56:57 +00:00
|
|
|
{
|
2008-02-08 20:11:56 +00:00
|
|
|
FIXME("(%p,%p,%d,%p) stub\n", PolicyHandle, TrustedDomainSid, InformationClass, Buffer);
|
2009-06-19 22:08:02 +00:00
|
|
|
return STATUS_SUCCESS;
|
2003-09-08 09:56:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
NTSTATUS
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2003-09-08 09:56:57 +00:00
|
|
|
LsaStorePrivateData(
|
2004-06-17 09:07:12 +00:00
|
|
|
LSA_HANDLE PolicyHandle,
|
2003-09-08 09:56:57 +00:00
|
|
|
PLSA_UNICODE_STRING KeyName,
|
2004-06-17 09:07:12 +00:00
|
|
|
PLSA_UNICODE_STRING PrivateData)
|
2003-09-08 09:56:57 +00:00
|
|
|
{
|
2008-02-08 20:11:56 +00:00
|
|
|
FIXME("(%p,%p,%p) stub\n", PolicyHandle, KeyName, PrivateData);
|
2009-06-19 22:08:02 +00:00
|
|
|
return STATUS_OBJECT_NAME_NOT_FOUND;
|
2003-09-08 09:56:57 +00:00
|
|
|
}
|
2005-02-06 21:57:44 +00:00
|
|
|
|
Sync aclui, advapi32, atl, authz, kernel32, msi, oledlg, powrprof, qmgr, riched20, samlib to Wine 1.2rc5
Update some psdk Headers to get some more synched winetests build
svn path=/trunk/; revision=47930
2010-07-03 12:42:55 +00:00
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI LsaUnregisterPolicyChangeNotification(
|
|
|
|
POLICY_NOTIFICATION_INFORMATION_CLASS class,
|
|
|
|
HANDLE event)
|
|
|
|
{
|
|
|
|
FIXME("(%d,%p) stub\n", class, event);
|
|
|
|
return STATUS_SUCCESS;
|
|
|
|
}
|
|
|
|
|
2005-02-06 21:57:44 +00:00
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
NTSTATUS
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2005-02-06 21:57:44 +00:00
|
|
|
LsaGetUserName(
|
|
|
|
PUNICODE_STRING *UserName,
|
|
|
|
PUNICODE_STRING *DomainName)
|
|
|
|
{
|
2008-02-08 20:11:56 +00:00
|
|
|
FIXME("(%p,%p) stub\n", UserName, DomainName);
|
|
|
|
return STATUS_NOT_IMPLEMENTED;
|
2005-02-06 21:57:44 +00:00
|
|
|
}
|
|
|
|
|
2005-03-13 20:42:48 +00:00
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
NTSTATUS
|
2008-11-30 11:42:05 +00:00
|
|
|
WINAPI
|
2005-03-13 20:42:48 +00:00
|
|
|
LsaQueryInfoTrustedDomain (DWORD Unknonw0,
|
|
|
|
DWORD Unknonw1,
|
|
|
|
DWORD Unknonw2)
|
|
|
|
{
|
2008-02-08 20:11:56 +00:00
|
|
|
FIXME("(%d,%d,%d) stub\n", Unknonw0, Unknonw1, Unknonw2);
|
|
|
|
return STATUS_NOT_IMPLEMENTED;
|
2005-03-13 20:42:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-02-06 21:57:44 +00:00
|
|
|
/* EOF */
|