XXX_Close

This function closes the device context identified by hOpenContext.

Syntax

BOOL XXX_Close( DWORD hOpenContext );

Parameters

hOpenContext
Handle returned by the XXX_Open function, used to identify the open context of the device.

Return Values

TRUE indicates success. FALSE indicates failure.

Remarks

An application calls CloseHandle( hFile ) to stop using a stream interface driver. The hFile parameter specifies the handle associated with the device context. In response to CloseHandle, the operating system invokes this function.

The file handle specified for hOpenContext is no longer valid after this function returns; if an application tries to perform stream I/O operations on that handle after calling CloseHandle, those operations fail.