D
dinesh krishna via DotNetMonster.com
I had used the following code for taking registry back up.
[DllImport("advapi32.dll", EntryPoint="RegSaveKey")] public static extern int RegSaveKey(IntPtr hKey, string lpFile, int lpSecurityAttributes);
IntPtr user = new IntPtr((int)RegistryHive.CurrentUser);
RegSaveKey(user, @"C:\regbackup.reg", 0);
the file is creating.but it is zero byte.what is the problem with this
programe.
if any one know please elp me
[DllImport("advapi32.dll", EntryPoint="RegSaveKey")] public static extern int RegSaveKey(IntPtr hKey, string lpFile, int lpSecurityAttributes);
IntPtr user = new IntPtr((int)RegistryHive.CurrentUser);
RegSaveKey(user, @"C:\regbackup.reg", 0);
the file is creating.but it is zero byte.what is the problem with this
programe.
if any one know please elp me