IDatabase::ChangeStreamLock method

[ChangeStreamLock is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

Will change the access type for the specified stream.

Syntax

HRESULT ChangeStreamLock(
  [in] IStream    *pStream,
  [in] ACCESSTYPE tyAccessNew
);

Parameters

pStream [in]

Type: IStream*

The stream to change the access type on.

tyAccessNew [in]

Type: ACCESSTYPE

The new access type to request.

Return value

Type: HRESULT

Use the SUCCEEDED macro to determine whether the operation succeeded.

Return code Description
DB_E_LOCKEDFORREAD
Read access is held by more than one reader.

Requirements

Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Product
Outlook Express 6.0
IDL
Directdb.idl
DLL
Directdb.dll (version 6.0 or later)