Commit f7b0de3f authored by Juergen Schmied's avatar Juergen Schmied Committed by Alexandre Julliard

Moved ADVAPI32 files to dlls/advapi32.

Added stubs for eventlog functions.
parent afb1d2e8
......@@ -28,6 +28,7 @@ LIBSUBDIRS = \
tools/wrc \
controls \
console \
dlls/advapi32 \
dlls/comctl32 \
dlls/imagehlp \
dlls/msacm \
......@@ -93,6 +94,7 @@ INSTALLSUBDIRS = $(DOCSUBDIRS)
LIBOBJS = \
controls/controls.o \
console/console.o \
dlls/advapi32/advapi32.o \
dlls/comctl32/comctl32.o \
dlls/imagehlp/imagehlp.o \
dlls/msacm/msacm.o \
......
......@@ -3905,6 +3905,7 @@ console/Makefile
controls/Makefile
debugger/Makefile
dlls/Makefile
dlls/advapi32/Makefile
dlls/comctl32/Makefile
dlls/imagehlp/Makefile
dlls/msacm/Makefile
......@@ -4058,6 +4059,7 @@ console/Makefile
controls/Makefile
debugger/Makefile
dlls/Makefile
dlls/advapi32/Makefile
dlls/comctl32/Makefile
dlls/imagehlp/Makefile
dlls/msacm/Makefile
......
......@@ -557,6 +557,7 @@ console/Makefile
controls/Makefile
debugger/Makefile
dlls/Makefile
dlls/advapi32/Makefile
dlls/comctl32/Makefile
dlls/imagehlp/Makefile
dlls/msacm/Makefile
......
SUBDIRS = \
advapi32 \
comctl32 \
imagehlp \
msacm \
......
DEFS = @DLLFLAGS@ -D__WINE__
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = advapi32
C_SRCS = \
advapi.c \
eventlog.c \
security.c \
service.c
all: check_wrc $(MODULE).o
@MAKE_RULES@
$(RC_SRCS:.rc=.s): $(WRC)
### Dependencies:
/*
* Win32 advapi functions
*
* Copyright 1995 Sven Verdoolaege
*/
#include "windows.h"
#include "winerror.h"
#include "debug.h"
#include "heap.h"
#include <unistd.h>
/***********************************************************************
* GetUserNameA [ADVAPI32.67]
*/
BOOL32 WINAPI GetUserName32A(LPSTR lpszName, LPDWORD lpSize)
{
size_t len;
char *name;
name=getlogin();
#if 0
/* FIXME: should use getpwuid() here */
if (!name) name=cuserid(NULL);
#endif
len = name ? strlen(name) : 0;
if (!len || !lpSize || len > *lpSize) {
if (lpszName) *lpszName = 0;
return 0;
}
*lpSize=len;
strcpy(lpszName, name);
return 1;
}
/***********************************************************************
* GetUserNameW [ADVAPI32.68]
*/
BOOL32 WINAPI GetUserName32W(LPWSTR lpszName, LPDWORD lpSize)
{
LPSTR name = (LPSTR)HeapAlloc( GetProcessHeap(), 0, *lpSize );
DWORD size = *lpSize;
BOOL32 res = GetUserName32A(name,lpSize);
lstrcpynAtoW(lpszName,name,size);
HeapFree( GetProcessHeap(), 0, name );
return res;
}
/*
* Win32 advapi functions
*
* Copyright 1995 Sven Verdoolaege, 1998 Juergen Schmied
*/
#include "windows.h"
#include "winerror.h"
#include "debug.h"
#include "heap.h"
/******************************************************************************
* BackupEventLog32A [ADVAPI32.15]
*/
BOOL32 WINAPI BackupEventLog32A( HANDLE32 hEventLog, LPCSTR lpBackupFileName )
{
FIXME(advapi,"stub\n");
return TRUE;
}
/******************************************************************************
* BackupEventLog32W [ADVAPI32.16]
*/
BOOL32 WINAPI BackupEventLog32W( HANDLE32 hEventLog, LPCWSTR lpBackupFileName )
{
FIXME(advapi,"stub\n");
return TRUE;
}
/******************************************************************************
* ClearEventLog32A [ADVAPI32.19]
*/
BOOL32 WINAPI ClearEventLog32A ( HANDLE32 hEventLog, LPCSTR lpBackupFileName )
{
FIXME(advapi,"stub\n");
return TRUE;
}
/******************************************************************************
* ClearEventLog32W [ADVAPI32.20]
*/
BOOL32 WINAPI ClearEventLog32W ( HANDLE32 hEventLog, LPCWSTR lpBackupFileName )
{
FIXME(advapi,"stub\n");
return TRUE;
}
/******************************************************************************
* CloseEventLog32 [ADVAPI32.21]
*/
BOOL32 WINAPI CloseEventLog32 ( HANDLE32 hEventLog )
{
FIXME(advapi,"stub\n");
return TRUE;
}
/******************************************************************************
* DeregisterEventSource32 [ADVAPI32.32]
* Closes a handle to the specified event log
*
* PARAMS
* hEventLog [I] Handle to event log
*
* RETURNS STD
*/
BOOL32 WINAPI DeregisterEventSource32( HANDLE32 hEventLog )
{
FIXME(advapi, "(%d): stub\n",hEventLog);
return TRUE;
}
/******************************************************************************
* GetNumberOfEventLogRecords32 [ADVAPI32.49]
*/
BOOL32 WINAPI GetNumberOfEventLogRecords32( HANDLE32 hEventLog, PDWORD NumberOfRecords )
{
FIXME(advapi,"stub\n");
return TRUE;
}
/******************************************************************************
* GetOldestEventLogRecord [ADVAPI32.50]
*/
BOOL32 WINAPI GetOldestEventLogRecord32( HANDLE32 hEventLog, PDWORD OldestRecord )
{
FIXME(advapi,"stub\n");
return TRUE;
}
/******************************************************************************
* NotifyChangeEventLog32 [ADVAPI32.98]
*/
BOOL32 WINAPI NotifyChangeEventLog32( HANDLE32 hEventLog, HANDLE32 hEvent )
{
FIXME(advapi,"stub\n");
return TRUE;
}
/******************************************************************************
* OpenBackupEventLog32A [ADVAPI32.105]
*/
HANDLE32 WINAPI OpenBackupEventLog32A( LPCSTR lpUNCServerName, LPCSTR lpFileName )
{
FIXME(advapi,"stub\n");
return TRUE;
}
/******************************************************************************
* OpenBackupEventLog32W [ADVAPI32.106]
*/
HANDLE32 WINAPI OpenBackupEventLog32W( LPCWSTR lpUNCServerName, LPCWSTR lpFileName )
{
FIXME(advapi,"stub\n");
return TRUE;
}
/******************************************************************************
* OpenEventLogA [ADVAPI32.107]
*/
HANDLE32 WINAPI OpenEventLog32A(LPCSTR uncname,LPCSTR source)
{
FIXME(advapi,"(%s,%s),stub!\n",uncname,source);
return 0xcafe4242;
}
/******************************************************************************
* OpenEventLog32W [ADVAPI32.108]
*/
HANDLE32 WINAPI OpenEventLog32W(LPCWSTR uncname,LPCWSTR source)
{
FIXME(advapi,"stub\n");
return TRUE;
}
/******************************************************************************
* ReadEventLog32A [ADVAPI32.124]
*/
BOOL32 WINAPI ReadEventLog32A( HANDLE32 hEventLog, DWORD dwReadFlags, DWORD dwRecordOffset,
LPVOID lpBuffer, DWORD nNumberOfBytesToRead, DWORD *pnBytesRead, DWORD *pnMinNumberOfBytesNeeded )
{
FIXME(advapi,"stub\n");
return TRUE;
}
/******************************************************************************
* ReadEventLog32W [ADVAPI32.125]
*/
BOOL32 WINAPI ReadEventLog32W( HANDLE32 hEventLog, DWORD dwReadFlags, DWORD dwRecordOffset,
LPVOID lpBuffer, DWORD nNumberOfBytesToRead, DWORD *pnBytesRead, DWORD *pnMinNumberOfBytesNeeded )
{
FIXME(advapi,"stub\n");
return TRUE;
}
/******************************************************************************
* RegisterEventSource32A [ADVAPI32.174]
*/
HANDLE32 WINAPI RegisterEventSource32A( LPCSTR lpUNCServerName, LPCSTR lpSourceName )
{
LPWSTR lpUNCServerNameW = HEAP_strdupAtoW(GetProcessHeap(),0,lpUNCServerName);
LPWSTR lpSourceNameW = HEAP_strdupAtoW(GetProcessHeap(),0,lpSourceName);
HANDLE32 ret = RegisterEventSource32W(lpUNCServerNameW,lpSourceNameW);
HeapFree(GetProcessHeap(),0,lpSourceNameW);
HeapFree(GetProcessHeap(),0,lpUNCServerNameW);
return ret;
}
/******************************************************************************
* RegisterEventSource32W [ADVAPI32.175]
* Returns a registered handle to an event log
*
* PARAMS
* lpUNCServerName [I] Server name for source
* lpSourceName [I] Source name for registered handle
*
* RETURNS
* Success: Handle
* Failure: NULL
*/
HANDLE32 WINAPI RegisterEventSource32W( LPCWSTR lpUNCServerName, LPCWSTR lpSourceName )
{
FIXME(advapi, "(%s,%s): stub\n", debugstr_w(lpUNCServerName),
debugstr_w(lpSourceName));
return 1;
}
/******************************************************************************
* ReportEvent32A [ADVAPI32.]
*/
BOOL32 WINAPI ReportEvent32A ( HANDLE32 hEventLog, WORD wType, WORD wCategory, DWORD dwEventID,
PSID lpUserSid, WORD wNumStrings, DWORD dwDataSize, LPCSTR *lpStrings, LPVOID lpRawData)
{
FIXME(advapi,"stub\n");
return TRUE;
}
/******************************************************************************
* ReportEvent32W [ADVAPI32.]
*/
BOOL32 WINAPI ReportEvent32W ( HANDLE32 hEventLog, WORD wType, WORD wCategory, DWORD dwEventID,
PSID lpUserSid, WORD wNumStrings, DWORD dwDataSize, LPCWSTR *lpStrings, LPVOID lpRawData)
{
FIXME(advapi,"stub\n");
return TRUE;
}
......@@ -16,13 +16,13 @@ type win32
0012 stdcall AllocateLocallyUniqueId(ptr) AllocateLocallyUniqueId
0013 stub AreAllAccessesGranted
0014 stub AreAnyAccessesGranted
0015 stub BackupEventLogA
0016 stub BackupEventLogW
0015 stdcall BackupEventLogA (long str) BackupEventLog32A
0016 stdcall BackupEventLogW (long wstr) BackupEventLog32W
0017 stub ChangeServiceConfigA
0018 stub ChangeServiceConfigW
0019 stub ClearEventLogA
0020 stub ClearEventLogW
0021 stub CloseEventLog
0019 stdcall ClearEventLogA (long str) ClearEventLog32A
0020 stdcall ClearEventLogW (long wstr) ClearEventLog32W
0021 stdcall CloseEventLog (long) CloseEventLog32
0022 stdcall CloseServiceHandle(long) CloseServiceHandle
0023 stdcall ControlService(long long ptr) ControlService
0024 stdcall CopySid(long ptr ptr) CopySid
......@@ -33,7 +33,7 @@ type win32
0029 stdcall CreateServiceW (long ptr ptr long long long long ptr ptr ptr ptr ptr ptr) CreateService32A
0030 stub DeleteAce
0031 stdcall DeleteService(long) DeleteService
0032 stdcall DeregisterEventSource(long) DeregisterEventSource
0032 stdcall DeregisterEventSource(long) DeregisterEventSource32
0033 stub DestroyPrivateObjectSecurity
0034 stub DuplicateToken
0035 stub EnumDependentServicesA
......@@ -50,8 +50,8 @@ type win32
0046 stdcall GetFileSecurityW(wstr long ptr long ptr) GetFileSecurity32W
0047 stub GetKernelObjectSecurity
0048 stdcall GetLengthSid(ptr) GetLengthSid
0049 stub GetNumberOfEventLogRecords
0050 stub GetOldestEventLogRecord
0049 stdcall GetNumberOfEventLogRecords (long ptr) GetNumberOfEventLogRecords32
0050 stdcall GetOldestEventLogRecord (long ptr) GetOldestEventLogRecord32
0051 stub GetPrivateObjectSecurity
0052 stub GetSecurityDescriptorControl
0053 stub GetSecurityDescriptorDacl
......@@ -99,17 +99,17 @@ type win32
0095 stdcall MakeSelfRelativeSD(ptr ptr ptr) MakeSelfRelativeSD
0096 stub MapGenericMask
0097 stdcall NotifyBootConfigStatus(long) NotifyBootConfigStatus
0098 stub NotifyChangeEventLog
0098 stdcall NotifyChangeEventLog (long long) NotifyChangeEventLog32
0099 stub ObjectCloseAuditAlarmA
0100 stub ObjectCloseAuditAlarmW
0101 stub ObjectOpenAuditAlarmA
0102 stub ObjectOpenAuditAlarmW
0103 stub ObjectPrivilegeAuditAlarmA
0104 stub ObjectPrivilegeAuditAlarmW
0105 stub OpenBackupEventLogA
0106 stub OpenBackupEventLogW
0107 stdcall OpenEventLogA(str str) OpenEventLog32A
0108 stub OpenEventLogW
0105 stdcall OpenBackupEventLogA (str str) OpenBackupEventLog32A
0106 stdcall OpenBackupEventLogW (wstr wstr) OpenBackupEventLog32W
0107 stdcall OpenEventLogA (str str) OpenEventLog32A
0108 stdcall OpenEventLogW (wstr wstr) OpenEventLog32W
0109 stdcall OpenProcessToken(long long ptr) OpenProcessToken
0110 stdcall OpenSCManagerA(ptr ptr long) OpenSCManager32A
0111 stdcall OpenSCManagerW(ptr ptr long) OpenSCManager32W
......@@ -125,8 +125,8 @@ type win32
0121 stub QueryServiceLockStatusW
0122 stub QueryServiceObjectSecurity
0123 stdcall QueryServiceStatus(long ptr) QueryServiceStatus
0124 stub ReadEventLogA
0125 stub ReadEventLogW
0124 stdcall ReadEventLogA (long long long ptr long ptr ptr) ReadEventLog32A
0125 stdcall ReadEventLogW (long long long ptr long ptr ptr) ReadEventLog32W
0126 stdcall RegCloseKey(long) RegCloseKey
0127 stdcall RegConnectRegistryA(str long ptr) RegConnectRegistry32A
0128 stdcall RegConnectRegistryW(wstr long ptr) RegConnectRegistry32W
......@@ -179,8 +179,8 @@ type win32
0175 stdcall RegisterEventSourceW(ptr ptr) RegisterEventSource32W
0176 stdcall RegisterServiceCtrlHandlerA (ptr ptr) RegisterServiceCtrlHandlerA
0177 stdcall RegisterServiceCtrlHandlerW (ptr ptr) RegisterServiceCtrlHandlerW
0178 stub ReportEventA
0179 stub ReportEventW
0178 stdcall ReportEventA (long long long long ptr long long str ptr) ReportEvent32A
0179 stdcall ReportEventW (long long long long ptr long long wstr ptr) ReportEvent32W
0180 stub RevertToSelf
0181 stub SetAclInformation
0182 stdcall SetFileSecurityA(str long ptr ) SetFileSecurity32A
......
......@@ -6,7 +6,6 @@ VPATH = @srcdir@
MODULE = win32
C_SRCS = \
advapi.c \
code_page.c \
console.c \
device.c \
......@@ -18,7 +17,6 @@ C_SRCS = \
newfns.c \
ordinals.c \
process.c \
security.c \
struct32.c \
thread.c \
time.c
......
......@@ -72,39 +72,3 @@ BOOL32 WINAPI GetComputerName32W(LPWSTR name,LPDWORD size)
return ret;
}
/***********************************************************************
* GetUserNameA [ADVAPI32.67]
*/
BOOL32 WINAPI GetUserName32A(LPSTR lpszName, LPDWORD lpSize)
{
size_t len;
char *name;
name=getlogin();
#if 0
/* FIXME: should use getpwuid() here */
if (!name) name=cuserid(NULL);
#endif
len = name ? strlen(name) : 0;
if (!len || !lpSize || len > *lpSize) {
if (lpszName) *lpszName = 0;
return 0;
}
*lpSize=len;
strcpy(lpszName, name);
return 1;
}
/***********************************************************************
* GetUserNameW [ADVAPI32.68]
*/
BOOL32 WINAPI GetUserName32W(LPWSTR lpszName, LPDWORD lpSize)
{
LPSTR name = (LPSTR)HeapAlloc( GetProcessHeap(), 0, *lpSize );
DWORD size = *lpSize;
BOOL32 res = GetUserName32A(name,lpSize);
lstrcpynAtoW(lpszName,name,size);
HeapFree( GetProcessHeap(), 0, name );
return res;
}
#include <stdlib.h>
#include <string.h>
#include "windows.h"
#include "winerror.h"
#include "ntdll.h"
#include "debug.h"
BOOL32 WINAPI IsValidSid (LPSID pSid);
BOOL32 WINAPI EqualSid (LPSID pSid1, LPSID pSid2);
BOOL32 WINAPI EqualPrefixSid (LPSID pSid1, LPSID pSid2);
DWORD WINAPI GetSidLengthRequired (BYTE nSubAuthorityCount);
BOOL32 WINAPI AllocateAndInitializeSid(LPSID_IDENTIFIER_AUTHORITY pIdentifierAuthority, BYTE nSubAuthorityCount, DWORD nSubAuthority0, DWORD nSubAuthority1, DWORD nSubAuthority2, DWORD nSubAuthority3, DWORD nSubAuthority4, DWORD nSubAuthority5, DWORD nSubAuthority6, DWORD nSubAuthority7, LPSID *pSid);
VOID* WINAPI FreeSid(LPSID pSid);
BOOL32 WINAPI InitializeSid (LPSID pSid, LPSID_IDENTIFIER_AUTHORITY pIdentifierAuthority, BYTE nSubAuthorityCount);
LPSID_IDENTIFIER_AUTHORITY WINAPI GetSidIdentifierAuthority(LPSID pSid);
DWORD* WINAPI GetSidSubAuthority(LPSID pSid, DWORD nSubAuthority);
BYTE* WINAPI GetSidSubAuthorityCount(LPSID pSid);
DWORD WINAPI GetLengthSid(LPSID pSid);
BOOL32 WINAPI CopySid(DWORD nDestinationSidLength, LPSID pDestinationSid, LPSID pSourceSid);
/***********************************************************************
* IsValidSid (ADVAPI.80)
*/
BOOL32 WINAPI IsValidSid (LPSID pSid) {
if (!pSid || pSid->Revision != SID_REVISION)
return FALSE;
return TRUE;
}
/***********************************************************************
* EqualSid (ADVAPI.40)
*/
BOOL32 WINAPI EqualSid (LPSID pSid1, LPSID pSid2) {
if (!IsValidSid(pSid1) || !IsValidSid(pSid2))
return FALSE;
if (*GetSidSubAuthorityCount(pSid1) != *GetSidSubAuthorityCount(pSid2))
return FALSE;
if (memcmp(pSid1, pSid2, GetLengthSid(pSid1)) != 0)
return FALSE;
return TRUE;
}
/***********************************************************************
* EqualPrefixSid (ADVAPI.39)
*/
BOOL32 WINAPI EqualPrefixSid (LPSID pSid1, LPSID pSid2) {
if (!IsValidSid(pSid1) || !IsValidSid(pSid2))
return FALSE;
if (*GetSidSubAuthorityCount(pSid1) != *GetSidSubAuthorityCount(pSid2))
return FALSE;
if (memcmp(pSid1, pSid2, GetSidLengthRequired(pSid1->SubAuthorityCount - 1))
!= 0)
return FALSE;
return TRUE;
}
/***********************************************************************
* GetSidLengthRequired (ADVAPI.63)
*/
DWORD WINAPI GetSidLengthRequired (BYTE nSubAuthorityCount) {
return sizeof (SID) + (nSubAuthorityCount - 1) * sizeof (DWORD);
}
/***********************************************************************
* AllocateAndInitializeSid (ADVAPI.11)
*/
BOOL32 WINAPI AllocateAndInitializeSid(LPSID_IDENTIFIER_AUTHORITY pIdentifierAuthority,
BYTE nSubAuthorityCount,
DWORD nSubAuthority0, DWORD nSubAuthority1,
DWORD nSubAuthority2, DWORD nSubAuthority3,
DWORD nSubAuthority4, DWORD nSubAuthority5,
DWORD nSubAuthority6, DWORD nSubAuthority7,
LPSID *pSid) {
if (!(*pSid = HeapAlloc( GetProcessHeap(), 0,
GetSidLengthRequired(nSubAuthorityCount))))
return FALSE;
(*pSid)->Revision = SID_REVISION;
if (pIdentifierAuthority)
memcpy(&(*pSid)->IdentifierAuthority, pIdentifierAuthority,
sizeof (SID_IDENTIFIER_AUTHORITY));
*GetSidSubAuthorityCount(*pSid) = nSubAuthorityCount;
if (nSubAuthorityCount > 0)
*GetSidSubAuthority(*pSid, 0) = nSubAuthority0;
if (nSubAuthorityCount > 1)
*GetSidSubAuthority(*pSid, 1) = nSubAuthority1;
if (nSubAuthorityCount > 2)
*GetSidSubAuthority(*pSid, 2) = nSubAuthority2;
if (nSubAuthorityCount > 3)
*GetSidSubAuthority(*pSid, 3) = nSubAuthority3;
if (nSubAuthorityCount > 4)
*GetSidSubAuthority(*pSid, 4) = nSubAuthority4;
if (nSubAuthorityCount > 5)
*GetSidSubAuthority(*pSid, 5) = nSubAuthority5;
if (nSubAuthorityCount > 6)
*GetSidSubAuthority(*pSid, 6) = nSubAuthority6;
if (nSubAuthorityCount > 7)
*GetSidSubAuthority(*pSid, 7) = nSubAuthority7;
return TRUE;
}
/***********************************************************************
* FreeSid (ADVAPI.42)
*/
VOID* WINAPI FreeSid(LPSID pSid)
{
HeapFree( GetProcessHeap(), 0, pSid );
return NULL;
}
/***********************************************************************
* InitializeSecurityDescriptor (ADVAPI.73)
*/
BOOL32 WINAPI InitializeSecurityDescriptor( SECURITY_DESCRIPTOR *pDescr,
DWORD revision )
{
FIXME(security, "(%p,%#lx): stub\n", pDescr, revision);
return TRUE;
}
/***********************************************************************
* InitializeSid (ADVAPI.74)
*/
BOOL32 WINAPI InitializeSid (LPSID pSid, LPSID_IDENTIFIER_AUTHORITY pIdentifierAuthority,
BYTE nSubAuthorityCount)
{
int i;
pSid->Revision = SID_REVISION;
if (pIdentifierAuthority)
memcpy(&pSid->IdentifierAuthority, pIdentifierAuthority,
sizeof (SID_IDENTIFIER_AUTHORITY));
*GetSidSubAuthorityCount(pSid) = nSubAuthorityCount;
for (i = 0; i < nSubAuthorityCount; i++)
*GetSidSubAuthority(pSid, i) = 0;
return TRUE;
}
/***********************************************************************
* GetSidIdentifierAuthority (ADVAPI.62)
*/
LPSID_IDENTIFIER_AUTHORITY WINAPI GetSidIdentifierAuthority (LPSID pSid)
{
return &pSid->IdentifierAuthority;
}
/***********************************************************************
* GetSidSubAuthority (ADVAPI.64)
*/
DWORD * WINAPI GetSidSubAuthority (LPSID pSid, DWORD nSubAuthority)
{
return &pSid->SubAuthority[nSubAuthority];
}
/***********************************************************************
* GetSidSubAuthorityCount (ADVAPI.65)
*/
BYTE * WINAPI GetSidSubAuthorityCount (LPSID pSid)
{
return &pSid->SubAuthorityCount;
}
/***********************************************************************
* GetLengthSid (ADVAPI.48)
*/
DWORD WINAPI GetLengthSid (LPSID pSid)
{
return GetSidLengthRequired(*GetSidSubAuthorityCount(pSid));
}
/***********************************************************************
* CopySid (ADVAPI.24)
*/
BOOL32 WINAPI CopySid (DWORD nDestinationSidLength, LPSID pDestinationSid,
LPSID pSourceSid)
{
if (!IsValidSid(pSourceSid))
return FALSE;
if (nDestinationSidLength < GetLengthSid(pSourceSid))
return FALSE;
memcpy(pDestinationSid, pSourceSid, GetLengthSid(pSourceSid));
return TRUE;
}
/***********************************************************************
* LookupAccountSidA [ADVAPI32.86]
*/
BOOL32 WINAPI LookupAccountSid32A(LPCSTR system,PSID sid,
LPCSTR account,LPDWORD accountSize,
LPCSTR domain, LPDWORD domainSize,
PSID_NAME_USE name_use)
{
FIXME(security,"(%s,%p,%p,%p,%p,%p,%p): stub\n",
system,sid,account,accountSize,domain,domainSize,name_use);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
/***********************************************************************
* LookupAccountSidW [ADVAPI32.86]
*/
BOOL32 WINAPI LookupAccountSid32W(LPCWSTR system,PSID sid,
LPCWSTR account,LPDWORD accountSize,
LPCWSTR domain, LPDWORD domainSize,
PSID_NAME_USE name_use)
{
FIXME(security,"(%p,%p,%p,%p,%p,%p,%p): stub\n",
system,sid,account,accountSize,domain,domainSize,name_use);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment