Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
8c4e9ba4
Commit
8c4e9ba4
authored
Aug 28, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemdisp: Added WinMGMTS object stub implementation.
parent
686de978
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
5 deletions
+61
-5
.gitignore
.gitignore
+1
-0
Makefile.in
dlls/wbemdisp/Makefile.in
+1
-0
locator.c
dlls/wbemdisp/locator.c
+0
-1
main.c
dlls/wbemdisp/main.c
+59
-4
No files found.
.gitignore
View file @
8c4e9ba4
...
...
@@ -140,6 +140,7 @@ dlls/vbscript/tests/vbsregexp55.h
dlls/vbscript/vbscript_classes.h
dlls/vbscript/vbsglobal.h
dlls/vbscript/vbsregexp55.h
dlls/wbemdisp/wbemdisp_classes.h
dlls/wbemprox/wql.tab.c
dlls/wbemprox/wql.tab.h
dlls/windowscodecs/windowscodecs_wincodec.h
...
...
dlls/wbemdisp/Makefile.in
View file @
8c4e9ba4
...
...
@@ -6,6 +6,7 @@ C_SRCS = \
main.c
IDL_R_SRCS
=
wbemdisp_classes.idl
IDL_H_SRCS
=
wbemdisp_classes.idl
IDL_TLB_SRCS
=
wbemdisp_tlb.idl
...
...
dlls/wbemdisp/locator.c
View file @
8c4e9ba4
...
...
@@ -23,7 +23,6 @@
#include "windef.h"
#include "winbase.h"
#include "initguid.h"
#include "objbase.h"
#include "wbemdisp.h"
...
...
dlls/wbemdisp/main.c
View file @
8c4e9ba4
...
...
@@ -23,17 +23,69 @@
#include "windef.h"
#include "winbase.h"
#include "initguid.h"
#include "objbase.h"
#include "wbemdisp.h"
#include "rpcproxy.h"
#include "wine/debug.h"
#include "wbemdisp_private.h"
#include "wbemdisp_classes.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
wbemdisp
);
static
HINSTANCE
instance
;
static
HRESULT
WINAPI
WinMGMTS_QueryInterface
(
IParseDisplayName
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
))
{
TRACE
(
"(IID_IUnknown %p)
\n
"
,
ppv
);
*
ppv
=
iface
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IParseDisplayName
))
{
TRACE
(
"(IID_IParseDisplayName %p)
\n
"
,
ppv
);
*
ppv
=
iface
;
}
else
{
WARN
(
"Unsupported riid %s
\n
"
,
debugstr_guid
(
riid
));
*
ppv
=
NULL
;
return
E_NOINTERFACE
;
}
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
}
static
ULONG
WINAPI
WinMGMTS_AddRef
(
IParseDisplayName
*
iface
)
{
return
2
;
}
static
ULONG
WINAPI
WinMGMTS_Release
(
IParseDisplayName
*
iface
)
{
return
1
;
}
static
HRESULT
WINAPI
WinMGMTS_ParseDisplayName
(
IParseDisplayName
*
iface
,
IBindCtx
*
pbc
,
LPOLESTR
pszDisplayName
,
ULONG
*
pchEaten
,
IMoniker
**
ppmkOut
)
{
FIXME
(
"(%p %s %p %p)
\n
"
,
pbc
,
debugstr_w
(
pszDisplayName
),
pchEaten
,
ppmkOut
);
return
E_NOTIMPL
;
}
static
const
IParseDisplayNameVtbl
WinMGMTSVtbl
=
{
WinMGMTS_QueryInterface
,
WinMGMTS_AddRef
,
WinMGMTS_Release
,
WinMGMTS_ParseDisplayName
};
static
IParseDisplayName
winmgmts
=
{
&
WinMGMTSVtbl
};
static
HRESULT
WinMGMTS_create
(
IUnknown
*
outer
,
void
**
ppv
)
{
*
ppv
=
&
winmgmts
;
return
S_OK
;
}
struct
factory
{
IClassFactory
IClassFactory_iface
;
...
...
@@ -107,6 +159,7 @@ static const struct IClassFactoryVtbl factory_vtbl =
};
static
struct
factory
swbem_locator_cf
=
{
{
&
factory_vtbl
},
SWbemLocator_create
};
static
struct
factory
winmgmts_cf
=
{
{
&
factory_vtbl
},
WinMGMTS_create
};
BOOL
WINAPI
DllMain
(
HINSTANCE
hinst
,
DWORD
reason
,
LPVOID
reserved
)
{
...
...
@@ -130,10 +183,12 @@ HRESULT WINAPI DllGetClassObject( REFCLSID rclsid, REFIID iid, LPVOID *obj )
TRACE
(
"%s, %s, %p
\n
"
,
debugstr_guid
(
rclsid
),
debugstr_guid
(
iid
),
obj
);
if
(
IsEqualGUID
(
rclsid
,
&
CLSID_SWbemLocator
))
{
cf
=
&
swbem_locator_cf
.
IClassFactory_iface
;
}
if
(
!
cf
)
return
CLASS_E_CLASSNOTAVAILABLE
;
cf
=
&
swbem_locator_cf
.
IClassFactory_iface
;
else
if
(
IsEqualGUID
(
rclsid
,
&
CLSID_WinMGMTS
))
cf
=
&
winmgmts_cf
.
IClassFactory_iface
;
else
return
CLASS_E_CLASSNOTAVAILABLE
;
return
IClassFactory_QueryInterface
(
cf
,
iid
,
obj
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment