ReactOS  0.4.15-dev-1074-gffc96d2
InitOnceExecuteOnce.c File Reference
#include "k32_vista.h"
#include <ndk/exfuncs.h>
#include <wine/config.h>
#include <wine/port.h>
Include dependency graph for InitOnceExecuteOnce.c:

Go to the source code of this file.

Functions

DWORD WINAPI RtlRunOnceExecuteOnce (RTL_RUN_ONCE *once, PRTL_RUN_ONCE_INIT_FN func, void *param, void **context)
 
BOOL NTAPI InitOnceExecuteOnce (INIT_ONCE *once, PINIT_ONCE_FN func, void *param, void **context)
 

Function Documentation

◆ InitOnceExecuteOnce()

BOOL NTAPI InitOnceExecuteOnce ( INIT_ONCE once,
PINIT_ONCE_FN  func,
void param,
void **  context 
)

Definition at line 16 of file InitOnceExecuteOnce.c.

17 {
19 }
GLenum func
Definition: glext.h:6028
Definition: http.c:7094
GLfloat param
Definition: glext.h:5796
RTL_RUN_ONCE_INIT_FN * PRTL_RUN_ONCE_INIT_FN
Definition: winnt_old.h:2608
DWORD WINAPI RtlRunOnceExecuteOnce(RTL_RUN_ONCE *once, PRTL_RUN_ONCE_INIT_FN func, void *param, void **context)
Definition: runonce.c:107

Referenced by apartment_createwindowifneeded(), DllGetClassObject(), get_notif_hwnd(), init_winsock(), and winsock_init().

◆ RtlRunOnceExecuteOnce()

DWORD WINAPI RtlRunOnceExecuteOnce ( RTL_RUN_ONCE once,
PRTL_RUN_ONCE_INIT_FN  func,
void param,
void **  context 
)

Definition at line 107 of file runonce.c.

109 {
111 
112  if (ret != STATUS_PENDING) return ret;
113 
114  if (!func( once, param, context ))
115  {
117  return STATUS_UNSUCCESSFUL;
118  }
119 
120  return RtlRunOnceComplete( once, 0, context ? *context : NULL );
121 }
GLenum func
Definition: glext.h:6028
Definition: http.c:7094
#define RTL_RUN_ONCE_INIT_FAILED
DWORD WINAPI RtlRunOnceComplete(RTL_RUN_ONCE *once, ULONG flags, void *context)
Definition: runonce.c:65
smooth NULL
Definition: ftsmooth.c:416
DWORD WINAPI RtlRunOnceBeginInitialize(RTL_RUN_ONCE *once, ULONG flags, void **context)
Definition: runonce.c:19
#define STATUS_PENDING
Definition: ntstatus.h:82
GLfloat param
Definition: glext.h:5796
unsigned long DWORD
Definition: ntddk_ex.h:95
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132
int ret

Referenced by InitOnceExecuteOnce().