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
c4ca6341
Commit
c4ca6341
authored
Apr 20, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Apr 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advpack: Implement the RegisterOCXs callback.
parent
9be30c83
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
2 deletions
+30
-2
advpack_private.h
dlls/advpack/advpack_private.h
+1
-0
install.c
dlls/advpack/install.c
+29
-2
No files found.
dlls/advpack/advpack_private.h
View file @
c4ca6341
...
...
@@ -21,6 +21,7 @@
#ifndef __ADVPACK_PRIVATE_H
#define __ADVPACK_PRIVATE_H
HRESULT
do_ocx_reg
(
HMODULE
hocx
,
BOOL
do_reg
);
LPWSTR
get_parameter
(
LPWSTR
*
params
,
WCHAR
separator
);
void
set_ldids
(
HINF
hInf
,
LPCWSTR
pszInstallSection
,
LPCWSTR
pszWorkingDir
);
...
...
dlls/advpack/install.c
View file @
c4ca6341
...
...
@@ -62,8 +62,35 @@ static const WCHAR RegisterOCXs[] = {'R','e','g','i','s','t','e','r','O','C','X'
/* Advanced INF callbacks */
static
HRESULT
register_ocxs_callback
(
HINF
hinf
,
PCWSTR
field
,
void
*
arg
)
{
FIXME
(
"Unhandled command: RegisterOCXs
\n
"
);
return
E_FAIL
;
HMODULE
hm
;
INFCONTEXT
context
;
HRESULT
hr
=
S_OK
;
BOOL
ok
=
SetupFindFirstLineW
(
hinf
,
field
,
NULL
,
&
context
);
for
(;
ok
;
ok
=
SetupFindNextLine
(
&
context
,
&
context
))
{
WCHAR
buffer
[
MAX_INF_STRING_LENGTH
];
/* get OCX filename */
if
(
!
SetupGetStringFieldW
(
&
context
,
1
,
buffer
,
sizeof
(
buffer
)
/
sizeof
(
WCHAR
),
NULL
))
continue
;
hm
=
LoadLibraryExW
(
buffer
,
NULL
,
LOAD_WITH_ALTERED_SEARCH_PATH
);
if
(
!
hm
)
{
hr
=
E_FAIL
;
continue
;
}
if
(
do_ocx_reg
(
hm
,
TRUE
))
hr
=
E_FAIL
;
FreeLibrary
(
hm
);
}
return
hr
;
}
/* sequentially returns pointers to parameters in a parameter list
...
...
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