PUSHMSG (Compact 2013)

3/26/2014

This structure represents the message delivered from the push router client.

This message is delivered by the function PushRouter_GetMessage. The message is either a configuration request or a query.

Syntax

typedef struct tagPushMsg{
  DWORD cbSize;
  LPTSTR szHeaders;
  LPBYTE pbBody;
  DWORD cbBodyLength;
  DWORD dwSecurityRole;
  DWORD dwReserved1;
  DWORD dwReserved2;
} PUSHMSG, *LPPUSHMSG;

Members

  • cbSize
    The size, in bytes, of the message.
  • szHeaders
    Pointer to the RFC 822 headers.
  • pbBody
    Pointer to the body of the push message.
  • cbBodyLength
    The size, in bytes, of the body of the push message.
  • dwSecurityRole
    The security role(s) assigned to the message by the push router.
  • dwReserved1
    Reserved. Set to 0.
  • dwReserved2
    Reserved. Set to 0.

Remarks

Your application must initialize the value of cbSize to the size of the PUSHMSG structure before the application can pass the structure to the function PushRouter_GetMessage. The application uses the security role(s) (dwSecurityRole) to specify whether the message (configuration request or query) has the credentials required to execute.

Requirements

Header

pushclient.h

See Also

Reference

WAP Structures
PushRouter_FreeMessage
PushRouter_GetMessage