-
SetRegistryKey
鎖定
SetRegistryKey屬於C語言函數。
- 外文名
- SetRegistryKey
- 參 數
- lpszRegistryKey
- 字符串指針
- 包含了鍵的名字
- 形 式
- HKEY_CURRENT_USER
SetRegistryKey註冊
CWinApp::SetRegistryKey
void SetRegistryKey( LPCTSTR lpszRegistryKey );
void SetRegistryKey( UINT nIDRegistryKey );
SetRegistryKey參數
lpszRegistryKey
字符串指針,包含了鍵的名字。
nIDRegistryKey
註冊表中鍵的ID/索引。
SetRegistryKey註釋
這個函數將應用程序的設置保存在註冊表而不是INI文件中。這個函數設置m_pszRegistry Key,它被CWinApp的成員函數GetProfileInt,GetProfileString,WriteProfileInt和WriteProfileString使用。如果調用了這個函數,最近使用(MRU)的文件也被保存到註冊表中。通常註冊表的鍵為公司的名字。它保存在如下形式的鍵中:HKEY_CURRENT_USER\Software\<公司名>\<應用程序名>\<section name>\<value name>.
CWinApp Overview | Class Members | Hierarchy Chart
參見 CWinApp::InitInstance, CWinApp::GetProfileInt, CWinApp::GetProfileString, CWinApp::WriteProfileInt, CWinApp::WriteProfileString
- 詞條統計
-
- 瀏覽次數:次
- 編輯次數:9次歷史版本
- 最近更新: 噜啦噜啦嘞006