Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
dc36d92e
Commit
dc36d92e
authored
Dec 02, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmiutils: Convert dll registration to the IRegistrar mechanism.
parent
aece1f73
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
1 deletion
+50
-1
Makefile.in
dlls/wmiutils/Makefile.in
+2
-1
main.c
dlls/wmiutils/main.c
+23
-0
regsvr.c
dlls/wmiutils/regsvr.c
+0
-0
wmiutils.idl
dlls/wmiutils/wmiutils.idl
+25
-0
No files found.
dlls/wmiutils/Makefile.in
View file @
dc36d92e
...
...
@@ -3,7 +3,8 @@ IMPORTS = oleaut32 ole32 advapi32
C_SRCS
=
\
main.c
\
regsvr.c
\
statuscode.c
IDL_R_SRCS
=
wmiutils.idl
@MAKE_DLL_RULES@
dlls/wmiutils/main.c
View file @
dc36d92e
...
...
@@ -26,12 +26,15 @@
#include "winuser.h"
#include "objbase.h"
#include "wbemcli.h"
#include "rpcproxy.h"
#include "wine/debug.h"
#include "wmiutils_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
wmiutils
);
static
HINSTANCE
instance
;
typedef
HRESULT
(
*
fnCreateInstance
)(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
);
typedef
struct
...
...
@@ -118,6 +121,7 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID lpv )
case
DLL_WINE_PREATTACH
:
return
FALSE
;
/* prefer native version */
case
DLL_PROCESS_ATTACH
:
instance
=
hinst
;
DisableThreadLibraryCalls
(
hinst
);
break
;
case
DLL_PROCESS_DETACH
:
...
...
@@ -140,7 +144,26 @@ HRESULT WINAPI DllGetClassObject( REFCLSID rclsid, REFIID iid, LPVOID *ppv )
return
IClassFactory_QueryInterface
(
cf
,
iid
,
ppv
);
}
/***********************************************************************
* DllCanUnloadNow (WMIUTILS.@)
*/
HRESULT
WINAPI
DllCanUnloadNow
(
void
)
{
return
S_FALSE
;
}
/***********************************************************************
* DllRegisterServer (WMIUTILS.@)
*/
HRESULT
WINAPI
DllRegisterServer
(
void
)
{
return
__wine_register_resources
(
instance
,
NULL
);
}
/***********************************************************************
* DllUnregisterServer (WMIUTILS.@)
*/
HRESULT
WINAPI
DllUnregisterServer
(
void
)
{
return
__wine_unregister_resources
(
instance
,
NULL
);
}
dlls/wmiutils/regsvr.c
deleted
100644 → 0
View file @
aece1f73
This diff is collapsed.
Click to expand it.
dlls/wmiutils/wmiutils.idl
0 → 100644
View file @
dc36d92e
/*
*
COM
Classes
for
wmiutils
*
*
Copyright
2010
Alexandre
Julliard
*
*
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
.
,
51
Franklin
St
,
Fifth
Floor
,
Boston
,
MA
02110
-
1301
,
USA
*/
[
threading
(
both
),
uuid
(
eb87e1bd
-
3233
-
11
d2
-
aec9
-
00
c04fb68820
)
]
coclass
WbemStatusCode
{
interface
IWbemStatusCodeText
; }
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