�������������ע,��Ҫ������������������ע����д,Ҫ��дһ����ô����ע�е����
| 59 | |
| 60 | // �������������ע,��Ҫ������������������ע����д,Ҫ��дһ����ô����ע�е���� |
| 61 | _Use_decl_annotations_ |
| 62 | LSTATUS RegistryKey::SetStringValue(LPCTSTR pszValueName, LPCTSTR pszValue, DWORD dwType) noexcept { |
| 63 | ATLASSERT(_hKey); |
| 64 | ATLENSURE_RETURN_VAL(pszValue != NULL, ERROR_INVALID_DATA); |
| 65 | ATLASSERT((dwType == REG_SZ) || (dwType == REG_EXPAND_SZ)); |
| 66 | |
| 67 | return ::RegSetValueEx(_hKey, pszValueName, 0, dwType, |
| 68 | reinterpret_cast<const BYTE*>(pszValue), |
| 69 | (static_cast<DWORD>(_tcslen(pszValue)) + 1) * sizeof(TCHAR)); |
| 70 | } |
| 71 | |
| 72 | _Use_decl_annotations_ |
| 73 | LSTATUS RegistryKey::SetMultiStringValue(LPCTSTR pszValueName, LPCTSTR pszValue) noexcept { |
no outgoing calls
no test coverage detected