aboutsummaryrefslogtreecommitdiff
path: root/testing/yup-comm/mailslot.h
diff options
context:
space:
mode:
Diffstat (limited to 'testing/yup-comm/mailslot.h')
-rw-r--r--testing/yup-comm/mailslot.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/yup-comm/mailslot.h b/testing/yup-comm/mailslot.h
new file mode 100644
index 0000000..78fc0d9
--- /dev/null
+++ b/testing/yup-comm/mailslot.h
@@ -0,0 +1,9 @@
+/* Author: Jan Sucan */
+
+#include <windows.h>
+
+HANDLE mailslot_create(const char * const name);
+unsigned mailslot_read(HANDLE slot, char * const buf, unsigned buf_size);
+HANDLE mailslot_connect(const char * const name);
+int mailslot_write(HANDLE slot, char * const buf, unsigned buf_size);
+void mailslot_close(HANDLE slot);