vuMailSlotLastError()
vuMailSlotLastError(), LONG
Description
Returns the native Windows error code captured by the most recent mailslot operation in the current process.
Parameters
| Parameter |
Data Type |
Description |
| None |
|
This function takes no parameters. |
Returns
- Returns the stored Windows error code.
- Returns 0 when no mailslot error is currently stored.
Example
Result = vuMailSlotSend(SlotName, Data, LEN(Data), 1)
IF Result = 0
ErrNo = vuMailSlotLastError()
MESSAGE('Windows error: ' & ErrNo)
END
Notes
- Added in Build 208.
- Call this immediately after a failed mailslot operation if you need the native Windows error.
- Use vuMailSlotLastErrorText to convert the error code into readable Windows text.