| 219 | } |
| 220 | |
| 221 | static void storeRegKey(bool option, LPCSTR name) { |
| 222 | // store this in the registry, too |
| 223 | DWORD dwValue = 0; |
| 224 | if (option) { |
| 225 | dwValue = 1; |
| 226 | } |
| 227 | RegSetValueExA(g_hRegistry, name, 0, REG_DWORD, (const BYTE*)&dwValue, 4); |
| 228 | |
| 229 | } |
| 230 | //------------------------------------------------------------------------------- |
| 231 | // Toggle the "AutoRotate" state |
| 232 | //------------------------------------------------------------------------------- |
no outgoing calls
no test coverage detected