summaryrefslogtreecommitdiffhomepage
path: root/include/ntapi/nt_msq.h
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-09-08 22:22:22 +0000
committermidipix <writeonce@midipix.org>2017-09-08 22:49:23 -0400
commita6563a605d7906252921503e89eae8da00eb599c (patch)
treef367db339390805ce4f63f329546a9494a70327f /include/ntapi/nt_msq.h
parent14cb5f9e41e8f906499c50179cc768fddc9b10f8 (diff)
downloadntapi-a6563a605d7906252921503e89eae8da00eb599c.tar.bz2
ntapi-a6563a605d7906252921503e89eae8da00eb599c.tar.xz
subsystem interfaces: integrated sysv msgqueue definitions.
Diffstat (limited to 'include/ntapi/nt_msq.h')
-rw-r--r--include/ntapi/nt_msq.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/include/ntapi/nt_msq.h b/include/ntapi/nt_msq.h
new file mode 100644
index 0000000..1aff629
--- /dev/null
+++ b/include/ntapi/nt_msq.h
@@ -0,0 +1,49 @@
+#ifndef _NT_MSQ_H_
+#define _NT_MSQ_H_
+
+#include "nt_abi.h"
+#include "nt_object.h"
+
+/* semaphore command flags */
+#define NT_MSQ_FLAG_NOWAIT (0x0800)
+#define NT_MSQ_FLAG_NOERROR (0x1000)
+
+
+/* msgqueue info */
+typedef struct __attr_ptr_size_aligned__ _nt_msq_info {
+ void * hport;
+ void * section;
+ void * section_addr;
+ size_t section_size;
+ void * hevent;
+ void * apc_routine;
+ void * apc_context;
+ int32_t msqkey;
+ int32_t msqid;
+ int32_t msqspid;
+ int32_t msqrpid;
+ intptr_t msqrank;
+ uintptr_t msqslots;
+ uintptr_t msqcbytes;
+ uintptr_t msqqbytes;
+ uint32_t msqscnt;
+ uint32_t msqrcnt;
+ nt_filetime msqstime;
+ nt_filetime msqrtime;
+ nt_filetime msqctime;
+ uint32_t ipcuid;
+ uint32_t ipcgid;
+ uint32_t ipccuid;
+ uint32_t ipccgid;
+ uint32_t ipcmode;
+ int32_t ipcseq;
+ uint32_t ntaccess;
+ uint32_t ntattr;
+ uint32_t ntshare;
+ uint32_t ntoptions;
+ nt_iosb ntiosb;
+ nt_iosb * riosb;
+} nt_msq_info;
+
+
+#endif