or rather everything in:
HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Explorer\RunMRU
??? please thanks!
or rather everything in:
HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Explorer\RunMRU
??? please thanks!
RegDeleteKey
Deletes a subkey and it's values. You just keep hopping back and forth between CodeGuru and here with questions, meh.
Take out the space in the string literal and it should be fine.Code:#include <windows.h> int WINAPI WinMain (HINSTANCE, HINSTANCE, LPSTR, int) { if(ERROR_SUCCESS == RegDeleteKey(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\ Explorer\\RunMRU")) MessageBox(NULL, "Regkey Deleted", "Information:", MB_OK); return(0); }
Regards,
Brian