| 32 | pCryptUnprotectMemory=NULL; |
| 33 | }; |
| 34 | void Load() |
| 35 | { |
| 36 | if (!LoadCalled) |
| 37 | { |
| 38 | hCrypt = LoadSysLibrary(L"Crypt32.dll"); |
| 39 | if (hCrypt != NULL) |
| 40 | { |
| 41 | // Available since Vista. |
| 42 | pCryptProtectMemory = (CRYPTPROTECTMEMORY)GetProcAddress(hCrypt, "CryptProtectMemory"); |
| 43 | pCryptUnprotectMemory = (CRYPTUNPROTECTMEMORY)GetProcAddress(hCrypt, "CryptUnprotectMemory"); |
| 44 | } |
| 45 | LoadCalled=true; |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | CRYPTPROTECTMEMORY pCryptProtectMemory; |
| 50 | CRYPTUNPROTECTMEMORY pCryptUnprotectMemory; |
no test coverage detected