diff --git a/reactos/lib/advapi32/advapi32.def b/reactos/lib/advapi32/advapi32.def index 08cf5e305db..6674dff7d2b 100644 --- a/reactos/lib/advapi32/advapi32.def +++ b/reactos/lib/advapi32/advapi32.def @@ -1,4 +1,4 @@ -; $Id: advapi32.def,v 1.7 2003/03/24 13:45:27 ekohl Exp $ +; $Id: advapi32.def,v 1.8 2003/06/27 15:19:18 sedwards Exp $ ; ; advapi32.def ; @@ -405,6 +405,8 @@ SystemFunction030@8 SystemFunction031@8 SystemFunction032@8 SystemFunction033@8 +;SystemFunction034@8 +SystemFunction035@8 UnlockServiceDatabase@4 WinLoadTrustProvider@4 WinSubmitCertificate@4 diff --git a/reactos/lib/advapi32/advapi32.edf b/reactos/lib/advapi32/advapi32.edf index 699250b9db6..5486d57845e 100644 --- a/reactos/lib/advapi32/advapi32.edf +++ b/reactos/lib/advapi32/advapi32.edf @@ -1,4 +1,4 @@ -; $Id: advapi32.edf,v 1.19 2003/02/02 19:24:43 hyperion Exp $ +; $Id: advapi32.edf,v 1.20 2003/06/27 15:19:18 sedwards Exp $ ; ; advapi32.edf ; @@ -83,7 +83,7 @@ DeleteAce=DeleteAce@8 DeleteService=DeleteService@4 ;DenyAccessRightsA ;DenyAccessRightsW -;DeregisterEventSource=DeregisterEventSource@4 +DeregisterEventSource=DeregisterEventSource@4 ;DestroyPrivateObjectSecurity=DestroyPrivateObjectSecurity@4 DuplicateToken=DuplicateToken@12 DuplicateTokenEx=DuplicateTokenEx@24 @@ -133,8 +133,8 @@ GetAclInformation=GetAclInformation@16 ;GetExplicitAccessRightsW=GetExplicitAccessRightsW@16 ;GetExplicitEntriesFromAclA=GetExplicitEntriesFromAclA@12 ;GetExplicitEntriesFromAclW=GetExplicitEntriesFromAclW@12 -;GetFileSecurityA=GetFileSecurityA@20 -;GetFileSecurityW=GetFileSecurityW@20 +GetFileSecurityA=GetFileSecurityA@20 +GetFileSecurityW=GetFileSecurityW@20 GetKernelObjectSecurity=GetKernelObjectSecurity@20 GetLengthSid=GetLengthSid@4 ;GetMultipleTrusteeA=GetMultipleTrusteeA@4 @@ -348,14 +348,14 @@ RegSetValueExW=RegSetValueExW@24 RegSetValueW=RegSetValueW@20 RegUnLoadKeyA=RegUnLoadKeyA@8 RegUnLoadKeyW=RegUnLoadKeyW@8 -;RegisterEventSourceA=RegisterEventSourceA@8 -;RegisterEventSourceW=RegisterEventSourceW@8 +RegisterEventSourceA=RegisterEventSourceA@8 +RegisterEventSourceW=RegisterEventSourceW@8 RegisterServiceCtrlHandlerA=RegisterServiceCtrlHandlerA@8 RegisterServiceCtrlHandlerW=RegisterServiceCtrlHandlerW@8 ;ReplaceAllAccessRightsA ;ReplaceAllAccessRightsW -;ReportEventA=ReportEventA@36 -;ReportEventW=ReportEventW@36 +ReportEventA=ReportEventA@36 +ReportEventW=ReportEventW@36 RevertToSelf=RevertToSelf@0 ;RevokeExplicitAccessRightsA=RevokeExplicitAccessRightsA@16 ;RevokeExplicitAccessRightsW=RevokeExplicitAccessRightsW@16 @@ -364,8 +364,8 @@ RevertToSelf=RevertToSelf@0 SetAclInformation=SetAclInformation@16 ;SetEntriesInAclA=SetEntriesInAclA@16 ;SetEntriesInAclW=SetEntriesInAclW@16 -;SetFileSecurityA=SetFileSecurityA@12 -;SetFileSecurityW=SetFileSecurityW@12 +SetFileSecurityA=SetFileSecurityA@12 +SetFileSecurityW=SetFileSecurityW@12 SetKernelObjectSecurity=SetKernelObjectSecurity@12 ;SetNamedSecurityInfoA=SetNamedSecurityInfoA@28 ;SetNamedSecurityInfoW=SetNamedSecurityInfoW@28 @@ -418,6 +418,8 @@ SystemFunction030=SystemFunction030@8 SystemFunction031=SystemFunction031@8 SystemFunction032=SystemFunction032@8 SystemFunction033=SystemFunction033@8 +SystemFunction033=SystemFunction034@8 +SystemFunction033=SystemFunction035@8 UnlockServiceDatabase=UnlockServiceDatabase@4 ;WinLoadTrustProvider=WinLoadTrustProvider@4 ;WinSubmitCertificate=WinSubmitCertificate@4 diff --git a/reactos/lib/advapi32/makefile b/reactos/lib/advapi32/makefile index 65b2aa57aba..c949113c64d 100644 --- a/reactos/lib/advapi32/makefile +++ b/reactos/lib/advapi32/makefile @@ -1,4 +1,4 @@ -# $Id: makefile,v 1.26 2003/04/14 01:19:06 hyperion Exp $ +# $Id: makefile,v 1.27 2003/06/27 15:19:18 sedwards Exp $ PATH_TO_TOP = ../.. @@ -22,7 +22,8 @@ TARGET_BASE = 0x77DB0000 MISC_OBJECTS=\ misc/dllmain.o \ misc/shutdown.o \ - misc/sysfunc.o + misc/sysfunc.o \ + misc/stubs.o REGISTRY_OBJECTS=\ reg/reg.o diff --git a/reactos/lib/advapi32/misc/stubs.c b/reactos/lib/advapi32/misc/stubs.c new file mode 100644 index 00000000000..465661a9c57 --- /dev/null +++ b/reactos/lib/advapi32/misc/stubs.c @@ -0,0 +1,83 @@ +/* + * Some of these functions may be wrong + */ + +#define NTOS_MODE_USER +#include +#include + +WINBOOL +STDCALL +DeregisterEventSource ( + HANDLE hEventLog + ) +{ + return(FALSE); +} + +HANDLE +STDCALL +RegisterEventSourceA ( + LPCSTR lpUNCServerName, + LPCSTR lpSourceName + ) +{ + return(FALSE); +} + +HANDLE +STDCALL +RegisterEventSourceW ( + LPCWSTR lpUNCServerName, + LPCWSTR lpSourceName + ) +{ + return(FALSE); +} + +WINBOOL +STDCALL +ReportEventA ( + HANDLE hEventLog, + WORD wType, + WORD wCategory, + DWORD dwEventID, + PSID lpUserSid, + WORD wNumStrings, + DWORD dwDataSize, + LPCSTR *lpStrings, + LPVOID lpRawData + ) +{ + return(FALSE); +} + +WINBOOL +STDCALL +ReportEventW ( + HANDLE hEventLog, + WORD wType, + WORD wCategory, + DWORD dwEventID, + PSID lpUserSid, + WORD wNumStrings, + DWORD dwDataSize, + LPCWSTR *lpStrings, + LPVOID lpRawData + ) +{ + return(FALSE); +} + +WINBOOL +STDCALL +SetFileSecurityW ( + LPCWSTR lpFileName, + SECURITY_INFORMATION SecurityInformation, + PSECURITY_DESCRIPTOR pSecurityDescriptor + ) +{ + return(FALSE); +} + +/* EOF */ diff --git a/reactos/lib/advapi32/misc/sysfunc.c b/reactos/lib/advapi32/misc/sysfunc.c index 054c20383a0..91afb86f218 100644 --- a/reactos/lib/advapi32/misc/sysfunc.c +++ b/reactos/lib/advapi32/misc/sysfunc.c @@ -1,4 +1,4 @@ -/* $Id: sysfunc.c,v 1.5 2002/09/08 10:22:36 chorns Exp $ +/* $Id: sysfunc.c,v 1.6 2003/06/27 15:19:19 sedwards Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -406,5 +406,27 @@ SystemFunction033(INT a, INT b) return 33; } +/********************************************************************** + * + */ +INT +STDCALL +SystemFunction034(INT a, INT b) +{ + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return 34; +} + + +/********************************************************************** + * + */ +INT +STDCALL +SystemFunction035(INT a, INT b) +{ + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return 35; +} /* EOF */ diff --git a/reactos/lib/advapi32/sec/sec.c b/reactos/lib/advapi32/sec/sec.c index 72b4e715a3a..04a80d84c58 100644 --- a/reactos/lib/advapi32/sec/sec.c +++ b/reactos/lib/advapi32/sec/sec.c @@ -4,8 +4,10 @@ * FILE: lib/advapi32/sec/sec.c * PURPOSE: Registry functions * PROGRAMMER: Ariadne ( ariadne@xs4all.nl) + * Steven Edwards ( Steven_Ed4153@yahoo.com ) * UPDATE HISTORY: * Created 01/11/98 + * Added a few new stubs 6/27/03 */ #define NTOS_MODE_USER @@ -363,4 +365,40 @@ GetUserNameW(LPWSTR lpBuffer, LPDWORD nSize) return(FALSE); } +WINBOOL +STDCALL +GetFileSecurityA ( + LPCSTR lpFileName, + SECURITY_INFORMATION RequestedInformation, + PSECURITY_DESCRIPTOR pSecurityDescriptor, + DWORD nLength, + LPDWORD lpnLengthNeeded + ) +{ + return(FALSE); +} + +WINBOOL +STDCALL +GetFileSecurityW ( + LPCWSTR lpFileName, + SECURITY_INFORMATION RequestedInformation, + PSECURITY_DESCRIPTOR pSecurityDescriptor, + DWORD nLength, + LPDWORD lpnLengthNeeded + ) +{ + return(FALSE); +} + +WINBOOL +STDCALL +SetFileSecurityA ( + LPCSTR lpFileName, + SECURITY_INFORMATION SecurityInformation, + PSECURITY_DESCRIPTOR pSecurityDescriptor + ) +{ + return(FALSE); +} /* EOF */