@@ -64,20 +64,20 @@ namespace SharedUtil
6464    SString GetMajorVersionString ();
6565
6666    //  Get a system registry value
67-     SString GetSystemRegistryValue (uint hKey, const  SString& strPath, const  SString& strName);
67+     SString GetSystemRegistryValue (uint hKey, const  SString& strPath, const  SString& strName,  int * iResult =  nullptr );
6868
6969    //  Get/set registry values for the current version
7070    void     SetRegistryValue (const  SString& strPath, const  SString& strName, const  SString& strValue, bool  bFlush = false );
71-     SString GetRegistryValue (const  SString& strPath, const  SString& strName);
71+     SString GetRegistryValue (const  SString& strPath, const  SString& strName,  int * iResult =  nullptr );
7272    bool     RemoveRegistryKey (const  SString& strPath);
7373
7474    //  Get/set registry values for a particular version
7575    void     SetVersionRegistryValue (const  SString& strVersion, const  SString& strPath, const  SString& strName, const  SString& strValue);
76-     SString GetVersionRegistryValue (const  SString& strVersion, const  SString& strPath, const  SString& strName);
76+     SString GetVersionRegistryValue (const  SString& strVersion, const  SString& strPath, const  SString& strName,  int * iResult =  nullptr );
7777
7878    //  Get/set registry values for all versions (Common)
7979    void     SetCommonRegistryValue (const  SString& strPath, const  SString& strName, const  SString& strValue);
80-     SString GetCommonRegistryValue (const  SString& strPath, const  SString& strName);
80+     SString GetCommonRegistryValue (const  SString& strPath, const  SString& strName,  int * iResult =  nullptr );
8181
8282    bool  ShellExecuteBlocking (const  SString& strAction, const  SString& strFile, const  SString& strParameters = " "  , const  SString& strDirectory = " "  ,
8383                              int  nShowCmd = 1 );
0 commit comments