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
ee9698c5
Commit
ee9698c5
authored
Aug 02, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wiaservc: Convert the remaining registrations to IRegistrar format.
parent
49ef4f1c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
90 deletions
+21
-90
rsrc.rc
dlls/wiaservc/rsrc.rc
+2
-2
wiaservc.inf
dlls/wiaservc/wiaservc.inf
+0
-13
wiaservc.rgs
dlls/wiaservc/wiaservc.rgs
+17
-0
wiaservc_main.c
dlls/wiaservc/wiaservc_main.c
+2
-74
wine.inf.in
tools/wine.inf.in
+0
-1
No files found.
dlls/wiaservc/rsrc.rc
View file @
ee9698c5
...
...
@@ -16,5 +16,5 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
/* @makedep: wiaservc.
inf
*/
REGINST REGINST wiaservc.inf
/* @makedep: wiaservc.
rgs
*/
1 WINE_REGISTRY wiaservc.rgs
dlls/wiaservc/wiaservc.inf
deleted
100644 → 0
View file @
49ef4f1c
[version]
Signature="$CHICAGO$"
[RegisterDll]
AddReg = WiaServc.Reg
[UnregisterDll]
DelReg = WiaServc.Reg
[WiaServc.Reg]
HKCR,"AppID\%CLSID_WiaDevMgr%",,,"WIA Device Manager"
HKCR,"AppID\%CLSID_WiaDevMgr%","LocalService",,"stisvc"
HKCR,"CLSID\%CLSID_WiaDevMgr%","AppID",,"%CLSID_WiaDevMgr%"
dlls/wiaservc/wiaservc.rgs
0 → 100644
View file @
ee9698c5
HKCR
{
NoRemove AppID
{
'{A1F4E726-8CF1-11D1-BF92-0060081ED811}' = s 'WIA Device Manager'
{
val LocalService = s 'stisvc'
}
}
NoRemove CLSID
{
'{A1F4E726-8CF1-11D1-BF92-0060081ED811}'
{
val AppID = s '{A1F4E726-8CF1-11D1-BF92-0060081ED811}'
}
}
}
dlls/wiaservc/wiaservc_main.c
View file @
ee9698c5
...
...
@@ -60,84 +60,12 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
return
TRUE
;
}
static
HRESULT
init_register_strtable
(
STRTABLEA
*
strtable
)
{
#define CLSID_EXPANSION_ENTRY(id) { "CLSID_" #id, &CLSID_ ## id }
static
const
struct
{
const
char
*
name
;
const
CLSID
*
clsid
;
}
expns
[]
=
{
CLSID_EXPANSION_ENTRY
(
WiaDevMgr
)
};
#undef CLSID_EXPANSION_ENTRY
static
STRENTRYA
pse
[
sizeof
expns
/
sizeof
expns
[
0
]];
DWORD
i
;
strtable
->
cEntries
=
sizeof
pse
/
sizeof
pse
[
0
];
strtable
->
pse
=
pse
;
for
(
i
=
0
;
i
<
strtable
->
cEntries
;
i
++
)
{
static
const
char
dummy_sample
[]
=
"{12345678-1234-1234-1234-123456789012}"
;
const
CLSID
*
clsid
=
expns
[
i
].
clsid
;
pse
[
i
].
pszName
=
wiaservc_strdup
(
expns
[
i
].
name
);
pse
[
i
].
pszValue
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
dummy_sample
);
if
(
!
pse
[
i
].
pszName
||
!
pse
[
i
].
pszValue
)
return
E_OUTOFMEMORY
;
sprintf
(
pse
[
i
].
pszValue
,
"{%08X-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X}"
,
clsid
->
Data1
,
clsid
->
Data2
,
clsid
->
Data3
,
clsid
->
Data4
[
0
],
clsid
->
Data4
[
1
],
clsid
->
Data4
[
2
],
clsid
->
Data4
[
3
],
clsid
->
Data4
[
4
],
clsid
->
Data4
[
5
],
clsid
->
Data4
[
6
],
clsid
->
Data4
[
7
]);
}
return
S_OK
;
}
static
void
cleanup_register_strtable
(
STRTABLEA
*
strtable
)
{
DWORD
i
;
for
(
i
=
0
;
i
<
strtable
->
cEntries
;
i
++
)
{
HeapFree
(
GetProcessHeap
(),
0
,
strtable
->
pse
[
i
].
pszName
);
HeapFree
(
GetProcessHeap
(),
0
,
strtable
->
pse
[
i
].
pszValue
);
if
(
!
strtable
->
pse
[
i
].
pszName
||
!
strtable
->
pse
[
i
].
pszValue
)
return
;
}
}
/* Use an INF file to register or unregister the DLL */
static
HRESULT
register_server
(
BOOL
do_register
)
{
HRESULT
hr
;
STRTABLEA
strtable
;
HMODULE
hAdvpack
;
HRESULT
(
WINAPI
*
pRegInstall
)(
HMODULE
hm
,
LPCSTR
pszSection
,
const
STRTABLEA
*
pstTable
);
static
const
WCHAR
wszAdvpack
[]
=
{
'a'
,
'd'
,
'v'
,
'p'
,
'a'
,
'c'
,
'k'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
TRACE
(
"(%x)
\n
"
,
do_register
);
hAdvpack
=
LoadLibraryW
(
wszAdvpack
);
pRegInstall
=
(
void
*
)
GetProcAddress
(
hAdvpack
,
"RegInstall"
);
hr
=
init_register_strtable
(
&
strtable
);
if
(
SUCCEEDED
(
hr
))
hr
=
pRegInstall
(
hInst
,
do_register
?
"RegisterDll"
:
"UnregisterDll"
,
&
strtable
);
cleanup_register_strtable
(
&
strtable
);
if
(
FAILED
(
hr
))
ERR
(
"RegInstall failed: %08x
\n
"
,
hr
);
return
hr
;
}
HRESULT
WINAPI
DllRegisterServer
(
void
)
{
HRESULT
hr
=
__wine_register_resources
(
hInst
);
if
(
FAILED
(
hr
))
return
hr
;
return
register_server
(
TRUE
);
return
__wine_register_resources
(
hInst
);
}
HRESULT
WINAPI
DllUnregisterServer
(
void
)
{
HRESULT
hr
=
__wine_unregister_resources
(
hInst
);
if
(
FAILED
(
hr
))
return
hr
;
return
register_server
(
FALSE
);
return
__wine_unregister_resources
(
hInst
);
}
tools/wine.inf.in
View file @
ee9698c5
...
...
@@ -2502,7 +2502,6 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G"
11,,qmgr.dll,1
11,,quartz.dll,1
11,,urlmon.dll,1
11,,wiaservc.dll,1
11,,windowscodecs.dll,1
11,,winegstreamer.dll,1
11,,wineqtdecoder.dll,1
...
...
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