Update of /cvsroot/pywin32/pywin32/win32/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3888
Modified Files:
win32file.i
Log Message:
Add mailslot functions
Index: win32file.i
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/src/win32file.i,v
retrieving revision 1.86
retrieving revision 1.87
diff -C2 -d -r1.86 -r1.87
*** win32file.i 8 Nov 2007 06:25:30 -0000 1.86
--- win32file.i 10 Dec 2007 23:24:34 -0000 1.87
***************
*** 276,279 ****
--- 276,304 ----
%native (CreateIoCompletionPort) MyCreateIoCompletionPort;
+ // @pyswig <o PyHANDLE>|CreateMailslot|Creates a mailslot on the local machine
+ // @pyseeapi CreateMailslot
+ PyHANDLE CreateMailslot(
+ LPCTSTR Name, // @pyparm str|Name||Name of the mailslot, of the form \\.\mailslot\[path]name
+ DWORD MaxMessageSize, // @pyparm int|MaxMessageSize||Largest message size. Use 0 for unlimited.
+ DWORD ReadTimeout, // @pyparm int|ReadTimeout||Timeout in milliseconds. Use -1 for no timeout.
+ SECURITY_ATTRIBUTES *INPUT_NULLOK // @pyparm <o PySECURITY_ATTRIBUTES>|SecurityAttributes||Determines if returned handle is inheritable, can be None
+ );
+
+ // @pyswig (int,int,int,int)|GetMailslotInfo|Retrieves information about a mailslot
+ // @rdesc Returns (maximum message size, next message size, message count, timeout)
+ // @pyseeapi GetMailslotInfo
+ BOOLAPI GetMailslotInfo(
+ HANDLE Mailslot, // @pyparm <o PyHANDLE>|Mailslot||Handle to a mailslot
+ DWORD *OUTPUT,
+ DWORD *OUTPUT,
+ DWORD *OUTPUT,
+ DWORD *OUTPUT);
+
+ // @pyswig |SetMailslotInfo|Sets a mailslot's timeout
+ // @pyseeapi SetMailslotInfo
+ BOOLAPI SetMailslotInfo(
+ HANDLE Mailslot, // @pyparm <o PyHANDLE>|Mailslot||Handle to a mailslot
+ DWORD ReadTimeout); // @pyparm int|ReadTimeout||Timeout in milliseconds, use -1 for no timeout
+
// @pyswig |DefineDosDevice|Lets an application define, redefine, or delete MS-DOS device names.
BOOLAPI DefineDosDevice(
|