mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=5092
This commit is contained in:
parent
3a3141d637
commit
e8bab722b1
|
@ -1168,7 +1168,7 @@ INT_PTR CALLBACK CScreensaver::ConfigureDialogProcStub( HWND hwndDlg, UINT uMsg,
|
|||
// arguments: name: name of key, keyval: where to store value of key
|
||||
// returns: int indicating error
|
||||
// function: reads string value in specified key
|
||||
int CScreensaver::UtilSetRegKey(char *name, DWORD value)
|
||||
int CScreensaver::UtilSetRegKey(LPCTSTR name, DWORD value)
|
||||
{
|
||||
LONG error;
|
||||
HKEY boinc_key;
|
||||
|
@ -1216,17 +1216,17 @@ int CScreensaver::UtilSetRegKey(char *name, DWORD value)
|
|||
// arguments: name: name of key, keyval: where to store value of key
|
||||
// returns: int indicating error
|
||||
// function: reads string value in specified key
|
||||
int CScreensaver::UtilGetRegKey(char *name, DWORD &keyval)
|
||||
int CScreensaver::UtilGetRegKey(LPCTSTR name, DWORD &keyval)
|
||||
{
|
||||
LONG error;
|
||||
LONG error;
|
||||
DWORD type = REG_DWORD;
|
||||
DWORD size = sizeof( DWORD );
|
||||
char str[2048];
|
||||
TCHAR str[2048];
|
||||
DWORD value;
|
||||
HKEY boinc_key;
|
||||
HKEY boinc_key;
|
||||
|
||||
strncpy( str, _T("SOFTWARE\\Space Sciences Laboratory, U.C. Berkeley\\BOINC Screensaver\\"), sizeof(str) );
|
||||
strcat( str, name );
|
||||
StringCbCat( str, sizeof(str) / sizeof(TCHAR), _T("SOFTWARE\\Space Sciences Laboratory, U.C. Berkeley\\BOINC Screensaver\\") );
|
||||
StringCbCat( str, sizeof(str) / sizeof(TCHAR), name );
|
||||
|
||||
if ( m_bIs9x ) {
|
||||
error = RegOpenKeyEx(
|
||||
|
@ -1268,7 +1268,7 @@ int CScreensaver::UtilGetRegKey(char *name, DWORD &keyval)
|
|||
// if str is empty, attepts to delete the key
|
||||
// returns: int indicating error
|
||||
// function: sets string value in specified key in windows startup dir
|
||||
int CScreensaver::UtilGetRegStartupStr(char *name, char *str)
|
||||
int CScreensaver::UtilGetRegStartupStr(LPCTSTR name, LPTSTR str)
|
||||
{
|
||||
LONG error;
|
||||
DWORD type = REG_SZ;
|
||||
|
|
|
@ -148,9 +148,9 @@ protected:
|
|||
static LRESULT CALLBACK GenericSaverProcStub( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
|
||||
static INT_PTR CALLBACK ConfigureDialogProcStub( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
|
||||
|
||||
int UtilGetRegKey(char *name, DWORD &keyval);
|
||||
int UtilSetRegKey(char *name, DWORD value);
|
||||
int UtilGetRegStartupStr(char *name, char *str);
|
||||
int UtilGetRegKey(LPCTSTR name, DWORD &keyval);
|
||||
int UtilSetRegKey(LPCTSTR name, DWORD value);
|
||||
int UtilGetRegStartupStr(LPCTSTR name, LPTSTR str);
|
||||
|
||||
protected:
|
||||
RPC_CLIENT rpc;
|
||||
|
|
Loading…
Reference in New Issue