The ISmsMessage::GetBodyToString method, in Configuration Manager, gets the message body into a string.

HRESULT GetBodyToString( 
		LPWSTR*  pszString



Data type: LPWSTRQualifiers: [out]Pointer to the message body data. The caller must free the memory using CoTaskMemFree.

Return Values

An HRESULT code. Possible values include, but are not limited to, the following:


The method succeeded.

The body is not a null terminated Unicode string.


This method fails unless the application has set the message body as a null-terminated Unicode string, for example, by using ISmsMessage::SetBodyFromString Method.

See Also

Other Resources

ISmsMessage Interface

Send comments about this topic to Microsoft.