This topic has not yet been rated - Rate this topic

PeerGroupGetStatus function

The PeerGroupGetStatus function retrieves the current status of a group.

Syntax


HRESULT WINAPI PeerGroupGetStatus(
  _In_   HGROUP hGroup,
  _Out_  DWORD *pdwStatus
);

Parameters

hGroup [in]

Handle to a peer group whose status is returned. This handle is returned by the PeerGroupCreate, PeerGroupOpen, or PeerGroupJoin function. This parameter is required.

pdwStatus [out]

Pointer to a set of PEER_GROUP_STATUS flags that describe the status of a peer group.

Return value

Returns S_OK if the operation succeeds. Otherwise, the function returns one of the following values.

Return codeDescription
E_INVALIDARG

One or more of the parameters is invalid.

E_OUTOFMEMORY

There is not enough memory available to complete an operation.

PEER_E_INVALID_GROUP

The handle to a group is invalid.

 

Cryptography-specific errors can be returned from the Microsoft RSA Base Provider. These errors are prefixed with CRYPT_* and defined in Winerror.h.

Requirements

Minimum supported client

Windows XP with SP2 [desktop apps only]

Minimum supported server

None supported [desktop apps only]

Version

Windows XP with SP1 with the Advanced Networking Pack forWindows XP

Header

P2P.h

Library

P2P.lib

DLL

P2P.dll

See also

PEER_GROUP_STATUS
PeerGroupCreate
PeerGroupJoin
PeerGroupOpen

 

 

Send comments about this topic to Microsoft

Build date: 10/26/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.