xxx_Close

The xxx_Close function closes the device context identified by hOpenContext.

Syntax

BOOL xxx_Close( DWORD hOpenContext );

Parameters

hOpenContext
The handle returned by xxx_Open used to identify the open context of the device.

Return Value

Returns TRUE if the device successfully closed, and FALSE otherwise.

Remarks

An application calls CloseHandle(hFile) to cease using an installable device. The hFile argument specifies the handle associated with the device context. In response to CloseHandle, the operating system invokes xxx_Close.

The file handle specified for hOpenContext should be invalid after this function returns, such that if an application tries to perform Stream I/O functions on that handle after calling CloseHandle()