X-Git-Url: http://git.jankratochvil.net/?p=reactos.git;a=blobdiff_plain;f=lib%2Fadvapi32%2Fsec%2Fsec.c;fp=lib%2Fadvapi32%2Fsec%2Fsec.c;h=ba22fc6dee13c650cc15ad3ba3837c78a8414064;hp=72b4e715a3a2ea3d18e3dab9f5dfe6020cdcb2c4;hb=7c0cf90e3b750f1f0dc83b2eec9e5c68a512c30f;hpb=ee8b63255465d8c28be3e7bd11628015708fc1ab diff --git a/lib/advapi32/sec/sec.c b/lib/advapi32/sec/sec.c index 72b4e71..ba22fc6 100644 --- a/lib/advapi32/sec/sec.c +++ b/lib/advapi32/sec/sec.c @@ -4,15 +4,23 @@ * FILE: lib/advapi32/sec/sec.c * PURPOSE: Registry functions * PROGRAMMER: Ariadne ( ariadne@xs4all.nl) + * Steven Edwards ( Steven_Ed4153@yahoo.com ) + * Andrew Greenwood ( silverblade_uk@hotmail.com ) * UPDATE HISTORY: * Created 01/11/98 + * Added a few new stubs 6/27/03 + * Added stubs for GetSecurityInfo/Ex 8/18/03 */ #define NTOS_MODE_USER -#include #include +// #include +#include +/* + * @implemented + */ BOOL STDCALL GetSecurityDescriptorControl ( @@ -36,6 +44,9 @@ GetSecurityDescriptorControl ( } +/* + * @implemented + */ BOOL STDCALL GetSecurityDescriptorDacl ( @@ -66,6 +77,9 @@ GetSecurityDescriptorDacl ( } +/* + * @implemented + */ BOOL STDCALL GetSecurityDescriptorGroup ( @@ -92,6 +106,9 @@ GetSecurityDescriptorGroup ( } +/* + * @implemented + */ DWORD STDCALL GetSecurityDescriptorLength ( @@ -102,6 +119,9 @@ GetSecurityDescriptorLength ( } +/* + * @implemented + */ BOOL STDCALL GetSecurityDescriptorOwner ( @@ -128,6 +148,9 @@ GetSecurityDescriptorOwner ( } +/* + * @implemented + */ BOOL STDCALL GetSecurityDescriptorSacl ( @@ -158,6 +181,9 @@ GetSecurityDescriptorSacl ( } +/* + * @implemented + */ BOOL STDCALL InitializeSecurityDescriptor ( @@ -178,6 +204,10 @@ InitializeSecurityDescriptor ( return TRUE; } + +/* + * @implemented + */ BOOL STDCALL IsValidSecurityDescriptor ( @@ -194,6 +224,9 @@ IsValidSecurityDescriptor ( } +/* + * @implemented + */ WINBOOL STDCALL MakeAbsoluteSD ( @@ -233,6 +266,9 @@ MakeAbsoluteSD ( } +/* + * @implemented + */ WINBOOL STDCALL MakeSelfRelativeSD ( @@ -256,6 +292,9 @@ MakeSelfRelativeSD ( } +/* + * @implemented + */ BOOL STDCALL SetSecurityDescriptorDacl ( @@ -281,6 +320,9 @@ SetSecurityDescriptorDacl ( } +/* + * @implemented + */ BOOL STDCALL SetSecurityDescriptorGroup ( @@ -304,6 +346,9 @@ SetSecurityDescriptorGroup ( } +/* + * @implemented + */ BOOL STDCALL SetSecurityDescriptorOwner ( @@ -327,6 +372,9 @@ SetSecurityDescriptorOwner ( } +/* + * @implemented + */ BOOL STDCALL SetSecurityDescriptorSacl ( @@ -351,16 +399,130 @@ SetSecurityDescriptorSacl ( return TRUE; } + +/* + * @unimplemented + */ BOOL STDCALL GetUserNameA(LPSTR lpBuffer, LPDWORD nSize) { return(FALSE); } + +/* + * @unimplemented + */ BOOL STDCALL GetUserNameW(LPWSTR lpBuffer, LPDWORD nSize) { return(FALSE); } + +/* + * @unimplemented + */ +WINBOOL +STDCALL +GetFileSecurityA ( + LPCSTR lpFileName, + SECURITY_INFORMATION RequestedInformation, + PSECURITY_DESCRIPTOR pSecurityDescriptor, + DWORD nLength, + LPDWORD lpnLengthNeeded + ) +{ + return(FALSE); +} + + +/* + * @unimplemented + */ +WINBOOL +STDCALL +GetFileSecurityW ( + LPCWSTR lpFileName, + SECURITY_INFORMATION RequestedInformation, + PSECURITY_DESCRIPTOR pSecurityDescriptor, + DWORD nLength, + LPDWORD lpnLengthNeeded + ) +{ + return(FALSE); +} + + +/* + * @unimplemented + */ +WINBOOL +STDCALL +SetFileSecurityA ( + LPCSTR lpFileName, + SECURITY_INFORMATION SecurityInformation, + PSECURITY_DESCRIPTOR pSecurityDescriptor + ) +{ + return(FALSE); +} + + +/* + * @unimplemented + */ +STDCALL DWORD GetSecurityInfo ( + HANDLE handle, + UINT ObjectType, // SE_OBJECT_TYPE + SECURITY_INFORMATION SecurityInfo, + PSID *ppsidOwner, + PSID *ppsidGroup, + PACL *ppDacl, + PACL *ppSacl, + PSECURITY_DESCRIPTOR *ppSecurityDescriptor + ) +{ + return FALSE; +} + + +/* + * @unimplemented + */ +STDCALL DWORD GetSecurityInfoExA( + HANDLE hObject, + UINT ObjectType, // SE_OBJECT_TYPE + SECURITY_INFORMATION SecurityInfo, + LPCSTR lpProvider, + LPCSTR lpProperty, + VOID *ppAccessList, // PACTRL_ACCESS + VOID *ppAuditList, // PACTRL_AUDIT + LPCSTR *lppOwner, + LPCSTR *lppGroup + ) +{ + return FALSE; +} + + +/* + * @unimplemented + */ +STDCALL DWORD GetSecurityInfoExW( + HANDLE hObject, + UINT ObjectType, // SE_OBJECT_TYPE + SECURITY_INFORMATION SecurityInfo, + LPCWSTR lpProvider, + LPCWSTR lpProperty, + VOID *ppAccessList, // PACTRL_ACCESS + VOID *ppAuditList, // PACTRL_AUDIT + LPWSTR *lppOwner, + LPWSTR *lppGroup + ) +{ + return FALSE; +} + + /* EOF */