PeerDistShutdown function

The PeerDistShutdown function releases resources allocated by a call to PeerDistStartup. Each handle returned by a PeerDistStartup call must be closed by a matching call to PeerDistShutdown

Syntax


DWORD WINAPI PeerDistShutdown(
  _In_  PEERDIST_INSTANCE_HANDLE hPeerDist
);

Parameters

hPeerDist [in]

A PEERDIST_INSTANCE_HANDLE returned by PeerDistStartup.

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_HANDLE

The hPeerDist handle is invalid.

 

Remarks

This function will remove all publications that were created with the specified hPeerDist handle. It is recommended that this function is called after all pending operations have completed, as PeerDistShutdown cancel all pending Peer Distribution client and server operations associated with the supplied PEERDIST_INSTANCE_HANDLE.

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

PeerDistStartup

 

 

Community Additions

ADD
Show:
© 2014 Microsoft