Author: tfaber
Date: Sat Mar 21 08:39:54 2015
New Revision: 66845
URL:
http://svn.reactos.org/svn/reactos?rev=66845&view=rev
Log:
[NTOS:WMI]
- Fill out WmipGenericMapping according to kmtest:ObTypes
Modified:
trunk/reactos/include/psdk/wmistr.h
trunk/reactos/ntoskrnl/wmi/guidobj.c
Modified: trunk/reactos/include/psdk/wmistr.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/wmistr.h?rev=…
==============================================================================
--- trunk/reactos/include/psdk/wmistr.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/wmistr.h [iso-8859-1] Sat Mar 21 08:39:54 2015
@@ -170,4 +170,6 @@
#define TRACELOG_ACCESS_REALTIME 0x0400
#define TRACELOG_REGISTER_GUIDS 0x0800
+#define WMIGUID_ALL_ACCESS (STANDARD_RIGHTS_READ | SYNCHRONIZE | 0xFFF)
+
#endif /* _WMISTR_ */
Modified: trunk/reactos/ntoskrnl/wmi/guidobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/wmi/guidobj.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/wmi/guidobj.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/wmi/guidobj.c [iso-8859-1] Sat Mar 21 08:39:54 2015
@@ -19,7 +19,13 @@
/* GLOBALS ******************************************************************/
POBJECT_TYPE WmipGuidObjectType;
-GENERIC_MAPPING WmipGenericMapping;
+GENERIC_MAPPING WmipGenericMapping =
+{
+ WMIGUID_QUERY,
+ WMIGUID_SET,
+ WMIGUID_EXECUTE,
+ WMIGUID_ALL_ACCESS
+};
/* FUNCTIONS *****************************************************************/
@@ -120,7 +126,7 @@
ObjectTypeInitializer.MaintainHandleCount = FALSE;
ObjectTypeInitializer.ValidAccessMask = STANDARD_RIGHTS_ALL | 0xFFF;
ObjectTypeInitializer.SecurityRequired = TRUE;
- ObjectTypeInitializer.DefaultNonPagedPoolCharge = sizeof(WMIP_GUID_OBJECT);;
+ ObjectTypeInitializer.DefaultNonPagedPoolCharge = sizeof(WMIP_GUID_OBJECT);
ObjectTypeInitializer.SecurityProcedure = WmipSecurityMethod;
ObjectTypeInitializer.DeleteProcedure = WmipDeleteMethod;
ObjectTypeInitializer.CloseProcedure = WmipCloseMethod;