diff --git a/reactos/include/acledit.h b/reactos/include/acledit.h deleted file mode 100644 index c7269f42ecc..00000000000 --- a/reactos/include/acledit.h +++ /dev/null @@ -1,136 +0,0 @@ -/* - * acledit.h - * - * Access Control List Editor definitions - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - */ - -#ifndef __ACLEDIT_H -#define __ACLEDIT_H - -#include - -typedef struct _ACL_HELP_CONTROL -{ - LPWSTR lpHelpFile; - DWORD dwMainDialogTopic; - DWORD dwACLEditorDialogTopic; - DWORD Reserved1; - DWORD dwAddEntryDialogTopic; - DWORD Reserved2; - DWORD Reserved3; - DWORD dwAccountDialogTopic; -} ACL_HELP_CONTROL, *PACL_HELP_CONTROL; - -typedef struct _ACL_DLG_CONTROL -{ - UCHAR ucVersion; - BOOL bIsContainer; - BOOL bAllowNewObject; - BOOL bMapSpecificToGeneric; - LPDWORD lpdwGenericAccessMap; - LPDWORD lpdwGenericMappingNewObjects; - LPWSTR lpDialogTitle; - PACL_HELP_CONTROL pHelpInfo; - LPWSTR lpSubReplaceTitle; - LPWSTR lpSubReplaceObjectsTitle; - LPWSTR lpSubReplaceConfirmation; - LPWSTR lpSpecialAccess; - LPWSTR lpSpecialNewAccess; -} ACL_DLG_CONTROL, *PACL_DLG_CONTROL; - -typedef struct _ACL_EDIT_ENTRY{ - DWORD dwType; - DWORD dwAccessMask; - DWORD dwAccessMask1; - LPWSTR lpName; -} ACL_EDIT_ENTRY, *PACL_EDIT_ENTRY; - -typedef struct _ACL_EDIT_CONTROL -{ - DWORD dwNumberOfEntries; - PACL_EDIT_ENTRY pEntries; - LPWSTR lpDefaultPermissionName; -} ACL_EDIT_CONTROL, *PACL_EDIT_CONTROL; - -typedef DWORD (CALLBACK *PACL_CHANGE)(HWND hWnd, - HINSTANCE hInstance, - PVOID pCallbackContext, - PSECURITY_DESCRIPTOR pNewSD, - PSECURITY_DESCRIPTOR pNewObjectSD, - BOOL bApplyToSubContainers, - BOOL bApplyToSubObjects, - LPDWORD lpdwChangeContextStatus); - -DWORD WINAPI -EditAuditInfo(DWORD Unknown); - -DWORD WINAPI -EditOwnerInfo(DWORD Unknown); - -DWORD WINAPI -EditPermissionInfo(DWORD Unknown); - -LONG WINAPI -FMExtensionProcW(HWND hWnd, - WORD wEvent, - LONG lParam); - -DWORD WINAPI -SedDiscretionaryAclEditor(HWND hWndOwner, - HINSTANCE hInstance, - LPCWSTR lpMachineName, - PACL_DLG_CONTROL pAclDlgControl, - PACL_EDIT_CONTROL pAclEditControl, - LPCWSTR lpObjectName, - PACL_CHANGE pChangeCallback, - PVOID pChangeCallbackContext, - PSECURITY_DESCRIPTOR pObjectSecurity, - BOOL bNoReadPermission, - BOOL bReadOnly, - LPDWORD lpdwChangeContextStatus, - DWORD Reserved); - -DWORD WINAPI -SedTakeOwnership(HWND hWndOwner, - HINSTANCE hInstance, - LPCWSTR lpMachineName, - LPCWSTR lpObjectType, - LPCWSTR lpObjectName, - DWORD dwObjectCount, - PACL_CHANGE pChangeCallback, - PVOID pChangeCallbackContext, - PSECURITY_DESCRIPTOR pObjectSecurity, - BOOL NoReadPermission, - BOOL NoOwnerChange, - LPDWORD lpdwChangeContextStatus, - PACL_HELP_CONTROL pHelpInfo, - DWORD Reserved); - -DWORD WINAPI -SedSystemAclEditor(HWND hWndOwner, - HINSTANCE hInstance, - LPCWSTR lpMachineName, - PACL_DLG_CONTROL pAclDlgControl, - PACL_EDIT_CONTROL pAclEditControl, - LPCWSTR lpObjectName, - PACL_CHANGE pChangeCallback, - PVOID pChangeCallbackContext, - PSECURITY_DESCRIPTOR pObjectSecurity, - BOOL bNoReadPermission, - LPDWORD lpdwChangeContextStatus, - DWORD Reserved); - -#endif /* __ACLEDIT_H */ - -/* EOF */ diff --git a/reactos/lib/acledit/acledit.c b/reactos/lib/acledit/acledit.c index 0055242fe12..cec126e7122 100644 --- a/reactos/lib/acledit/acledit.c +++ b/reactos/lib/acledit/acledit.c @@ -30,7 +30,6 @@ * 07/09/2004 Created */ #include -#include #include "acleditint.h" #include "resource.h" diff --git a/reactos/lib/acledit/acleditint.h b/reactos/lib/acledit/acleditint.h index 5764bb38656..c14c7a6f12a 100644 --- a/reactos/lib/acledit/acleditint.h +++ b/reactos/lib/acledit/acleditint.h @@ -3,6 +3,58 @@ extern HINSTANCE hDllInstance; +typedef struct _ACL_HELP_CONTROL +{ + LPWSTR lpHelpFile; + DWORD dwMainDialogTopic; + DWORD dwACLEditorDialogTopic; + DWORD Reserved1; + DWORD dwAddEntryDialogTopic; + DWORD Reserved2; + DWORD Reserved3; + DWORD dwAccountDialogTopic; +} ACL_HELP_CONTROL, *PACL_HELP_CONTROL; + +typedef struct _ACL_DLG_CONTROL +{ + UCHAR ucVersion; + BOOL bIsContainer; + BOOL bAllowNewObject; + BOOL bMapSpecificToGeneric; + LPDWORD lpdwGenericAccessMap; + LPDWORD lpdwGenericMappingNewObjects; + LPWSTR lpDialogTitle; + PACL_HELP_CONTROL pHelpInfo; + LPWSTR lpSubReplaceTitle; + LPWSTR lpSubReplaceObjectsTitle; + LPWSTR lpSubReplaceConfirmation; + LPWSTR lpSpecialAccess; + LPWSTR lpSpecialNewAccess; +} ACL_DLG_CONTROL, *PACL_DLG_CONTROL; + +typedef struct _ACL_EDIT_ENTRY{ + DWORD dwType; + DWORD dwAccessMask; + DWORD dwAccessMask1; + LPWSTR lpName; +} ACL_EDIT_ENTRY, *PACL_EDIT_ENTRY; + +typedef struct _ACL_EDIT_CONTROL +{ + DWORD dwNumberOfEntries; + PACL_EDIT_ENTRY pEntries; + LPWSTR lpDefaultPermissionName; +} ACL_EDIT_CONTROL, *PACL_EDIT_CONTROL; + +typedef DWORD (CALLBACK *PACL_CHANGE)(HWND hWnd, + HINSTANCE hInstance, + PVOID pCallbackContext, + PSECURITY_DESCRIPTOR pNewSD, + PSECURITY_DESCRIPTOR pNewObjectSD, + BOOL bApplyToSubContainers, + BOOL bApplyToSubObjects, + LPDWORD lpdwChangeContextStatus); + #endif /* __ACLEDITINT_H */ /* EOF */ diff --git a/reactos/lib/acledit/stubs.c b/reactos/lib/acledit/stubs.c index db77d78ac49..dc647523999 100644 --- a/reactos/lib/acledit/stubs.c +++ b/reactos/lib/acledit/stubs.c @@ -14,7 +14,6 @@ * 07/09/2004 Created */ #include -#include #include "acleditint.h" ULONG DbgPrint(PCH Format,...);