CMessage Class¶
Overview¶
Note
The CMessage class handles messages used in a messaging queue
The structure used for this class is CMessage
Quick Reference¶
Quick Ref |
virtual short CMessage::GetCommType() |
virtual unsigned char CMessage::GetMsgSubType() |
virtual unsigned char CMessage::GetMsgType() |
virtual void CMessage::MarshalMessage(unsigned char** pData, unsigned long* dwSize) |
virtual void CMessage::Run() |
virtual int CMessage::UnmarshalMessage(unsigned char* pData, unsigned long dwSize) |
Methods¶
Name |
Description |
Returns the message communication type |
|
Returns the message sub-type |
|
Returns the message type |
|
Marshal the |
|
Execution of the message |
|
Unmarshal the |
CMessage::GetCommType¶
Returns the message communication type
virtual short CMessage::GetCommType();
Return Value
Returns short
Remarks
CMessage::GetMsgSubType¶
Returns the message sub-type
virtual unsigned char CMessage::GetMsgSubType();
Return Value
Returns unsigned char
Remarks
CMessage::GetMsgType¶
Returns the message type
virtual unsigned char CMessage::GetMsgType();
Return Value
Returns unsigned char
Remarks
CMessage::MarshalMessage¶
Transforming the memory representation of the CMessage
object to a data format suitable for storage or transmission
virtual void CMessage::MarshalMessage(
unsigned char** pData,
unsigned long* dwSize);
Parameters
unsigned char
** pData - pointer to a pointer to dataunsigned long
* dwSize - pointer to a dword variable that contains the size of data pointed to by pData
Remarks
CMessage::Run¶
Execution of the message
virtual void CMessage::Run();
Remarks
CMessage::UnmarshalMessage¶
Transforming a representation of the CMessage
object that was used for storage or transmission to a representation of the object that is executable
virtual int CMessage::UnmarshalMessage(
unsigned char\* pData,
unsigned long dwSize);
Parameters
unsigned char
* pData - pointer to dataunsigned long
dwSize - size of data
Return Value
Returns int
Remarks