Freigeben über


IPublisherManagement::Initialize (Windows CE 5.0)

Send Feedback

This method passes a pointer to the ISubscriber interface. The subscriber service calls this method. For more information about the subscriber service, see Publisher Characteristics.

HRESULT Initialize(ISubscriber* pSubscriber,BOOL* pbUseBuffering,DWORD* pdwBufSize);

Parameters

  • pSubscriber
    [in] Pointer to the ISubscriber interface.
  • pbUseBuffering
    [in] Pointer to a flag for buffering. If set to TRUE, the subscriber service buffers data on behalf of the publisher.
  • pdwBufSize
    [in] Pointer to the size of the buffer in bytes, if pbUseBuffering is set to TRUE.

Return Values

The following table shows the return values for this method.

Return value Description
S_OK The call was successfully completed.
E_POINTER The pointer to the ISubscriber interface is invalid.
E_XXX3 The buffer size is invalid. It is less than 0 or greater than XXX.
E_FAIL Unable to complete the call.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: CEPubSub.h (for development workstation), CEPubSubPS.h (for target device), CePubSub.idl.
Link Library: Rts.lib (for development workstation), PSPubSubCE.lib (for target device).

See Also

ISubscriber | Publisher Characteristics

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.