Skip to content

Commit aad50b0

Browse files
committed
core: Bind CreateEvent and SetEvent for win32.
1 parent a800eb6 commit aad50b0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rt/src/core/c/windows/windows.volt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,8 +810,13 @@ fn RegEnumKeyExW(HKEY, DWORD, LPCWSTR, LPDWORD, LPDWORD, LPWSTR, LPDWORD, PFILET
810810
fn RegQueryInfoKeyA(HKEY, LPCSTR, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, PFILETIME) LONG;
811811
fn RegQueryInfoKeyW(HKEY, LPCWSTR, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, PFILETIME) LONG;
812812

813+
fn CreateEventA(LPSECURITY_ATTRIBUTES, BOOL, BOOL, LPCSTR) HANDLE;
814+
fn CreateEventW(LPSECURITY_ATTRIBUTES, BOOL, BOOL, LPCWSTR) HANDLE;
815+
fn SetEvent(HANDLE) BOOL;
816+
813817
// Helper functions needs to be marked with extern volt so
814818
// they do not collide with other C function with similar names.
819+
// DO NOT ADD ANY WINDOWS FUNCTIONS AFTER THIS!
815820
extern(Volt):
816821

817822
fn LOWORD(dw: DWORD) WORD
@@ -838,5 +843,4 @@ fn GET_XBUTTON_WPARAM(w: WPARAM) i32
838843
{
839844
return cast(i32)cast(i16)HIWORD(cast(DWORD)w);
840845
}
841-
842846
// DO NOT ADD ANY WINDOWS FUNCTIONS AFTER THIS!

0 commit comments

Comments
 (0)