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
c53d554b
Commit
c53d554b
authored
Mar 14, 2005
by
Matthew Mastracci
Committed by
Alexandre Julliard
Mar 14, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement RegisterOCX.
Stub for DelNodeRunDLL32.
parent
72a4df94
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
2 deletions
+57
-2
advpack.c
dlls/advpack/advpack.c
+55
-0
advpack.spec
dlls/advpack/advpack.spec
+2
-2
No files found.
dlls/advpack/advpack.c
View file @
c53d554b
...
...
@@ -28,10 +28,13 @@
#include "winnls.h"
#include "setupapi.h"
#include "advpub.h"
#include "wine/unicode.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
advpack
);
typedef
HRESULT
(
WINAPI
*
DLLREGISTER
)
(
void
);
/***********************************************************************
* DllMain (ADVPACK.@)
...
...
@@ -172,3 +175,55 @@ HRESULT WINAPI GetVersionFromFileEx( LPSTR lpszFilename, LPDWORD pdwMSVer,
return
S_OK
;
}
/***********************************************************************
* RegisterOCX (ADVPACK.@)
*/
void
WINAPI
RegisterOCX
(
HWND
hWnd
,
HINSTANCE
hInst
,
LPCSTR
cmdline
,
INT
show
)
{
WCHAR
wszBuff
[
MAX_PATH
];
WCHAR
*
pwcComma
;
HMODULE
hm
;
DLLREGISTER
pfnRegister
;
HRESULT
hr
;
TRACE
(
"(%s)
\n
"
,
cmdline
);
MultiByteToWideChar
(
CP_ACP
,
0
,
cmdline
,
strlen
(
cmdline
),
wszBuff
,
MAX_PATH
);
if
((
pwcComma
=
strchrW
(
wszBuff
,
','
)))
*
pwcComma
=
0
;
TRACE
(
"Parsed DLL name (%s)
\n
"
,
debugstr_w
(
wszBuff
));
hm
=
LoadLibraryExW
(
wszBuff
,
0
,
LOAD_WITH_ALTERED_SEARCH_PATH
);
if
(
!
hm
)
{
ERR
(
"Couldn't load DLL: %s
\n
"
,
debugstr_w
(
wszBuff
));
return
;
}
pfnRegister
=
(
DLLREGISTER
)
GetProcAddress
(
hm
,
"DllRegisterServer"
);
if
(
pfnRegister
==
NULL
)
{
ERR
(
"DllRegisterServer entry point not found
\n
"
);
}
else
{
hr
=
pfnRegister
();
if
(
hr
!=
S_OK
)
{
ERR
(
"DllRegisterServer entry point returned %08lx
\n
"
,
hr
);
}
}
TRACE
(
"Successfully registered OCX
\n
"
);
FreeLibrary
(
hm
);
}
/***********************************************************************
* DelNodeRunDLL32 (ADVPACK.@)
*/
void
WINAPI
DelNodeRunDLL32
(
HWND
hWnd
,
HINSTANCE
hInst
,
LPCSTR
cmdline
,
INT
show
)
{
FIXME
(
"(%s) FIXME: stub
\n
"
,
cmdline
);
}
dlls/advpack/advpack.spec
View file @
c53d554b
...
...
@@ -2,7 +2,7 @@
@ stub AdvInstallFile
@ stub CloseINFEngine
@ stub DelNode
@ st
ub DelNodeRunDLL32
@ st
dcall DelNodeRunDLL32(ptr ptr str long)
@ stdcall DllMain(long long ptr)
@ stdcall DoInfInstall(ptr)
@ stub ExecuteCab
...
...
@@ -23,7 +23,7 @@
@ stub RegRestoreAll
@ stub RegSaveRestore
@ stub RegSaveRestoreOnINF
@ st
ub RegisterOCX
@ st
dcall RegisterOCX(ptr ptr str long)
@ stub RunSetupCommand
@ stub SetPerUserSecValues
@ stub TranslateInfString
...
...
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