The ISmsMessage::GetBodyLength method, in Configuration Manager, gets the length of the message body.
[IDL] HRESULT GetBodyLength( ULONG* pulLen );
- Data type: ULONGQualifiers: [out]Pointer to the length, in bytes, of the message body.
An HRESULT code. Possible values include, but are not limited to, the following:
- The method succeeded.
When retrieving the binary contents of the message body, your application calls this method to get the body length. It can then allocate a sufficient buffer to receive the body and then pass the buffer in a call to ISmsMessage::GetBodyToBuffer Method to copy the body contents. If the body is known to be a Unicode string, the ISmsMessage::GetBodyToString Method method can be used instead to retrieve the contents in one call.
Other ResourcesISmsMessage Interface
Send comments about this topic to Microsoft.