Skip to main content
Gets the lobby’s current policy for whether only the lobby owner can send invites to join the lobby.

Syntax

Parameters

lobby   PFLobbyHandle The handle of the lobby. restrictInvitesToLobbyOwner   bool*
output
The output value indicating whether the current policy only the lobby owner can send invites to join the lobby.

Return value

Type: HRESULT S_OK if the call succeeded or an error code otherwise. The human-readable form of the error code can be retrieved via PFMultiplayerGetErrorMessage().

Remarks

When true, only the lobby owner can send invites. When false, any member can send invites. Can only be true for client-owned lobbies.

If this lobby object was created by calling PFMultiplayerJoinLobby(), this method returns an error until PFMultiplayerStartProcessingLobbyStateChanges() provides a PFLobbyUpdatedStateChange with PFLobbyUpdatedStateChange::restrictInvitesToLobbyOwnerUpdated set to true. If joining the lobby succeeds, this field is guaranteed to be populated by the time PFMultiplayerStartProcessingLobbyStateChanges() provides a PFLobbyJoinLobbyCompletedStateChange.

If this lobby object was created by calling PFMultiplayerClaimServerLobby(), this method returns an error until PFMultiplayerStartProcessingLobbyStateChanges() provides a PFLobbyUpdatedStateChange with PFLobbyUpdatedStateChange::restrictInvitesToLobbyOwnerUpdated set to true. If claiming the lobby succeeds, this field is guaranteed to be populated by the time PFMultiplayerStartProcessingLobbyStateChanges() provides a PFLobbyClaimServerLobbyCompletedStateChange.

Requirements

Header: PFLobby.h

See also

PFLobby members
Last modified on August 10, 2026