Required Plug-in DLL Functions

Required Plug-in DLL Functions

Module description

Plug-in DLLs must implement and export a number of functions in order to load and work properly in 3ds Max.

The following types represent pointers to these functions.

Typedefs

typedef const ULONG(* LibVersionProcPtr) ()
 Pointer to a function with the following signature: ULONG LibVersion(). More...
 
typedef const MCHAR *(* LibDescriptionProcPtr) ()
 Pointer to a function with the following signature: const MCHAR* LibDescription(). More...
 
typedef int(* LibNumberClassesProcPtr) ()
 Pointer to a function with the following signature: int LibNumberClasses(). More...
 
typedef ClassDesc *(* LibClassDescProcPtr) (int i)
 Pointer to a function with the following signature: ClassDesc* LibClassDesc(int) Returns the i-th class descriptor (ClassDesc derived object). More...
 

Typedef Documentation

typedef const ULONG(* LibVersionProcPtr) ()

Pointer to a function with the following signature: ULONG LibVersion().

LibVersion() must return the VERSION_3DSMAX pre-defined constant which encodes the version of 3ds Max the plug-in is compatible with. This allows 3ds Max to identify obsolete plug-in DLLs.

typedef const MCHAR*(* LibDescriptionProcPtr) ()

Pointer to a function with the following signature: const MCHAR* LibDescription().

Returns a string that describes the plug-in DLL.

typedef int(* LibNumberClassesProcPtr) ()

Pointer to a function with the following signature: int LibNumberClasses().

Returns the number of plug-in classes (number of ClassDesc derived objects) this plug-in Dll exposes.

typedef ClassDesc*(* LibClassDescProcPtr) (int i)

Pointer to a function with the following signature: ClassDesc* LibClassDesc(int) Returns the i-th class descriptor (ClassDesc derived object).

See class ClassDesc and ClassDesc2 for more information.