Share via


IGameExplorer2::CheckAccess Method

The CheckAccess interface checks if the user has permission to launch the title.

Syntax

virtual HRESULT CheckAccess(
         LPCWSTR binaryGDFPath,
         BOOL *pHasAccess
)

Parameters

  • binaryGDFPath
    [in] String that contains the fully qualified path of the binary that contains the game definition file (GDF). The GDF must be present in the default resource location.
  • pHasAccess
    [out] Boolean indicating whether the title has permission to run for the launching user.

Return Value

Returns S_OK on success. Returns standard error codes otherwise.

Remarks

This call replaces the IGameExplorer::VerifyAccess call. It is only required to be called by a launching title, not by an installer.

Requirements

Header: Declared in gameux.h.

See Also

IGameExplorer2