MCPcopy Create free account
hub / github.com/WinDurango/WinDurango / ThreadProc

Function ThreadProc

projects/WinDurango.WinRT/src/WinDurangoWinRT.cpp:6–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4std::shared_ptr<wd::common::WinDurango> p_wd = nullptr;
5
6DWORD WINAPI ThreadProc(LPVOID lpParam)
7{
8 UNREFERENCED_PARAMETER(lpParam);
9
10 if (!wd::WinRT::g_UserStorage)
11 {
12 wd::WinRT::g_UserStorage = new wd::WinRT::ConnectedStorage();
13 wd::WinRT::g_UserStorage->InitializeStorage(L"UserStorage").get();
14 }
15
16 if (!wd::WinRT::g_MachineStorage)
17 {
18 wd::WinRT::g_MachineStorage = new wd::WinRT::ConnectedStorage();
19 wd::WinRT::g_MachineStorage->InitializeStorage(L"MachineStorage").get();
20 }
21
22 return 1;
23}
24
25BOOL WINAPI DllMain(HINSTANCE hinstDLL,
26 DWORD fdwReason,

Callers

nothing calls this directly

Calls 2

InitializeStorageMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected