| 11 | } |
| 12 | |
| 13 | VOID ApplyStringProp(HWND hWnd, LPCWSTR lpString, WORD Property) |
| 14 | { |
| 15 | WORD Prop = (uint16_t)(uint64_t)GetPropW(hWnd, (LPCWSTR)(uint64_t)Property); |
| 16 | if (Prop) |
| 17 | { |
| 18 | DeleteAtom(Prop); |
| 19 | RemovePropW(hWnd, (LPCWSTR)(uint64_t)Property); |
| 20 | } |
| 21 | if (lpString) |
| 22 | { |
| 23 | ATOM v = AddAtomW(lpString); |
| 24 | if (v) |
| 25 | SetPropW(hWnd, (LPCWSTR)(uint64_t)Property, (HANDLE)(uint64_t)v); |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | VOID AllowDarkModeForWindow(HWND hWnd, BOOL Enable) |
| 30 | { |
no outgoing calls
no test coverage detected