[PSDK] Add missing INIT_ONCE_STATIC_INIT and InitOnceExecuteOnce() definitions.
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 28 Feb 2015 14:34:18 +0000 (14:34 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 28 Feb 2015 14:34:18 +0000 (14:34 +0000)
svn path=/trunk/; revision=66497

reactos/include/psdk/winbase.h

index 6846b69..cfd340c 100644 (file)
@@ -585,6 +585,8 @@ extern "C" {
 #define CONDITION_VARIABLE_LOCKMODE_SHARED  RTL_CONDITION_VARIABLE_LOCKMODE_SHARED
 #endif
 
+#define INIT_ONCE_STATIC_INIT RTL_RUN_ONCE_INIT
+
 #ifndef RC_INVOKED
 
 #ifndef _FILETIME_
@@ -3772,6 +3774,15 @@ CopyFile2(
 
 #endif /* _WIN32_WINNT >= 0x0601 */
 
+WINBASEAPI
+BOOL
+WINAPI
+InitOnceExecuteOnce(
+  _Inout_ PINIT_ONCE InitOnce,
+  _In_ __callback PINIT_ONCE_FN InitFn,
+  _Inout_opt_ PVOID Parameter,
+  _Outptr_opt_result_maybenull_ LPVOID *Context);
+
 #ifdef _MSC_VER
 #pragma warning(pop)
 #endif