CDReturnHandle

Applies To:

ChemDraw Menu Extensions Interface:  Access Function

Description:

Releases a handle back to ChemDraw.

Syntax:

long CDAPI CDReturnHandle( HANDLE hReturnedHandle );

hReturnedHandle a handle which was given to the DLL through an access function.

Returns a long indicating success (0) or failure (!0) of the function.

Remarks:

Handles provided by ChemDraw should be processed and released as soon as possible. If handles are being held by the DLL when ChemDraw shuts down, it may be construed as a memory leak.

This function must have ordinal number 14 in the Import Definition File.

If an error is returned, the DLL may call CDGetApplicationErrorString for a string explaining the error.

Example:

See Also:

CDGetApplicationErrorString


2005 CambridgeSoft Corporation. All Rights Reserved. Privacy Statement
Tel  800 315-7300 / 617 588-9300     Fax  617 588-9390     Email   info@cambridgesoft.com
CambridgeSoft Corporation, 100 CambridgePark Drive, Cambridge, MA 02140 USA