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
9b90532c
Commit
9b90532c
authored
Apr 18, 2005
by
Sami Aario
Committed by
Alexandre Julliard
Apr 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added stubs for RunSetupCommand and DelNode.
parent
e5da8e62
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
90 additions
and
7 deletions
+90
-7
advpack.c
dlls/advpack/advpack.c
+70
-5
advpack.spec
dlls/advpack/advpack.spec
+2
-2
advpub.h
include/advpub.h
+18
-0
No files found.
dlls/advpack/advpack.c
View file @
9b90532c
...
...
@@ -50,11 +50,51 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
}
/***********************************************************************
* RunSetupCommand (ADVPACK.@)
*
* Executes an install section in an INF file or a program.
*
* PARAMS
* hWnd [I] Handle to parent window, NULL for quiet mode
* szCmdName [I] Inf or EXE filename to execute
* szInfSection [I] Inf section to install, NULL for DefaultInstall
* szDir [I] Path to extracted files
* szTitle [I] Title of all dialogs
* phEXE [O] Handle of EXE to wait for
* dwFlags [I] Flags; see include/advpub.h
* pvReserved [I] Reserved
*
* RETURNS
* S_OK Everything OK
* S_ASYNCHRONOUS OK, required to wait on phEXE
* ERROR_SUCCESS_REBOOT_REQUIRED Reboot required
* E_INVALIDARG Invalid argument given
* HRESULT_FROM_WIN32(ERROR_OLD_WIN_VERSION)
* Not supported on this Windows version
* E_UNEXPECTED Unexpected error
* HRESULT_FROM_WIN32(GetLastError()) Some other error
*
* BUGS
* Unimplemented
*/
HRESULT
WINAPI
RunSetupCommand
(
HWND
hWnd
,
LPCSTR
szCmdName
,
LPCSTR
szInfSection
,
LPCSTR
szDir
,
LPCSTR
lpszTitle
,
HANDLE
*
phEXE
,
DWORD
dwFlags
,
LPVOID
pvReserved
)
{
FIXME
(
"(%p, %s, %s, %s, %s, %p, 0x%08lx, %p): stub
\n
"
,
hWnd
,
debugstr_a
(
szCmdName
),
debugstr_a
(
szInfSection
),
debugstr_a
(
szDir
),
debugstr_a
(
lpszTitle
),
phEXE
,
dwFlags
,
pvReserved
);
return
E_UNEXPECTED
;
}
/***********************************************************************
* LaunchINFSection (ADVPACK.@)
*/
void
WINAPI
LaunchINFSection
(
HWND
hWnd
,
HINSTANCE
hInst
,
LPCSTR
cmdline
,
INT
show
)
{
FIXME
(
"
%p %p %s %d
\n
"
,
hWnd
,
hInst
,
debugstr_a
(
cmdline
),
show
);
FIXME
(
"
(%p %p %s %d): stub
\n
"
,
hWnd
,
hInst
,
debugstr_a
(
cmdline
),
show
);
}
/***********************************************************************
...
...
@@ -62,7 +102,7 @@ void WINAPI LaunchINFSection( HWND hWnd, HINSTANCE hInst, LPCSTR cmdline, INT sh
*/
void
WINAPI
LaunchINFSectionEx
(
HWND
hWnd
,
HINSTANCE
hInst
,
LPCSTR
cmdline
,
INT
show
)
{
FIXME
(
"
%p %p %s %d
\n
"
,
hWnd
,
hInst
,
debugstr_a
(
cmdline
),
show
);
FIXME
(
"
(%p %p %s %d): stub
\n
"
,
hWnd
,
hInst
,
debugstr_a
(
cmdline
),
show
);
}
/* this structure very closely resembles parameters of RunSetupCommand() */
...
...
@@ -107,7 +147,7 @@ BOOL WINAPI DoInfInstall(const SETUPCOMMAND_PARAMS *setup)
*/
DWORD
WINAPI
NeedRebootInit
(
VOID
)
{
FIXME
(
"()
stub!
\n
"
);
FIXME
(
"()
: stub
\n
"
);
return
0
;
}
...
...
@@ -116,7 +156,7 @@ DWORD WINAPI NeedRebootInit(VOID)
*/
BOOL
WINAPI
NeedReboot
(
DWORD
dwRebootCheck
)
{
FIXME
(
"(0x%08lx)
stub!
\n
"
,
dwRebootCheck
);
FIXME
(
"(0x%08lx)
: stub
\n
"
,
dwRebootCheck
);
return
FALSE
;
}
...
...
@@ -221,9 +261,34 @@ void WINAPI RegisterOCX( HWND hWnd, HINSTANCE hInst, LPCSTR cmdline, INT show )
}
/***********************************************************************
* DelNode (ADVPACK.@)
*
* Deletes a file or directory
*
* PARAMS
* pszFileOrDirName [I] Name of file or directory to delete
* dwFlags [I] Flags; see include/advpub.h
*
* RETURNS
* Success: S_OK
* Failure: E_FAIL
*
* BUGS
* Unimplemented
*/
HRESULT
WINAPI
DelNode
(
LPCSTR
pszFileOrDirName
,
DWORD
dwFlags
)
{
FIXME
(
"(%s, 0x%08lx): stub
\n
"
,
debugstr_a
(
pszFileOrDirName
),
dwFlags
);
return
E_FAIL
;
}
/***********************************************************************
* DelNodeRunDLL32 (ADVPACK.@)
*
* BUGS
* Unimplemented
*/
void
WINAPI
DelNodeRunDLL32
(
HWND
hWnd
,
HINSTANCE
hInst
,
LPCSTR
cmdline
,
INT
show
)
{
FIXME
(
"(%s)
FIXME: stub
\n
"
,
cmdline
);
FIXME
(
"(%s)
: stub
\n
"
,
debugstr_a
(
cmdline
)
);
}
dlls/advpack/advpack.spec
View file @
9b90532c
@ stub AddDelBackupEntry
@ stub AdvInstallFile
@ stub CloseINFEngine
@ st
ub DelNode
@ st
dcall DelNode(str long)
@ stdcall DelNodeRunDLL32(ptr ptr str long)
@ stdcall DllMain(long long ptr)
@ stdcall DoInfInstall(ptr)
...
...
@@ -24,7 +24,7 @@
@ stub RegSaveRestore
@ stub RegSaveRestoreOnINF
@ stdcall RegisterOCX(ptr ptr str long)
@ st
ub RunSetupCommand
@ st
dcall RunSetupCommand(long str str str str ptr long ptr)
@ stub SetPerUserSecValues
@ stub TranslateInfString
@ stub TranslateInfStringEx
...
...
include/advpub.h
View file @
9b90532c
...
...
@@ -38,6 +38,24 @@ typedef struct _StrTable {
typedef
const
STRTABLE
CSTRTABLE
;
typedef
CSTRTABLE
*
LPCSTRTABLE
;
/* Flags for RunSetupCommand */
#define RSC_FLAG_INF 0x00000001
#define RSC_FLAG_SKIPDISKSPACECHECK 0x00000002
#define RSC_FLAG_QUIET 0x00000004
#define RSC_FLAG_NGCONV 0x00000008
#define RSC_FLAG_UPDHLPDLLS 0x00000010
#define RSC_FLAG_DELAYREGISTEROCX 0x00000200
#define RSC_FLAG_SETUPAPI 0x00000400
/* Flags for DelNode */
#define ADN_DEL_IF_EMPTY 0x00000001
#define ADN_DONT_DEL_SUBDIRS 0x00000002
#define ADN_DONT_DEL_DIR 0x00000004
HRESULT
WINAPI
RunSetupCommand
(
HWND
hWnd
,
LPCSTR
szCmdName
,
LPCSTR
szInfSection
,
LPCSTR
szDir
,
LPCSTR
lpszTitle
,
HANDLE
*
phEXE
,
DWORD
dwFlags
,
LPVOID
pvReserved
);
HRESULT
WINAPI
DelNode
(
LPCSTR
pszFileOrDirName
,
DWORD
dwFlags
);
DWORD
WINAPI
NeedRebootInit
(
VOID
);
BOOL
WINAPI
NeedReboot
(
DWORD
dwRebootCheck
);
HRESULT
WINAPI
RegInstall
(
HMODULE
hm
,
LPCSTR
pszSection
,
LPCSTRTABLE
pstTable
);
...
...
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