CreateEventEx function Null safety kernel32

int CreateEventEx(
  1. Pointer<SECURITY_ATTRIBUTES> lpEventAttributes,
  2. Pointer<Utf16> lpName,
  3. int dwFlags,
  4. int dwDesiredAccess
)

Creates or opens a named or unnamed event object and returns a handle to the object.

HANDLE CreateEventExW(
  LPSECURITY_ATTRIBUTES lpEventAttributes,
  LPCWSTR               lpName,
  DWORD                 dwFlags,
  DWORD                 dwDesiredAccess
);

Implementation

int CreateEventEx(Pointer<SECURITY_ATTRIBUTES> lpEventAttributes,
        Pointer<Utf16> lpName, int dwFlags, int dwDesiredAccess) =>
    _CreateEventEx(lpEventAttributes, lpName, dwFlags, dwDesiredAccess);