| 574 | } |
| 575 | |
| 576 | LONG GetDWORDRegKey(HKEY hKey, LPCSTR strValueName, DWORD* nValue, DWORD nDefaultValue) |
| 577 | { |
| 578 | *nValue = nDefaultValue; |
| 579 | |
| 580 | DWORD dwBufferSize(sizeof(DWORD)); |
| 581 | DWORD nResult(0); |
| 582 | LONG nError = ::RegQueryValueEx( |
| 583 | hKey, |
| 584 | strValueName, |
| 585 | 0, |
| 586 | NULL, |
| 587 | reinterpret_cast<LPBYTE>(&nResult), |
| 588 | &dwBufferSize); |
| 589 | |
| 590 | if (ERROR_SUCCESS == nError) |
| 591 | *nValue = nResult; |
| 592 | |
| 593 | return nError; |
| 594 | } |
| 595 | |
| 596 | LONG GetBoolRegKey(HKEY hKey, LPCSTR strValueName, bool* bValue, bool bDefaultValue) |
| 597 | { |
no outgoing calls
no test coverage detected