Skip to content

Commit

Permalink
core: Bind CreateEvent and SetEvent for win32.
Browse files Browse the repository at this point in the history
  • Loading branch information
bhelyer committed Mar 27, 2018
1 parent a800eb6 commit aad50b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rt/src/core/c/windows/windows.volt
Original file line number Diff line number Diff line change
Expand Up @@ -810,8 +810,13 @@ fn RegEnumKeyExW(HKEY, DWORD, LPCWSTR, LPDWORD, LPDWORD, LPWSTR, LPDWORD, PFILET
fn RegQueryInfoKeyA(HKEY, LPCSTR, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, PFILETIME) LONG;
fn RegQueryInfoKeyW(HKEY, LPCWSTR, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, PFILETIME) LONG;

fn CreateEventA(LPSECURITY_ATTRIBUTES, BOOL, BOOL, LPCSTR) HANDLE;
fn CreateEventW(LPSECURITY_ATTRIBUTES, BOOL, BOOL, LPCWSTR) HANDLE;
fn SetEvent(HANDLE) BOOL;

// Helper functions needs to be marked with extern volt so
// they do not collide with other C function with similar names.
// DO NOT ADD ANY WINDOWS FUNCTIONS AFTER THIS!
extern(Volt):

fn LOWORD(dw: DWORD) WORD
Expand All @@ -838,5 +843,4 @@ fn GET_XBUTTON_WPARAM(w: WPARAM) i32
{
return cast(i32)cast(i16)HIWORD(cast(DWORD)w);
}

// DO NOT ADD ANY WINDOWS FUNCTIONS AFTER THIS!

0 comments on commit aad50b0

Please sign in to comment.