Hello,
how do you work with RegReplaceKey ?


I create a regkey 'AA' and then i try:

RegReplaceKeyA PROTO :DWORD,:DWORD,:DWORD,:DWORD
RegReplaceKey equ <RegReplaceKeyA>

.data
REGKeyHandle dd 0
keyname1 db 'AA',0
keyname2 db 'BB', 0

.code
invoke RegReplaceKeyA,80000001h,addr keyname1,addr keyname2,REGKeyHandle

or

invoke RegReplaceKeyA,80000001h,addr keyname2,addr keyname1,REGKeyHandle

booth dont work...
Posted on 2003-10-27 14:02:49 by xanthos
From MSDN


The RegReplaceKey function replaces the file backing a registry key and all its subkeys with another file, so that when the system is next started, the key and subkeys will have the values stored in the new file.

LONG RegReplaceKey(
HKEY hKey, // handle to open key
LPCTSTR lpSubKey, // subkey name
LPCTSTR lpNewFile, // data file
LPCTSTR lpOldFile // backup file
);
Posted on 2003-10-27 21:29:51 by japheth