RSM.ClassCreate (FUN)

By use of this function of the CAA_ResMan.library new classes of resources may be created.

If the value 0 is passed for ctMaxHandles=0, the implementation will choose a size.

May be read out by RSM.GetClassInfo.

Input:

iPOUIndex

INT

POUIndex of function responsible for releasing the resources of this class.

 

Note: This POUIndex must belong to a function of an external library, which has exactly one parameter; this parameter has to be of length 4 bytes!  

ctMaxHandles

CAA.COUNT

Maximum number of handles

peError

POINTER TO RSM.Error

Pointer on error ID

Output:        

hClass

CAA.HANDLE

Handle of class in case of success

提示!

In CoDeSys V3 iPOUIndex has been replaced by pPOUFunc of type CAA.PVOID.