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
d1d90f4b
Commit
d1d90f4b
authored
Dec 07, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxdiagn: Convert dll registration to the IRegistrar mechanism.
parent
578b7e75
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
60 additions
and
6 deletions
+60
-6
Makefile.in
dlls/dxdiagn/Makefile.in
+3
-2
dxdiag_main.c
dlls/dxdiagn/dxdiag_main.c
+29
-1
dxdiag_private.h
dlls/dxdiagn/dxdiag_private.h
+0
-3
dxdiagn.idl
dlls/dxdiagn/dxdiagn.idl
+28
-0
regsvr.c
dlls/dxdiagn/regsvr.c
+0
-0
No files found.
dlls/dxdiagn/Makefile.in
View file @
d1d90f4b
...
...
@@ -4,11 +4,12 @@ IMPORTS = strmiids dxguid uuid ddraw version ole32 oleaut32 user32 advapi32
C_SRCS
=
\
container.c
\
dxdiag_main.c
\
provider.c
\
regsvr.c
provider.c
RC_SRCS
=
version.rc
IDL_H_SRCS
=
fil_data.idl
IDL_R_SRCS
=
dxdiagn.idl
@MAKE_DLL_RULES@
dlls/dxdiagn/dxdiag_main.c
View file @
d1d90f4b
...
...
@@ -20,11 +20,22 @@
*/
#include "config.h"
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "objbase.h"
#include "oleauto.h"
#include "oleidl.h"
#include "rpcproxy.h"
#include "initguid.h"
#include "dxdiag_private.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
dxdiag
);
static
HINSTANCE
instance
;
LONG
DXDIAGN_refCount
=
0
;
/* At process attach */
...
...
@@ -32,7 +43,8 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
TRACE
(
"%p,%x,%p
\n
"
,
hInstDLL
,
fdwReason
,
lpvReserved
);
if
(
fdwReason
==
DLL_PROCESS_ATTACH
)
{
DisableThreadLibraryCalls
(
hInstDLL
);
instance
=
hInstDLL
;
DisableThreadLibraryCalls
(
hInstDLL
);
}
return
TRUE
;
}
...
...
@@ -125,3 +137,19 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
FIXME
(
"(%s,%s,%p): no interface found.
\n
"
,
debugstr_guid
(
rclsid
),
debugstr_guid
(
riid
),
ppv
);
return
CLASS_E_CLASSNOTAVAILABLE
;
}
/***********************************************************************
* DllRegisterServer (DXDIAGN.@)
*/
HRESULT
WINAPI
DllRegisterServer
(
void
)
{
return
__wine_register_resources
(
instance
,
NULL
);
}
/***********************************************************************
* DllUnregisterServer (DXDIAGN.@)
*/
HRESULT
WINAPI
DllUnregisterServer
(
void
)
{
return
__wine_unregister_resources
(
instance
,
NULL
);
}
dlls/dxdiagn/dxdiag_private.h
View file @
d1d90f4b
...
...
@@ -26,9 +26,6 @@
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "objbase.h"
#include "oleauto.h"
#include "dxdiag.h"
...
...
dlls/dxdiagn/dxdiagn.idl
0 → 100644
View file @
d1d90f4b
/*
*
COM
Classes
for
dxdiagn
*
*
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
(
"DxDiagProvider Class"
),
threading
(
apartment
),
progid
(
"DxDiag.DxDiagProvider.1"
),
vi_progid
(
"DxDiag.DxDiagProvider"
),
uuid
(
a65b8071
-
3b
fe
-
4213
-
9
a5b
-
491
da4461ca7
)
]
coclass
DxDiagProvider
{
interface
IDxDiagProvider
; }
dlls/dxdiagn/regsvr.c
deleted
100644 → 0
View file @
578b7e75
This diff is collapsed.
Click to expand it.
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