Microsoft DirectX 8.1 (C++)

IGuideStore::Open

This topic applies to Windows XP Home Edition and Windows XP Professional only.

The Open method opens the Guide Store database using the specified name.

Syntax

HRESULT Open(
  BSTR  bstrName
);

Parameters

bstrName

[in]  Specifies the name of the Guide Store database. If this is an empty string, the default database, as specified in the registry, is opened.

Return Values

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK The method succeeded.
E_FAIL The database cannot be opened.

Remarks

The registry key for the default database is HKEY_LOCAL_MACHINE/Software/Microsoft/GuideStore. If this key does not exist, the default media directory is searched for Guidestore.mgs. If a database is not found, one is created.

See Also