Microsoft DirectX 8.1 (C++)

IGuideStore::BeginTrans

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

The BeginTrans method begins a database transaction. Use of transactions is optional.

Syntax

HRESULT BeginTrans();

Parameters

This method takes no parameters.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Remarks

During a transaction, all changes to the database are deferred until IGuideStore::CommitTrans is called, at which time changes are saved and the transaction ends. You can also end a transaction by calling IGuideStore::RollbackTrans, which cancels any pending changes.

See Also