MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / SetStringValue

Method SetStringValue

WinArk/RegistryKey.cpp:61–70  ·  view source on GitHub ↗

�������������ע,��Ҫ�������򻯺�����������ע����д,Ҫ��дһ����ô����ע�е����

Source from the content-addressed store, hash-verified

59
60// �������������ע,��Ҫ�������򻯺�����������ע����д,Ҫ��дһ����ô����ע�е����
61_Use_decl_annotations_
62LSTATUS 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_
73LSTATUS RegistryKey::SetMultiStringValue(LPCTSTR pszValueName, LPCTSTR pszValue) noexcept {

Callers 2

ReplaceTaskManagerMethod · 0.45
SaveToRegistryMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected