C language function:InitOnceComplete sample codes

Search sample code in the internet.It is the result.


TITLE : What can I do if I want to throw a C++ exception from my InitOnce callback? – The Old New Thing
InitOnceComplete(&g_InitOnce,.......
http://blogs.msdn.microsoft.com/oldnewthing/20170406-00/@p=95915


TITLE : What can I do if I want to throw a C++ exception from my InitOnce callback? – The Old New Thing
InitOnceComplete(&g_InitOnce, 0, result);.......
http://blogs.msdn.microsoft.com/oldnewthing/20170406-00/@p=95915
TITLE : What can I do if I want to throw a C++ exception from my InitOnce callback? – The Old New Thing
if (NeedInitialization()) InitOnceComplete(m_initOnce, m_status, nullptr);.......
http://blogs.msdn.microsoft.com/oldnewthing/20170406-00/@p=95915
TITLE : Using One-Time Initialization (Windows)
fStatus = InitOnceComplete(&g_InitOnce, // Pointer to one-time initialization structure.......
http://msdn.microsoft.com/ja-jp/library/windows/desktop/ms686934(v=vs.85).aspx
search Google

https://www.google.com/#q=InitOnceComplete