branch update for HEAD-2003091401
[reactos.git] / lib / advapi32 / sec / sec.c
index 72b4e71..ba22fc6 100644 (file)
@@ -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 <ntos.h>
 #include <windows.h>
+// #include <accctrl.h>
+#include <ntos.h>
 
 
+/*
+ * @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 */