mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:43:04 +00:00
[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 svn path=/trunk/; revision=65849
This commit is contained in:
parent
959a34dc79
commit
acd3478e17
5 changed files with 84 additions and 0 deletions
|
@ -5,6 +5,7 @@ spec2def(framedyn.dll framedyn.spec ADD_IMPORTLIB)
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
main.c
|
main.c
|
||||||
chstring.cpp
|
chstring.cpp
|
||||||
|
provider.cpp
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/framedyn.def)
|
${CMAKE_CURRENT_BINARY_DIR}/framedyn.def)
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
|
|
|
@ -90,5 +90,9 @@ DEFINE_ALIAS(__ZplRK8CHStringw, ??H@YG?AVCHString@@ABV0@G@Z)
|
||||||
DEFINE_ALIAS(__ZplRK8CHStringPKw, ??H@YG?AVCHString@@ABV0@PBG@Z)
|
DEFINE_ALIAS(__ZplRK8CHStringPKw, ??H@YG?AVCHString@@ABV0@PBG@Z)
|
||||||
DEFINE_ALIAS(__ZplPKwRK8CHString, ??H@YG?AVCHString@@PBGABV0@@Z)
|
DEFINE_ALIAS(__ZplPKwRK8CHString, ??H@YG?AVCHString@@PBGABV0@@Z)
|
||||||
DEFINE_ALIAS(__ZplRK8CHStringS1_, ??H@YG?AVCHString@@ABV0@0@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
|
END
|
||||||
|
|
|
@ -74,3 +74,7 @@
|
||||||
@ stdcall ??H@YG?AVCHString@@ABV0@PBG@Z(ptr wstr) _ZplRK8CHStringPKw
|
@ stdcall ??H@YG?AVCHString@@ABV0@PBG@Z(ptr wstr) _ZplRK8CHStringPKw
|
||||||
@ stdcall ??H@YG?AVCHString@@PBGABV0@@Z(wstr ptr) _ZplPKwRK8CHString
|
@ stdcall ??H@YG?AVCHString@@PBGABV0@@Z(wstr ptr) _ZplPKwRK8CHString
|
||||||
@ stdcall ??H@YG?AVCHString@@ABV0@0@Z(ptr ptr) _ZplRK8CHStringS1_
|
@ 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
|
||||||
|
|
57
reactos/dll/win32/framedyn/provider.cpp
Normal file
57
reactos/dll/win32/framedyn/provider.cpp
Normal file
|
@ -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@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;
|
||||||
|
}
|
18
reactos/include/psdk/provider.h
Normal file
18
reactos/include/psdk/provider.h
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue