hi experts,
i have a list of products listed on the listbox.
when the user select a product and then the button Remove, it will remove the selected product from the registry.
this is my code:
**********************************************************
#define lpRegKey "SOFTWARE\\Microsoft\\Products
int response = 0;
response = MessageBox("Are you sure?", "Delete!", MB_YESNO | MB_ICONQUESTION);
if (response == IDYES) {
SHDeleteKey(HKEY_LOCAL_MACHINE,lpRegKey);
MessageBox("Remove succesful! Please refresh your Registry.","Removed",
MB_OK|MB_ICONEXCLAMATION); }
**********************************************************
The function deletes all the files under Products from the registry. how do i make the program delete only the desired and selected file? please help. thx.
i have a list of products listed on the listbox.
when the user select a product and then the button Remove, it will remove the selected product from the registry.
this is my code:
**********************************************************
#define lpRegKey "SOFTWARE\\Microsoft\\Products
int response = 0;
response = MessageBox("Are you sure?", "Delete!", MB_YESNO | MB_ICONQUESTION);
if (response == IDYES) {
SHDeleteKey(HKEY_LOCAL_MACHINE,lpRegKey);
MessageBox("Remove succesful! Please refresh your Registry.","Removed",
MB_OK|MB_ICONEXCLAMATION); }
**********************************************************
The function deletes all the files under Products from the registry. how do i make the program delete only the desired and selected file? please help. thx.