Partager via


AddRefContext

AddRefContext

The AddRefContext function increments the reference count to the FIO_CONTEXT structure, the address of which is passed as an argument.

Syntax

        void 
AddRefContext(PFIO_CONTEXTpFioContext) ;

Parameters

  • pFioContext
    A reference to the FIO_CONTEXT structure to which to add a reference.

Remarks

Call the AddRefCount function whenever you duplicate an FIO_CONTEXT structure to increment the current reference count. Each call to AddRefContext must be matched with a call to the ReleaseContext function to decrement the reference count when the FIO_CONTEXT is no longer needed.

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

FIO_CONTEXT
ReleaseContext