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
822d7b6e
Commit
822d7b6e
authored
Dec 02, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Convert dll registration to the IRegistrar mechanism.
parent
dc36d92e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
1 deletion
+51
-1
Makefile.in
dlls/wbemprox/Makefile.in
+2
-1
main.c
dlls/wbemprox/main.c
+23
-0
regsvr.c
dlls/wbemprox/regsvr.c
+0
-0
wbemprox.idl
dlls/wbemprox/wbemprox.idl
+26
-0
No files found.
dlls/wbemprox/Makefile.in
View file @
822d7b6e
...
...
@@ -3,7 +3,8 @@ IMPORTS = ole32 advapi32
C_SRCS
=
\
main.c
\
regsvr.c
\
wbemlocator.c
IDL_R_SRCS
=
wbemprox.idl
@MAKE_DLL_RULES@
dlls/wbemprox/main.c
View file @
822d7b6e
...
...
@@ -27,12 +27,15 @@
#include "winbase.h"
#include "objbase.h"
#include "wbemcli.h"
#include "rpcproxy.h"
#include "wbemprox_private.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
wbemprox
);
static
HINSTANCE
instance
;
typedef
HRESULT
(
*
fnCreateInstance
)(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
);
typedef
struct
...
...
@@ -120,6 +123,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
case
DLL_WINE_PREATTACH
:
return
FALSE
;
/* prefer native version */
case
DLL_PROCESS_ATTACH
:
instance
=
hinstDLL
;
DisableThreadLibraryCalls
(
hinstDLL
);
break
;
case
DLL_PROCESS_DETACH
:
...
...
@@ -143,7 +147,26 @@ HRESULT WINAPI DllGetClassObject( REFCLSID rclsid, REFIID iid, LPVOID *ppv )
return
IClassFactory_QueryInterface
(
cf
,
iid
,
ppv
);
}
/***********************************************************************
* DllCanUnloadNow (WBEMPROX.@)
*/
HRESULT
WINAPI
DllCanUnloadNow
(
void
)
{
return
S_FALSE
;
}
/***********************************************************************
* DllRegisterServer (WBEMPROX.@)
*/
HRESULT
WINAPI
DllRegisterServer
(
void
)
{
return
__wine_register_resources
(
instance
,
NULL
);
}
/***********************************************************************
* DllUnregisterServer (WBEMPROX.@)
*/
HRESULT
WINAPI
DllUnregisterServer
(
void
)
{
return
__wine_unregister_resources
(
instance
,
NULL
);
}
dlls/wbemprox/regsvr.c
deleted
100644 → 0
View file @
dc36d92e
This diff is collapsed.
Click to expand it.
dlls/wbemprox/wbemprox.idl
0 → 100644
View file @
822d7b6e
/*
*
COM
Classes
for
wbemprox
*
*
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
*/
[
helpstring
(
"WBEM Locator"
),
threading
(
both
),
uuid
(
4590
f811
-
1
d3a
-
11
d0
-
891
f
-
00
aa004b2e24
)
]
coclass
WbemLocator
{
interface
IWbemLocator
; }
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