MBM.FlatCreateH (FUN)

( CAA_MemBlockMan.Library)

Out of the heap a Flat will be created. During the call the maximum number of desired entries in the Flat is passed in ctNumKeys. A Flat will be created, the memory for which will be provided by the Heap. In the interaction of the parameters dwMinKey, dwMaxKey and ctNumKeys the organization of the flat as an array or a sorted list will be determined. If no callback should be done, for eEnable, eDisable, eUpdate or eRead the value CB.gc_cbNULL should be passed. If the Flat cannot be created, CAA.gc_hINVALID will be returned.

Input:

idMinKey

CAA.IDENT

Lowest key value.

idMaxKey

CAA.IDENT

Highest key value.

ctNumKeys

CAA.COUNT

Number of keys to be used.

eEnable

CB.EVENT

Event, after MBM.FlatEnable. Parameter is the affected key idKey.

eDisable

CB.EVENT

Event, after MBM.FlatDisable. Parameter is the affected key idKey.

eUpdate

CB.EVENT

Event, after MBM.FlatUpdate. Parameter is the affected key idKey.

eRead

CB.EVENT

Event, after MBM.FlatRead. Parameter is the affected key idKey.

peError

POINTER TO MBM.ERROR

Pointer on error ID.

Output:

hFlat

CAA.HANDLE

Handle des neuen Flat.