Ignore:
Timestamp:
2000-08-31T00:42:59+12:00 (24 years ago)
Author:
cs025
Message:

Updated sources with most of uninstall added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsinstaller/registry.cpp

    r1397 r1475  
    2121    reply = RegOpenKeyEx(key, name, NULL, KEY_QUERY_VALUE, keyout);
    2222  if (reply != ERROR_SUCCESS)
    23   { return FALSE;
    24   }
    25   return TRUE;
     23  { return false;
     24  }
     25  return true;
     26}
     27
     28bool registry_deletekey(HKEY key, const char *name)
     29{   if (RegDeleteKey(key, name) != ERROR_SUCCESS)
     30    {   return false;
     31  }
     32  return true;
    2633}
    2734
     
    5764}
    5865
     66bool registry_deleteitem(HKEY key, const char *name)
     67{   if (RegDeleteValue(key, name) != ERROR_SUCCESS)
     68    {   return false;
     69  }
     70  return true;
     71}
     72
    5973bool registry_setstring(HKEY key, const char *name, const char *value)
    6074{ LONG reply;
     
    6276    reply = RegSetValueEx(key, (LPCTSTR) name, NULL, REG_SZ, (CONST BYTE *) value, strlen(value) + 1);
    6377  if (reply != ERROR_SUCCESS)
    64   { return FALSE;
    65   }
    66   return TRUE;
     78  { return false;
     79  }
     80  return true;
    6781}
    6882
Note: See TracChangeset for help on using the changeset viewer.