{ rv = --valbuf; }
rv = valbuf = ((long)valbuf - 1) < 0 ? 0 : (valbuf - 1);
DWORD DecrementSharedFileCounter(char *file){  HKEY     keyHandle = 0;  LONG     result;  DWORD    type      = REG_DWORD;  DWORD    valbuf    = 0;  DWORD    valbufsize;  DWORD    rv        = 0;  valbufsize = sizeof(DWORD);  result     = RegOpenKeyEx(HKEY_LOCAL_MACHINE, KEY_SHARED_DLLS, 0, KEY_READ | KEY_WRITE, &keyHandle);  if(ERROR_SUCCESS == result)  {    result = RegQueryValueEx(keyHandle, file, NULL, &type, (LPBYTE)&valbuf, (LPDWORD)&valbufsize);    if((ERROR_SUCCESS == result) && (type == REG_DWORD))    {      rv = --valbuf;    }    RegSetValueEx(keyHandle, file, 0, REG_DWORD, (LPBYTE)&valbuf, valbufsize);    RegCloseKey(keyHandle);  }  return(rv);}