PeerDistServerUnpublish

PeerDistServerUnpublish function

The PeerDistServerUnpublish function removes a publication created via PeerDistServerPublishStream.

Syntax


DWORD WINAPI PeerDistServerUnpublish(
  _In_ PEERDIST_INSTANCE_HANDLE hPeerDist,
       DWORD                    cbContentIdentifier,
  _In_ PBYTE                    pContentIdentifier[bcount(cbContentIdentifier)]
);

Parameters

hPeerDist [in]

A PEERDIST_INSTANCE_HANDLE returned by PeerDistStartup.

cbContentIdentifier

The length, in bytes, of the content identifier.

pContentIdentifier [in]

Pointer to a buffer that contains the content identifier.

Return value

If the function succeeds, the return value is ERROR_SUCCESS. Otherwise, the function may return one of the following values:

Return codeDescription
ERROR_INVALID_PARAMETER

One or more parameters are invalid.

ERROR_INVALID_HANDLE

The hPeerDist handle is invalid.

ERROR_ACCESS_DISABLED_BY_POLICY

The feature is disabled by Group Policy.

PEERDIST_ERROR_SERVICE_UNAVAILABLE

The service is unavailable.

 

Remarks

The PeerDistServerUnpublish function cancels all pending operations on unpublished content within the Peer Distribution session that is associated with the specified hPeerDist. The client is still required to close previously opened handles on that content with a call to PeerDistClientCloseContent.

A publication is accessible only to the User Account that originally published the content.

Requirements

Minimum supported client

Windows 7 Professional [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

PeerDist.h

Library

PeerDist.lib

DLL

PeerDist.dll

See also

PeerDistServerPublishStream

 

 

Community Additions

ADD
Show:
© 2016 Microsoft