diff --git a/reactos/baseaddress.cfg b/reactos/baseaddress.cfg index ef460da7421..32826e2f75b 100644 --- a/reactos/baseaddress.cfg +++ b/reactos/baseaddress.cfg @@ -1,4 +1,4 @@ -# $Id: baseaddress.cfg,v 1.19 2004/08/08 20:26:42 gvg Exp $ +# $Id: baseaddress.cfg,v 1.20 2004/08/10 00:09:40 weiden Exp $ # # Please try to keep this up2date. Please clean up # after yourself. @@ -6,6 +6,7 @@ # REACTOS TARGET_BASE_LIB_ACLEDIT =0x71b70000 +TARGET_BASE_LIB_ACLUI =0x71550000 TARGET_BASE_LIB_ADVAPI32 =0x77dc0000 TARGET_BASE_LIB_CABINET =0x75120000 TARGET_BASE_LIB_CARDS =0x701a0000 diff --git a/reactos/include/aclui.h b/reactos/include/aclui.h index 964b1afb0a3..a85329f0b00 100644 --- a/reactos/include/aclui.h +++ b/reactos/include/aclui.h @@ -29,6 +29,11 @@ extern "C" { #include #include +DEFINE_GUID(IID_ISecurityInformation, 0x965fc360, 0x16ff, 0x11d0, 0x0091, 0xcb,0x00,0xaa,0x00,0xbb,0xb7,0x23); +DEFINE_GUID(IID_ISecurityInformation2, 0xc3ccfdb4, 0x6f88, 0x11d2, 0x00a3, 0xce,0x00,0xc0,0x4f,0xb1,0x78,0x2a); +DEFINE_GUID(IID_IEffectivePermission, 0x3853dc76, 0x9f35, 0x407c, 0x0088, 0xa1,0xd1,0x93,0x44,0x36,0x5f,0xbc); +DEFINE_GUID(IID_ISecurityObjectTypeInfo, 0xfc3066eb, 0x79ef, 0x444b, 0x0091, 0x11,0xd1,0x8a,0x75,0xeb,0xf2,0xfa); + /* FIXME - defined in structs.h already!? avoid conflicts! */ typedef struct _OBJECT_TYPE_LIST { WORD Level; diff --git a/reactos/lib/aclui/.cvsignore b/reactos/lib/aclui/.cvsignore new file mode 100644 index 00000000000..9103a525d39 --- /dev/null +++ b/reactos/lib/aclui/.cvsignore @@ -0,0 +1,8 @@ +*.coff +*.dll +*.d +*.a +*.o +*.sym +*.map +*.tmp diff --git a/reactos/lib/aclui/Makefile b/reactos/lib/aclui/Makefile new file mode 100644 index 00000000000..7ce91a3f23e --- /dev/null +++ b/reactos/lib/aclui/Makefile @@ -0,0 +1,48 @@ +# $Id: Makefile,v 1.1 2004/08/10 00:09:40 weiden Exp $ + +PATH_TO_TOP = ../.. + +TARGET_TYPE = dynlink + +TARGET_NAME = aclui + +TARGET_INSTALLDIR = system32 + +TARGET_BASE = $(TARGET_BASE_LIB_ACLUI) + +TARGET_CFLAGS = \ + -I./include \ + -D__USE_W32API \ + -DUNICODE \ + -D_UNICODE \ + -D__REACTOS__ \ + -D_WIN32_WINNT=0x501 \ + -DWINVER=0x600 \ + -Wall \ + -Werror \ + -fno-builtin + +TARGET_LFLAGS = -nostartfiles -nostdlib + +TARGET_SDKLIBS = ntdll.a kernel32.a advapi32.a user32.a + +TARGET_GCCLIBS = gcc + +TARGET_PCH = + +TARGET_CLEAN = + +TARGET_OBJECTS = aclui.o stubs.o + +DEP_OBJECTS = $(TARGET_OBJECTS) + +include $(PATH_TO_TOP)/rules.mak + +include $(TOOLS_PATH)/helper.mk + +include $(TOOLS_PATH)/depend.mk + +%/TAGS: + etags -o $(@D)/TAGS $(@D)/\*.c + +etags: ./TAGS diff --git a/reactos/lib/aclui/aclui.c b/reactos/lib/aclui/aclui.c new file mode 100644 index 00000000000..098e94cd5c6 --- /dev/null +++ b/reactos/lib/aclui/aclui.c @@ -0,0 +1,61 @@ +/* + * ReactOS kernel + * Copyright (C) 2004 ReactOS Team + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ +/* $Id: aclui.c,v 1.1 2004/08/10 00:09:40 weiden Exp $ + * + * PROJECT: ReactOS Access Control List Editor + * FILE: lib/acledit/acledit.c + * PURPOSE: Access Control List Editor + * PROGRAMMER: Thomas Weidenmueller (w3seek@users.sourceforge.net) + * + * Based on guess work and on this nice article: + * http://www.sysinternals.com/ntw2k/info/acledit.shtml + * + * UPDATE HISTORY: + * 07/09/2004 Created + */ +#define INITGUID +#include +#include +#include "internal.h" +#include "resource.h" + +HINSTANCE hDllInstance; + + + +BOOL STDCALL +DllMain(HINSTANCE hinstDLL, + DWORD dwReason, + LPVOID lpvReserved) +{ + switch (dwReason) + { + case DLL_PROCESS_ATTACH: + hDllInstance = hinstDLL; + break; + case DLL_THREAD_ATTACH: + break; + case DLL_THREAD_DETACH: + break; + case DLL_PROCESS_DETACH: + break; + } + return TRUE; +} + diff --git a/reactos/lib/aclui/aclui.def b/reactos/lib/aclui/aclui.def new file mode 100644 index 00000000000..63e3ef91da4 --- /dev/null +++ b/reactos/lib/aclui/aclui.def @@ -0,0 +1,22 @@ +LIBRARY alui.dll + +EXPORTS +CreateSecurityPage@4 @1 +EditSecurity@8 @2 +;ACLUI.3 +;ACLUI.4 +;ACLUI.5 +;ACLUI.6 +;ACLUI.7 +;ACLUI.8 +;ACLUI.9 +;ACLUI.10 +;ACLUI.11 +;ACLUI.12 +;ACLUI.13 +;ACLUI.14 +;ACLUI.15 +IID_ISecurityInformation DATA @16 + + +; EOF diff --git a/reactos/lib/aclui/aclui.edf b/reactos/lib/aclui/aclui.edf new file mode 100644 index 00000000000..33baf0ef60b --- /dev/null +++ b/reactos/lib/aclui/aclui.edf @@ -0,0 +1,22 @@ +LIBRARY aclui.dll + +EXPORTS +CreateSecurityPage=CreateSecurityPage@4 @1 +EditSecurity=EditSecurity@8 @2 +;ACLUI.3 +;ACLUI.4 +;ACLUI.5 +;ACLUI.6 +;ACLUI.7 +;ACLUI.8 +;ACLUI.9 +;ACLUI.10 +;ACLUI.11 +;ACLUI.12 +;ACLUI.13 +;ACLUI.14 +;ACLUI.15 +IID_ISecurityInformation DATA @16 + + +; EOF diff --git a/reactos/lib/aclui/aclui.rc b/reactos/lib/aclui/aclui.rc new file mode 100644 index 00000000000..581091e27a2 --- /dev/null +++ b/reactos/lib/aclui/aclui.rc @@ -0,0 +1,40 @@ +#include +#include +#include "resource.h" + +LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT + +VS_VERSION_INFO VERSIONINFO + FILEVERSION RES_UINT_FV_MAJOR,RES_UINT_FV_MINOR,RES_UINT_FV_REVISION,RES_UINT_FV_BUILD + PRODUCTVERSION RES_UINT_PV_MAJOR,RES_UINT_PV_MINOR,RES_UINT_PV_REVISION,RES_UINT_PV_BUILD + FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x40004L + FILETYPE 0x2L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "CompanyName", RES_STR_COMPANY_NAME + VALUE "FileDescription", "ReactOS Access Control List Editor\0" + VALUE "FileVersion", RES_STR_FILE_VERSION + VALUE "InternalName", "aclui\0" + VALUE "LegalCopyright", RES_STR_LEGAL_COPYRIGHT + VALUE "OriginalFilename", "aclui.dll\0" + VALUE "ProductName", RES_STR_PRODUCT_NAME + VALUE "ProductVersion", RES_STR_PRODUCT_VERSION + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END + + diff --git a/reactos/lib/aclui/internal.h b/reactos/lib/aclui/internal.h new file mode 100644 index 00000000000..583b3eac633 --- /dev/null +++ b/reactos/lib/aclui/internal.h @@ -0,0 +1,8 @@ +#ifndef __ACLUI_INTERNAL_H +#define __ACLUI_INTERNAL_H + +extern HINSTANCE hDllInstance; + +#endif /* __ACLUI_INTERNAL_H */ + +/* EOF */ diff --git a/reactos/lib/aclui/resource.h b/reactos/lib/aclui/resource.h new file mode 100644 index 00000000000..33079ef23dd --- /dev/null +++ b/reactos/lib/aclui/resource.h @@ -0,0 +1,8 @@ +#ifndef __ACLUI_RESOURCE_H +#define __ACLUI_RESOURCE_H + +#define IDI_DEVMGR 100 + +#endif /* __ACLUI_RESOURCE_H */ + +/* EOF */ diff --git a/reactos/lib/aclui/stubs.c b/reactos/lib/aclui/stubs.c new file mode 100644 index 00000000000..865f48b1774 --- /dev/null +++ b/reactos/lib/aclui/stubs.c @@ -0,0 +1,42 @@ +/* $Id: stubs.c,v 1.1 2004/08/10 00:09:40 weiden Exp $ + * + * COPYRIGHT: See COPYING in the top level directory + * PROJECT: ReactOS Access Control List Editor + * FILE: lib/acledit/stubs.c + * PURPOSE: acledit.dll stubs + * PROGRAMMER: Thomas Weidenmueller + * NOTES: If you implement a function, remove it from this file + * + * Based on guess work and on this nice article: + * http://www.sysinternals.com/ntw2k/info/acledit.shtml + * + * UPDATE HISTORY: + * 07/09/2004 Created + */ +#include +#include +#include "internal.h" + +ULONG DbgPrint(PCH Format,...); + +#define UNIMPLEMENTED \ + DbgPrint("ACLUI: %s at %s:%d is UNIMPLEMENTED!\n",__FUNCTION__,__FILE__,__LINE__) + + +HPROPSHEETPAGE +WINAPI +CreateSecurityPage(LPSECURITYINFO psi) +{ + UNIMPLEMENTED; + return NULL; +} + +BOOL +WINAPI +EditSecurity(HWND hwndOwner, LPSECURITYINFO psi) +{ + UNIMPLEMENTED; + return FALSE; +} + +/* EOF */