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
c0be1ec8
Commit
c0be1ec8
authored
Dec 09, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hnetcfg: Convert dll registration to the IRegistrar mechanism.
parent
71dbeb2e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
1 deletion
+57
-1
Makefile.in
dlls/hnetcfg/Makefile.in
+2
-1
hnetcfg.c
dlls/hnetcfg/hnetcfg.c
+20
-0
hnetcfg.idl
dlls/hnetcfg/hnetcfg.idl
+35
-0
regsvr.c
dlls/hnetcfg/regsvr.c
+0
-0
No files found.
dlls/hnetcfg/Makefile.in
View file @
c0be1ec8
...
@@ -8,7 +8,8 @@ C_SRCS = \
...
@@ -8,7 +8,8 @@ C_SRCS = \
policy.c
\
policy.c
\
port.c
\
port.c
\
profile.c
\
profile.c
\
regsvr.c
\
service.c
service.c
IDL_R_SRCS
=
hnetcfg.idl
@MAKE_DLL_RULES@
@MAKE_DLL_RULES@
dlls/hnetcfg/hnetcfg.c
View file @
c0be1ec8
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
#include "objbase.h"
#include "objbase.h"
#include "rpcproxy.h"
#include "netfw.h"
#include "netfw.h"
#include "wine/debug.h"
#include "wine/debug.h"
...
@@ -30,6 +31,8 @@
...
@@ -30,6 +31,8 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
hnetcfg
);
WINE_DEFAULT_DEBUG_CHANNEL
(
hnetcfg
);
static
HINSTANCE
instance
;
typedef
HRESULT
(
*
fnCreateInstance
)(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
);
typedef
HRESULT
(
*
fnCreateInstance
)(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
);
typedef
struct
typedef
struct
...
@@ -118,6 +121,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
...
@@ -118,6 +121,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
case
DLL_WINE_PREATTACH
:
case
DLL_WINE_PREATTACH
:
return
FALSE
;
return
FALSE
;
case
DLL_PROCESS_ATTACH
:
case
DLL_PROCESS_ATTACH
:
instance
=
hInstDLL
;
DisableThreadLibraryCalls
(
hInstDLL
);
DisableThreadLibraryCalls
(
hInstDLL
);
break
;
break
;
case
DLL_PROCESS_DETACH
:
case
DLL_PROCESS_DETACH
:
...
@@ -149,3 +153,19 @@ HRESULT WINAPI DllCanUnloadNow( void )
...
@@ -149,3 +153,19 @@ HRESULT WINAPI DllCanUnloadNow( void )
{
{
return
S_FALSE
;
return
S_FALSE
;
}
}
/***********************************************************************
* DllRegisterServer (HNETCFG.@)
*/
HRESULT
WINAPI
DllRegisterServer
(
void
)
{
return
__wine_register_resources
(
instance
,
NULL
);
}
/***********************************************************************
* DllUnregisterServer (HNETCFG.@)
*/
HRESULT
WINAPI
DllUnregisterServer
(
void
)
{
return
__wine_unregister_resources
(
instance
,
NULL
);
}
dlls/hnetcfg/hnetcfg.idl
0 → 100644
View file @
c0be1ec8
/*
*
COM
Classes
for
hnetcfg
*
*
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
(
"HNetCfg.FwMgr"
),
progid
(
"HNetCfg.FwMgr"
),
threading
(
both
),
uuid
(
304
ce942
-
6
e39
-
40
d8
-
943
a
-
b913c40c9cd4
)
]
coclass
NetFwMgr
{
interface
INetFwMgr
; }
[
helpstring
(
"HNetCfg.FwAuthorizedApplication"
),
progid
(
"HNetCfg.FwAuthorizedApplication"
),
threading
(
both
),
uuid
(
ec9846b3
-
2762
-
4
a6b
-
a214
-
6
acb603462d2
)
]
coclass
NetFwAuthorizedApplication
{
interface
INetFwAuthorizedApplications
; }
dlls/hnetcfg/regsvr.c
deleted
100644 → 0
View file @
71dbeb2e
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