Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zsolt Vadász
wine
Commits
ee3194be
Commit
ee3194be
authored
19 years ago
by
James Hawkins
Committed by
Alexandre Julliard
19 years ago
Browse files
Options
Downloads
Patches
Plain Diff
advpack: Add stubs for the remaining registry functions.
parent
877c8092
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dlls/advpack/advpack.spec
+3
-3
3 additions, 3 deletions
dlls/advpack/advpack.spec
dlls/advpack/reg.c
+97
-0
97 additions, 0 deletions
dlls/advpack/reg.c
include/advpub.h
+19
-0
19 additions, 0 deletions
include/advpub.h
with
119 additions
and
3 deletions
dlls/advpack/advpack.spec
+
3
−
3
View file @
ee3194be
...
...
@@ -20,9 +20,9 @@
@ stub OpenINFEngine
@ stub RebootCheckOnInstall
@ stdcall RegInstall(ptr str ptr)
@ st
ub
RegRestoreAll
@ st
ub
RegSaveRestore
@ st
ub
RegSaveRestoreOnINF
@ st
dcall
RegRestoreAll
(ptr str long)
@ st
dcall
RegSaveRestore
(ptr str long str str str long)
@ st
dcall
RegSaveRestoreOnINF
(ptr str str str long long long)
@ stdcall RegisterOCX(ptr ptr str long)
@ stdcall RunSetupCommand(long str str str str ptr long ptr)
@ stub SetPerUserSecValues
...
...
This diff is collapsed.
Click to expand it.
dlls/advpack/reg.c
+
97
−
0
View file @
ee3194be
...
...
@@ -100,6 +100,17 @@ error:
/***********************************************************************
* RegInstall (advpack.@)
*
* Loads an INF from a string resource, adds entries to the string
* substitution table, and executes the INF.
*
* PARAMS
* hm [I] Module that contains the REGINST resouce.
* pszSection [I] The INF section to execute.
* pstTable [I] Table of string substitutions.
*
* RETURNS
* Success: S_OK.
* Failure: E_FAIL.
*/
HRESULT
WINAPI
RegInstall
(
HMODULE
hm
,
LPCSTR
pszSection
,
LPCSTRTABLE
pstTable
)
{
...
...
@@ -176,3 +187,89 @@ HRESULT WINAPI RegInstall(HMODULE hm, LPCSTR pszSection, LPCSTRTABLE pstTable)
return
S_OK
;
}
/***********************************************************************
* RegRestoreAll (advpack.@)
*
* Restores all saved registry entries.
*
* PARAMS
* hWnd [I] Handle to the window used for the display.
* pszTitleString [I] Title of the window.
* hkBackupKey [I] Handle to the backup key.
*
* RETURNS
* Success: S_OK.
* Failure: E_FAIL.
*
* BUGS
* Unimplemented.
*/
HRESULT
WINAPI
RegRestoreAll
(
HWND
hWnd
,
PSTR
pszTitleString
,
HKEY
hkBackupKey
)
{
FIXME
(
"(%p, %p, %p) stub
\n
"
,
hWnd
,
pszTitleString
,
hkBackupKey
);
return
E_FAIL
;
}
/***********************************************************************
* RegSaveRestore (advpack.@)
*
* Saves or restores the specified registry value.
*
* PARAMS
* hWnd [I] Handle to the window used for the display.
* pszTitleString [I] Title of the window.
* hkBackupKey [I] Key used to store the backup data.
* pcszRootKey [I] Root key of the registry value
* pcszSubKey [I] Sub key of the registry value.
* pcszValueName [I] Value to save or restore.
* dwFlags [I] See advpub.h.
*
* RETURNS
* Success: S_OK.
* Failure: E_FAIL.
*
* BUGS
* Unimplemented.
*/
HRESULT
WINAPI
RegSaveRestore
(
HWND
hWnd
,
PCSTR
pszTitleString
,
HKEY
hkBackupKey
,
PCSTR
pcszRootKey
,
PCSTR
pcszSubKey
,
PCSTR
pcszValueName
,
DWORD
dwFlags
)
{
FIXME
(
"(%p, %p, %p, %p, %p, %p, %ld) stub
\n
"
,
hWnd
,
pszTitleString
,
hkBackupKey
,
pcszRootKey
,
pcszSubKey
,
pcszValueName
,
dwFlags
);
return
E_FAIL
;
}
/***********************************************************************
* RegSaveRestoreOnINF (advpack.@)
*
* Saves or restores the specified INF Reg section.
*
* PARAMS
* hWnd [I] Handle to the window used for the display.
* pszTitle [I] Title of the window.
* pszINF [I] Filename of the INF.
* pszSection [I] Section to save or restore.
* hHKLMBackKey [I] Opened key in HKLM to store data.
* hHKCUBackKey [I] Opened key in HKCU to store data.
* dwFlags [I] See advpub.h
*
* RETURNS
* Success: S_OK.
* Failure: E_FAIL.
*
* BUGS
* Unimplemented.
*/
HRESULT
WINAPI
RegSaveRestoreOnINF
(
HWND
hWnd
,
PCSTR
pszTitle
,
PCSTR
pszINF
,
PCSTR
pszSection
,
HKEY
hHKLMBackKey
,
HKEY
hHKCUBackKey
,
DWORD
dwFlags
)
{
FIXME
(
"(%p, %p, %p, %p, %p, %p, %ld) stub
\n
"
,
hWnd
,
pszTitle
,
pszINF
,
pszSection
,
hHKLMBackKey
,
hHKCUBackKey
,
dwFlags
);
return
E_FAIL
;
}
This diff is collapsed.
Click to expand it.
include/advpub.h
+
19
−
0
View file @
ee3194be
...
...
@@ -72,6 +72,20 @@ typedef CSTRTABLE *LPCSTRTABLE;
#define ADN_DONT_DEL_DIR 0x00000004
#define ADN_DEL_UNC_PATHS 0x00000008
/* Flags for RegRestoreAll, RegSaveRestore, RegSaveRestoreOnINF */
#define IE4_RESTORE 0x00000001
#define IE4_BACKNEW 0x00000002
#define IE4_NODELETENEW 0x00000004
#define IE4_NOMESSAGES 0x00000008
#define IE4_NOPROGRESS 0x00000010
#define IE4_NOENUMKEY 0x00000020
#define IE4_NO_CRC_MAPPING 0x00000040
#define IE4_REGSECTION 0x00000080
#define IE4_FRDOALL 0x00000100
#define IE4_UPDREFCNT 0x00000200
#define IE4_USEREFCNT 0x00000400
#define IE4_EXTRAINCREFCNT 0x00000800
HRESULT
WINAPI
AdvInstallFile
(
HWND
hwnd
,
LPCSTR
lpszSourceDir
,
LPCSTR
lpszSourceFile
,
LPCSTR
lpszDestDir
,
LPCSTR
lpszDestFile
,
DWORD
dwFlags
,
DWORD
dwReserved
);
...
...
@@ -87,6 +101,11 @@ HRESULT WINAPI LaunchINFSectionEx(HWND,HINSTANCE,LPSTR,INT);
DWORD
WINAPI
NeedRebootInit
(
VOID
);
BOOL
WINAPI
NeedReboot
(
DWORD
dwRebootCheck
);
HRESULT
WINAPI
RegInstall
(
HMODULE
hm
,
LPCSTR
pszSection
,
LPCSTRTABLE
pstTable
);
HRESULT
WINAPI
RegRestoreAll
(
HWND
hWnd
,
PSTR
pszTitleString
,
HKEY
hkBackupKey
);
HRESULT
WINAPI
RegSaveRestore
(
HWND
hWnd
,
PCSTR
pszTitleString
,
HKEY
hkBackupKey
,
PCSTR
pcszRootKey
,
PCSTR
pcszSubKey
,
PCSTR
pcszValueName
,
DWORD
dwFlags
);
HRESULT
WINAPI
RegSaveRestoreOnINF
(
HWND
hWnd
,
PCSTR
pszTitle
,
PCSTR
pszINF
,
PCSTR
pszSection
,
HKEY
hHKLMBackKey
,
HKEY
hHKCUBackKey
,
DWORD
dwFlags
);
HRESULT
WINAPI
RunSetupCommand
(
HWND
hWnd
,
LPCSTR
szCmdName
,
LPCSTR
szInfSection
,
LPCSTR
szDir
,
LPCSTR
lpszTitle
,
HANDLE
*
phEXE
,
DWORD
dwFlags
,
LPVOID
pvReserved
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment