added an initial MARTA provider (only two functions stubbed)
authorThomas Bluemel <thomas@reactsoft.com>
Tue, 26 Jul 2005 21:17:06 +0000 (21:17 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Tue, 26 Jul 2005 21:17:06 +0000 (21:17 +0000)
svn path=/trunk/; revision=16759

reactos/baseaddress.xml
reactos/bootdata/packages/reactos.dff
reactos/lib/directory.xml
reactos/lib/ntmarta/ntmarta.c [new file with mode: 0644]
reactos/lib/ntmarta/ntmarta.def [new file with mode: 0644]
reactos/lib/ntmarta/ntmarta.h [new file with mode: 0644]
reactos/lib/ntmarta/ntmarta.rc [new file with mode: 0644]
reactos/lib/ntmarta/ntmarta.xml [new file with mode: 0644]

index dd14f73..d76649a 100644 (file)
@@ -56,6 +56,7 @@
 <property name="BASEADDRESS_WAVEMAP" value="0x76610000" />
 <property name="BASEADDRESS_MPR" value="0x76620000" />
 <property name="BASEADDRESS_SETUPAPI" value="0x76660000" />
+<property name="BASEADDRESS_NTMARTA" value="0x768A0000" />
 <property name="BASEADDRESS_GDIPLUS" value="0x76a00000" />
 <property name="BASEADDRESS_IMAGEHLP" value="0x76c90000" />
 <property name="BASEADDRESS_FMIFS" value="0x76df0000" />
index f8e31a8..6baa60b 100755 (executable)
@@ -114,6 +114,7 @@ lib\msvideo\msvfw32.dll                 1
 lib\mswsock\mswsock.dll                 1
 lib\netapi32\netapi32.dll               1
 lib\ntdll\ntdll.dll                     1
+lib\ntmarta\ntmarta.dll                 1
 lib\objsel\objsel.dll                   1
 lib\ole32\ole32.dll                     1
 lib\oleaut32\oleaut32.dll               1
index 40d84f1..e94b189 100644 (file)
 <directory name="ntdll">
        <xi:include href="ntdll/ntdll.xml" />
 </directory>
+<directory name="ntmarta">
+       <xi:include href="ntmarta/ntmarta.xml" />
+</directory>
 <directory name="objsel">
        <xi:include href="objsel/objsel.xml" />
 </directory>
diff --git a/reactos/lib/ntmarta/ntmarta.c b/reactos/lib/ntmarta/ntmarta.c
new file mode 100644 (file)
index 0000000..e904f5f
--- /dev/null
@@ -0,0 +1,89 @@
+/*
+ * ReactOS MARTA provider
+ * Copyright (C) 2004 ReactOS Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+/* $Id$
+ *
+ * PROJECT:         ReactOS MARTA provider
+ * FILE:            lib/ntmarta/ntmarta.c
+ * PURPOSE:         ReactOS MARTA provider
+ * PROGRAMMER:      Thomas Weidenmueller <w3seek@reactos.com>
+ *
+ * UPDATE HISTORY:
+ *      07/26/2005  Created
+ */
+#include <ntmarta.h>
+
+#define NDEBUG
+#include <debug.h>
+
+HINSTANCE hDllInstance;
+
+/**********************************************************************
+ * AccRewriteGetHandleRights                           EXPORTED
+ *
+ * @unimplemented
+ */
+DWORD STDCALL
+AccRewriteGetHandleRights(HANDLE handle,
+                          SE_OBJECT_TYPE ObjectType,
+                          SECURITY_INFORMATION SecurityInfo,
+                          PSID* ppsidOwner,
+                          PSID* ppsidGroup,
+                          PACL* ppDacl,
+                          PACL* ppSacl,
+                          PSECURITY_DESCRIPTOR* ppSecurityDescriptor)
+{
+    UNIMPLEMENTED;
+    return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
+
+/**********************************************************************
+ * AccRewriteSetHandleRights                           EXPORTED
+ *
+ * @unimplemented
+ */
+DWORD STDCALL
+AccRewriteSetHandleRights(HANDLE handle,
+                          SE_OBJECT_TYPE ObjectType,
+                          SECURITY_INFORMATION SecurityInfo,
+                          PSECURITY_DESCRIPTOR pSecurityDescriptor)
+{
+    UNIMPLEMENTED;
+    return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
+
+BOOL STDCALL
+DllMain(IN HINSTANCE hinstDLL,
+        IN DWORD dwReason,
+        IN LPVOID lpvReserved)
+{
+    switch (dwReason)
+    {
+        case DLL_PROCESS_ATTACH:
+            hDllInstance = hinstDLL;
+            break;
+        case DLL_THREAD_ATTACH:
+        case DLL_THREAD_DETACH:
+        case DLL_PROCESS_DETACH:
+            break;
+    }
+    return TRUE;
+}
+
diff --git a/reactos/lib/ntmarta/ntmarta.def b/reactos/lib/ntmarta/ntmarta.def
new file mode 100644 (file)
index 0000000..a5c837b
--- /dev/null
@@ -0,0 +1,47 @@
+LIBRARY ntmarta.dll
+
+EXPORTS
+;AccFreeIndexArray
+;AccGetInheritanceSource
+;AccProvHandleGrantAccessRights;
+;AccRewriteGetExplicitEntriesFromAcl
+AccRewriteGetHandleRights@32
+;AccRewriteGetNamedRights
+;AccRewriteSetEntriesInAcl
+AccRewriteSetHandleRights@16
+;AccRewriteSetNamedRights
+;AccTreeResetNamedSecurityInfo
+;AccConvertAccessMaskToActrlAccess
+;AccConvertAccessToSD
+;AccConvertAccessToSecurityDescriptor
+;AccConvertAclToAccess
+;AccConvertSDToAccess
+;AccGetAccessForTrustee
+;AccGetExplicitEntries
+;AccLookupAccountName
+;AccLookupAccountSid;
+;AccLookupAccountTrustee
+;AccProvCancelOperation;
+;AccProvGetAccessInfoPerObjectType
+;AccProvGetAllRights
+;AccProvGetCapabilities
+;AccProvGetOperationResults
+;AccProvGetTrusteesAccess
+;AccProvGrantAccessRights
+;AccProvHandleGetAccessInfoPerObjectType
+;AccProvHandleGetAllRights
+;AccProvHandleGetTrusteesAccess
+;AccProvHandleIsAccessAudited
+;AccProvHandleIsObjectAccessible
+;AccProvHandleRevokeAccessRights
+;AccProvHandleRevokeAuditRights
+;AccProvHandleSetAccessRights
+;AccProvIsAccessAudited
+;AccProvIsObjectAccessible
+;AccProvRevokeAccessRights
+;AccProvSetAccessRights
+;AccSetEntriesInAList
+;EventGuidToName
+;EventNameFree
+
+; EOF
diff --git a/reactos/lib/ntmarta/ntmarta.h b/reactos/lib/ntmarta/ntmarta.h
new file mode 100644 (file)
index 0000000..c32376a
--- /dev/null
@@ -0,0 +1,8 @@
+#include <windows.h>
+#include <accctrl.h>
+
+ULONG DbgPrint(PCH Format,...);
+
+extern HINSTANCE hDllInstance;
+
+/* EOF */
diff --git a/reactos/lib/ntmarta/ntmarta.rc b/reactos/lib/ntmarta/ntmarta.rc
new file mode 100644 (file)
index 0000000..b2ad43b
--- /dev/null
@@ -0,0 +1,9 @@
+#include <windows.h>
+#include <reactos/resource.h>
+
+#define REACTOS_VERSION_DLL
+#define REACTOS_STR_FILE_DESCRIPTION   "ReactOS MARTA Provider\0"
+#define REACTOS_STR_INTERNAL_NAME      "ntmarta\0"
+#define REACTOS_STR_ORIGINAL_FILENAME  "ntmarta.dll\0"
+#include <reactos/version.rc>
+
diff --git a/reactos/lib/ntmarta/ntmarta.xml b/reactos/lib/ntmarta/ntmarta.xml
new file mode 100644 (file)
index 0000000..82207f3
--- /dev/null
@@ -0,0 +1,16 @@
+<module name="ntmarta" type="win32dll" baseaddress="${BASEADDRESS_NTMARTA}" installbase="system32" installname="ntmarta.dll">
+       <importlibrary definition="ntmarta.def" />
+       <include base="ntmarta">.</include>
+       <define name="UNICODE" />
+       <define name="_UNICODE" />
+       <define name="__USE_W32API" />
+       <define name="_WIN32_IE">0x0500</define>
+       <define name="_WIN32_WINNT">0x501</define>
+       <define name="WINVER">0x0600</define>
+       <library>ntdll</library>
+       <library>kernel32</library>
+       <library>advapi32</library>
+       <file>ntmarta.c</file>
+       <file>ntmarta.rc</file>
+       <pch>ntmarta.h</pch>
+</module>