Share via


ReleaseContext

ReleaseContext

The ReleaseContext function releases a file HANDLE context not associated with the cache.

Syntax

        void 
ReleaseContext( PFIO_CONTEXTpFioContext) ;

Parameters

  • pFioContext
    A reference to a FIO_CONTEXT to which to decrement the reference count. When the count reaches zero, the file handle is closed.

Remarks

Each reference count increment through a call to AddRefContext must be decremented with a call to ReleaseContext. The AssociateFile function automatically increments the reference count when called as well. The FIO_CONTEXT and the associated file handle are not released until the reference count reaches zero.

Requirements

  Windows NT/2000: Requires Windows 2000.   Windows 95/98: Unsupported.   Header: Declared in filehc.h; include filehc.h.   Library: Use fcachdll.lib.

See Also

Concepts

AddRefContext
AssociateFile
FIO_CONTEXT