MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / Load

Method Load

Libraries/unrar/secpassword.cpp:34–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers 1

SecHideDataFunction · 0.45

Calls 1

LoadSysLibraryFunction · 0.85

Tested by

no test coverage detected