次の方法で共有


IGameExplorer2::UninstallGame Method

The UninstallGame interface removes the supplied instance of the game from the system.

Syntax

virtual HRESULT UninstallGame(
         LPCWSTR binaryGDFPath
)

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.

Return Value

Returns S_OK on success. Returns E_ACCESSDENIED if the game is blocked by parental controls. Returns S_FALSE if the GDF is not found at the supplied location.

Remarks

Once called, the system internally calls IGameExplorer::VerifyAccess. If the call to UninstallGame succeeds it proceeds to internally call IGameExplorer::RemoveGame to make the requested changes, and then removes all tasks currently registered to the game instance, along with the Start Menu shortcut.

Requirements

Header: Declared in gameux.h.

See Also

IGameExplorer2::InstallGame
IGameExplorer2