Share via


XXX_Read (Windows Embedded CE 6.0)

1/6/2010

This function reads the entire message and fills in provider-specific fields.

Syntax

HRESULT XXX_Read(
  SMS_MANAGER_COOKIE smsmcCookie,
  SMSSTOREITEM* psmssiMessage,
  BYTE* pbBuffer,
  DWORD dwBufferSize,
  BYTE* pbProviderSpecificBuffer,
  DWORD dwProviderSpecificBufferSize,
  SMS_MANAGER_GET_NEXT_MESSAGE smsmgnmGetNextMessageFunction,
  DWORD* pdwBytesRead
);

Parameters

  • smsmcCookie
    [in] Value passed to the function specified in smsmgnmGetNextMessageFunction.
  • psmssiMessage
    [in] Pointer to a SMSSTOREITEM structure. This structure contains the first message of a multi-part message and is used to determine the length of the entire message.
  • pbBuffer
    [out] Buffer that stores the body of the message.
  • dwBufferSize
    [in] Size of the message body buffer, in bytes.
  • pbProviderSpecificBuffer
    [out] Buffer to store provider-specific data. Provider-specific data is defined as any data in addition to the message body stored in pbBuffer.
  • dwProviderSpecificBufferSize
    [in] Size of the provider-specific buffer, in bytes.
  • smsmgnmGetNextMessageFunction
    [in] Function pointer to the SMSManagerGetNextMessageFunction. This function is implemented by the Short Message Service (SMS) router and is responsible for retrieving the next fragment of a multi-part message.
  • pdwBytesRead
    [out] Buffer that stores the number of bytes read and stored in pbBuffer.

Return Value

Returns a standard HRESULT error code.

Requirements

Header Developer Implemented
Library Developer Implemented
Windows Embedded CE Windows CE .NET 4.2 and later

See Also

Reference

Short Message Service Provider Functions
Short Message Service Provider Reference
SMSSTOREITEM

Concepts

Short Message Service Providers