Previous Topic

Next Topic

ctFileCloseCallback

ctFileCloseCallback() is a stub for custom file close callbacks with the c-tree Server SDK.

Declaration

ctCONV NINT ctDECL ctFileCloseCallback(COUNT filno, pCTFILE ctnum pthHan);

Description

The c-tree Server SDK allows an application developer to create a custom c-tree Server with specific application code for increased performance. ctFileCloseCallback() provides advanced callback capabilities available to the developer. Custom operations during c-tree file close operations can be implemented. This function is located in the ctuserx.c module.

  • filno - the user file number for the c-tree file.
  • ctnum - the file control block pointer for the file.
  • pthHan - the thread handle.

The callback functions should return zero to indicate success. When a file create or open callback function call returns a non-zero error code, the server fails the file create or open operation. The close callback function can be used to clean up any resources the custom code allocated in the create and open callback functions.

Please contact FairCom regarding the availability of the c-tree Server SDK

Return Values

Value

Symbolic Constant

Explanation

0

NO_ERROR

Successful operation.

See c-tree Plus Error Codes for a complete listing of valid c-tree Plus error values.

Example


/*
	Example Code
*/

See Also

ctFileCreateCallback(), ctFileOpenCallback()