Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.06 KB

SetMailslotInfo.md

File metadata and controls

46 lines (32 loc) · 1.06 KB

Home

Function name : SetMailslotInfo

Group: Mailslot - Library: kernel32


The SetMailslotInfo function sets the time-out value used by the specified mailslot for a read operation.


Code examples:

Creating a mailslot

Declaration:

BOOL SetMailslotInfo(
  HANDLE hMailslot,    // mailslot handle
  DWORD lReadTimeout   // read time-out interval
);  

FoxPro declaration:

DECLARE INTEGER SetMailslotInfo IN kernel32;
	INTEGER hMailslot,;
	INTEGER lReadTimeout  

Parameters:

hMailslot [in] Handle to a mailslot. The CreateMailslot function must create this handle.

lReadTimeout [in] Specifies the amount of time, in milliseconds, a read operation can wait for a message to be written to the mailslot before a time-out occurs.


Return value:

If the function succeeds, the return value is nonzero.