* Created 01/11/98
*/
-#include "advapi32.h"
+#include <advapi32.h>
+
+#define NDEBUG
#include <debug.h>
/*
}
-/*
- * @implemented
- */
-DWORD
-STDCALL
-GetSecurityDescriptorLength (
- PSECURITY_DESCRIPTOR pSecurityDescriptor
- )
-{
- return RtlLengthSecurityDescriptor(pSecurityDescriptor);
-}
-
-
/*
* @implemented
*/
{
NTSTATUS Status;
- Status = RtlSelfRelativeToAbsoluteSD ((PSECURITY_DESCRIPTOR_RELATIVE)pSelfRelativeSecurityDescriptor,
+ Status = RtlSelfRelativeToAbsoluteSD (pSelfRelativeSecurityDescriptor,
pAbsoluteSecurityDescriptor,
lpdwAbsoluteSecurityDescriptorSize,
pDacl,
}
+/*
+ * @implemented
+ */
+BOOL
+STDCALL
+MakeAbsoluteSD2(IN OUT PSECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor,
+ OUT LPDWORD lpdwBufferSize)
+{
+ NTSTATUS Status;
+
+ Status = RtlSelfRelativeToAbsoluteSD2(pSelfRelativeSecurityDescriptor,
+ lpdwBufferSize);
+ if (!NT_SUCCESS(Status))
+ {
+ SetLastError (RtlNtStatusToDosError (Status));
+ return FALSE;
+ }
+
+ return TRUE;
+}
+
+
/*
* @implemented
*/
NTSTATUS Status;
Status = RtlAbsoluteToSelfRelativeSD (pAbsoluteSecurityDescriptor,
- (PSECURITY_DESCRIPTOR_RELATIVE)pSelfRelativeSecurityDescriptor,
+ pSelfRelativeSecurityDescriptor,
(PULONG)lpdwBufferLength);
if (!NT_SUCCESS(Status))
{
return TRUE;
}
+
+/*
+ * @unimplemented
+ */
+BOOL
+STDCALL
+ConvertToAutoInheritPrivateObjectSecurity(IN PSECURITY_DESCRIPTOR ParentDescriptor,
+ IN PSECURITY_DESCRIPTOR CurrentSecurityDescriptor,
+ OUT PSECURITY_DESCRIPTOR* NewSecurityDescriptor,
+ IN GUID* ObjectType,
+ IN BOOLEAN IsDirectoryObject,
+ IN PGENERIC_MAPPING GenericMapping)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+
+/*
+ * @unimplemented
+ */
+DWORD
+STDCALL
+BuildSecurityDescriptorW(IN PTRUSTEE_W pOwner OPTIONAL,
+ IN PTRUSTEE_W pGroup OPTIONAL,
+ IN ULONG cCountOfAccessEntries,
+ IN PEXPLICIT_ACCESS pListOfAccessEntries OPTIONAL,
+ IN ULONG cCountOfAuditEntries,
+ IN PEXPLICIT_ACCESS pListOfAuditEntries OPTIONAL,
+ IN PSECURITY_DESCRIPTOR pOldSD OPTIONAL,
+ OUT PULONG pSizeNewSD,
+ OUT PSECURITY_DESCRIPTOR* pNewSD)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+
+/*
+ * @unimplemented
+ */
+DWORD
+STDCALL
+BuildSecurityDescriptorA(IN PTRUSTEE_A pOwner OPTIONAL,
+ IN PTRUSTEE_A pGroup OPTIONAL,
+ IN ULONG cCountOfAccessEntries,
+ IN PEXPLICIT_ACCESS pListOfAccessEntries OPTIONAL,
+ IN ULONG cCountOfAuditEntries,
+ IN PEXPLICIT_ACCESS pListOfAuditEntries OPTIONAL,
+ IN PSECURITY_DESCRIPTOR pOldSD OPTIONAL,
+ OUT PULONG pSizeNewSD,
+ OUT PSECURITY_DESCRIPTOR* pNewSD)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+
+/*
+ * @unimplemented
+ */
+BOOL WINAPI DecryptFileW(LPCWSTR lpFileName, DWORD dwReserved)
+{
+ DPRINT1("%s() not implemented!\n", __FUNCTION__);
+ return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
+/*
+ * @unimplemented
+ */
+BOOL WINAPI DecryptFileA(LPCSTR lpFileName, DWORD dwReserved)
+{
+ DPRINT1("%s() not implemented!\n", __FUNCTION__);
+ return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
+/*
+ * @unimplemented
+ */
+BOOL WINAPI EncryptFileW(LPCWSTR lpFileName)
+{
+ DPRINT1("%s() not implemented!\n", __FUNCTION__);
+ return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
+/*
+ * @unimplemented
+ */
+BOOL WINAPI EncryptFileA(LPCSTR lpFileName)
+{
+ DPRINT1("%s() not implemented!\n", __FUNCTION__);
+ return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
+BOOL WINAPI ConvertSecurityDescriptorToStringSecurityDescriptorW(
+ PSECURITY_DESCRIPTOR pSecurityDescriptor,
+ DWORD dword,
+ SECURITY_INFORMATION SecurityInformation,
+ LPWSTR* lpwstr,
+ PULONG pulong)
+{
+ DPRINT1("%s() not implemented!\n", __FUNCTION__);
+ return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
+BOOL WINAPI ConvertSecurityDescriptorToStringSecurityDescriptorA(
+ PSECURITY_DESCRIPTOR pSecurityDescriptor,
+ DWORD dword,
+ SECURITY_INFORMATION SecurityInformation,
+ LPSTR* lpstr,
+ PULONG pulong)
+{
+ DPRINT1("%s() not implemented!\n", __FUNCTION__);
+ return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
/* EOF */