Prototype:
This function creates an MSM_WEvent/MSM_OEvent structure. If initialization is successful, a pointer to MSM_WEvent/MSM_OEvent is returned. This pointer is used in the majority of API calls (MSM_AddW*/MSM_AddO*) to fill up the event structure and to finally send the event. The pointer to MSM_WEvent/MSM_OEvent should be obtained by calling this function only.
Wide character:
MSM_WEvent* MSM_CreateWEvent(TM_Context* pCtx, MSM_UofW* pUOW)
Narrow character:
MSM_OEvent* MSM_CreateOEvent(TM_Context* pCtx, MSM_UofW* pUOW)
TM_Context* pCtx: Pointer to TM_Context returned by TM_Init
MSM_UofW* pUOW: Pointer to MSM_UofW returned by MSM_UofW
Pointer to MSM_WEvent
- Not NULL (success)
- NULL (failed)
Pointer to MSM_OEvent
- Not NULL (success)
- NULL (failed)