Author: pschweitzer
Date: Sat Dec 27 13:33:14 2014
New Revision: 65849
URL:
http://svn.reactos.org/svn/reactos?rev=65849&view=rev
Log:
[FRAMEDYN]
Partly implement the Provider class from WMI.
This allows VMware Tools installer to complain a bit less about imports not found.
The installation still fails and still ends with a BSOD though.
CORE-7991
Added:
trunk/reactos/dll/win32/framedyn/provider.cpp (with props)
trunk/reactos/include/psdk/provider.h (with props)
Modified:
trunk/reactos/dll/win32/framedyn/CMakeLists.txt
trunk/reactos/dll/win32/framedyn/alias_gcc.s
trunk/reactos/dll/win32/framedyn/framedyn.spec
Modified: trunk/reactos/dll/win32/framedyn/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/framedyn/CMakeLi…
==============================================================================
--- trunk/reactos/dll/win32/framedyn/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/framedyn/CMakeLists.txt [iso-8859-1] Sat Dec 27 13:33:14 2014
@@ -5,6 +5,7 @@
list(APPEND SOURCE
main.c
chstring.cpp
+ provider.cpp
${CMAKE_CURRENT_BINARY_DIR}/framedyn.def)
if(MSVC)
Modified: trunk/reactos/dll/win32/framedyn/alias_gcc.s
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/framedyn/alias_g…
==============================================================================
--- trunk/reactos/dll/win32/framedyn/alias_gcc.s [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/framedyn/alias_gcc.s [iso-8859-1] Sat Dec 27 13:33:14 2014
@@ -90,5 +90,9 @@
DEFINE_ALIAS(__ZplRK8CHStringPKw, ??H@YG?AVCHString@@ABV0@PBG@Z)
DEFINE_ALIAS(__ZplPKwRK8CHString, ??H@YG?AVCHString@@PBGABV0@@Z)
DEFINE_ALIAS(__ZplRK8CHStringS1_, ??H@YG?AVCHString@@ABV0@0@Z)
+DEFINE_ALIAS(__ZN8Provider5FlushEv, ?Flush@Provider@@MAEXXZ)
+DEFINE_ALIAS(__ZN8Provider21ValidateDeletionFlagsEl,
?ValidateDeletionFlags@Provider@@MAEJJ@Z)
+DEFINE_ALIAS(__ZN8Provider19ValidateMethodFlagsEl,
?ValidateMethodFlags@Provider@@MAEJJ@Z)
+DEFINE_ALIAS(__ZN8Provider18ValidateQueryFlagsEl, ?ValidateQueryFlags@Provider@@MAEJJ@Z)
END
Modified: trunk/reactos/dll/win32/framedyn/framedyn.spec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/framedyn/framedy…
==============================================================================
--- trunk/reactos/dll/win32/framedyn/framedyn.spec [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/framedyn/framedyn.spec [iso-8859-1] Sat Dec 27 13:33:14 2014
@@ -74,3 +74,7 @@
@ stdcall ??H@YG?AVCHString@@ABV0@PBG@Z(ptr wstr) _ZplRK8CHStringPKw
@ stdcall ??H@YG?AVCHString@@PBGABV0@@Z(wstr ptr) _ZplPKwRK8CHString
@ stdcall ??H@YG?AVCHString@@ABV0@0@Z(ptr ptr) _ZplRK8CHStringS1_
+@ thiscall ?Flush@Provider@@MAEXXZ() _ZN8Provider5FlushEv
+@ thiscall ?ValidateDeletionFlags@Provider@@MAEJJ@Z(long)
_ZN8Provider21ValidateDeletionFlagsEl
+@ thiscall ?ValidateMethodFlags@Provider@@MAEJJ@Z(long)
_ZN8Provider19ValidateMethodFlagsEl
+@ thiscall ?ValidateQueryFlags@Provider@@MAEJJ@Z(long)
_ZN8Provider18ValidateQueryFlagsEl
Added: trunk/reactos/dll/win32/framedyn/provider.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/framedyn/provide…
==============================================================================
--- trunk/reactos/dll/win32/framedyn/provider.cpp (added)
+++ trunk/reactos/dll/win32/framedyn/provider.cpp [iso-8859-1] Sat Dec 27 13:33:14 2014
@@ -0,0 +1,57 @@
+/*
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS system libraries
+ * FILE: dll/win32/framedyn/provider.cpp
+ * PURPOSE: Provider class implementation
+ * PROGRAMMERS: Pierre Schweitzer (pierre(a)reactos.org)
+ */
+
+/* INCLUDES ******************************************************************/
+
+#include <provider.h>
+#include <wbemcli.h>
+#define NDEBUG
+#include <debug.h>
+
+/* PUBLIC FUNCTIONS **********************************************************/
+
+/*
+ * @unimplemented
+ */
+void Provider::Flush()
+{
+ return;
+}
+
+/*
+ * @implemented
+ */
+HRESULT Provider::ValidateDeletionFlags(long lFlags)
+{
+ if (lFlags == 0)
+ return WBEM_S_NO_ERROR;
+
+ return WBEM_E_UNSUPPORTED_PARAMETER;
+}
+
+/*
+ * @implemented
+ */
+HRESULT Provider::ValidateMethodFlags(long lFlags)
+{
+ if (lFlags == 0)
+ return WBEM_S_NO_ERROR;
+
+ return WBEM_E_UNSUPPORTED_PARAMETER;
+}
+
+/*
+ * @implemented
+ */
+HRESULT Provider::ValidateQueryFlags(long lFlags)
+{
+ if (lFlags == 0)
+ return WBEM_S_NO_ERROR;
+
+ return WBEM_E_UNSUPPORTED_PARAMETER;
+}
Propchange: trunk/reactos/dll/win32/framedyn/provider.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/include/psdk/provider.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/provider.h?re…
==============================================================================
--- trunk/reactos/include/psdk/provider.h (added)
+++ trunk/reactos/include/psdk/provider.h [iso-8859-1] Sat Dec 27 13:33:14 2014
@@ -0,0 +1,18 @@
+#pragma once
+
+#ifndef _PROVIDER_H
+#define _PROVIDER_H
+
+#include <windows.h>
+#include <provexce.h>
+
+class Provider
+{
+public:
+ void Flush();
+ HRESULT ValidateDeletionFlags(long lFlags);
+ HRESULT ValidateMethodFlags(long lFlags);
+ HRESULT ValidateQueryFlags(long lFlags);
+};
+
+#endif
Propchange: trunk/reactos/include/psdk/provider.h
------------------------------------------------------------------------------
svn:eol-style = native