CHAI SDK
Version 1.3
|
Custom Data Transfer message dedicated class. More...
Public Member Functions | |
virtual void | SetNumber (CPNS::uint16 const wNumber)=0 |
Set the message Number. More... | |
virtual CPNS::uint16 | GetNumber () const =0 |
Get the message's number. More... | |
virtual CPNS::uint16 | GetSendBufferLength () const =0 |
Get the maximum number of bytes the message can carry. More... | |
virtual CPNS::Enums::Errors | SetSendBuffer (CPNS::uint16 const wToOffset, CPNS::uint16 const wBytesToCopy, CPNS::byte const *const pSrcBuffer)=0 |
Fill the message buffer with data coming from the application. More... | |
virtual CPNS::uint16 | GetReceiveBufferLength () const =0 |
Get the number of bytes available. More... | |
virtual CPNS::uint16 | GetReceiveBuffer (CPNS::uint16 const wFromOffset, CPNS::uint16 const wBytesToRead, CPNS::byte *const pDestBuffer) const =0 |
Get the message buffer content. More... | |
Public Member Functions inherited from CPNS::IHookedObject | |
virtual void | Acquire ()=0 |
Acquire an object. More... | |
virtual void | Release ()=0 |
Release an object. More... | |
virtual CPNS::uint32 | GetHookCounter () const =0 |
Get object's hook counter. More... | |
Public Member Functions inherited from CPNS::IObject | |
virtual CPNS::ICHAI * | GetCHAI ()=0 |
Get a pointer to the CHAI hosting this object. More... | |
virtual void | RegisterObjectNotificationHandler (CPNS::IObject_NotificationHandler *const pHandler)=0 |
Register an Object's notification handler. More... | |
virtual void | UnregisterObjectNotificationHandler (CPNS::IObject_NotificationHandler *const pHandler)=0 |
Unregister an Object's notification handler. More... | |
virtual CPNS::Enums::ObjectTypes | GetObjectType () const =0 |
Get the object type. More... | |
virtual CPNS::uint32 | GetHandle () const =0 |
Get a unique handle to the object if this object is handled by the trashcan. More... | |
virtual void | SetUserDataPtr (void const *const pData)=0 |
Set a custom user ptr data. More... | |
virtual void * | GetUserDataPtr () const =0 |
Get custom user ptr data. More... | |
virtual void | SetUserDataUInt32 (const CPNS::uint32 dwData)=0 |
Set a custom user uint32 data. More... | |
virtual CPNS::uint32 | GetUserDataUInt32 () const =0 |
Get custom user uint32 data. More... | |
Custom Data Transfer message dedicated class.
|
pure virtual |
Get the message's number.
|
pure virtual |
Get the message buffer content.
Return the number of bytes copied from the message buffer to the application side. Might be 0 if the offset is outside the available length, or less than wBytesToRead if wOffset+bBytesToRead exceeds available length.
[in] | wFromOffset | Message buffer offset |
[in] | wBytesToRead | Number of bytes to read from the message's buffer |
[in] | pDestBuffer | Pointer to the application's destination buffer |
|
pure virtual |
Get the number of bytes available.
|
pure virtual |
Get the maximum number of bytes the message can carry.
|
pure virtual |
Set the message Number.
[in] | wNumber | the message's number |
|
pure virtual |
Fill the message buffer with data coming from the application.
[in] | wToOffset | Message buffer offset |
[in] | wBytesToCopy | Number of bytes to copy from application to message buffer |
[in] | pSrcBuffer | Pointer to the source buffer |