Mcpclose, Parameters, Return value – MagTek MAGTEK User Manual
Page 65: Remarks

Section 5. Application Programmable Interface
59
McpClose
This function is used to close a communication channel to an MCP device which was opened
with the McpOpen function.
DWORD McpClose( HANDLE hDevice );
Parameters
hDevice
Handle to the specified device (communications resource) that is to be closed. This handle was
returned from the McpOpen function.
Return Value
The returned value indicates the outcome of the close function.
Value
Meaning
MCP_ST_OK
Success. The channel has been closed.
MCP_ST_INVALID
Invalid device handle hDevice
MCP_ST_FAILED Other
error
Remarks
When the channel is closed, all pending requests are aborted.
To reset the channel, the McpReset function should be used instead of closing and reopening the
channel.