Definition
typedef struct tagSerializeInfo { SerializingState state; unsigned long *pulThemeKey; void* pStorage; long nStorageSize; PFNADDGRAPHICCALLBACK pfnAGCB; unsigned long ulSessionData; } SerializeInfo;
Members
state [in]
A SerializingState value describing what state the serialization process is in. Possible values are SS_QueryBufferSize, SS_Store and SS_Load.
pulThemeKey [in/out]
This is a plugin definable value. It is used in subsequent calls to other exported functions to allow the plugin to keep track of theme specific data. Typically, this is a pointer to a larger structure. If state is SS_QueryBufferSize or SS_Store, this is an in value. If state is SS_Load, this is an out value.
pStorage [in/out]
This is the data storage for the serialization process. If state is SS_QueryBufferSize, this value is not used. If state is SS_Store, this is an out value and write operations to *pStorage is permitted. The pointer itself may not be written to. ShapeUp handles memory for this parameter. If state is SS_Load, this is an in value.
nStorageSize [in]
This is the size in bytes of the pStorage buffer. This value is only valid when state is SS_Load or SS_Store.
pfnAGCB [in]
A callback function of type PFNADDGRAPHICCALLBACK. This function should be called to notify ShapeUp of new shapes. If the callback returns true, the shape was accepted, if it returns false, the shape may be discarded by the plugin and its memory deleted. This can only be used when state is SS_Load.
ulSessionData [in]
This value should be the first argument to the callback functions of this structure. This value must not be modified.
Remarks
None
See Also
Loader API, fnSerialize, SerializingState