OnMDBStartUp Method
Collapse the table of content
Expand the table of content

OnMDBStartUp Method

Exchange Server 2003

OnMDBStartUp Method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Called on an event sink whenever a store starts functioning.

Applies To

Type Library

EXOLEDB Type Library

DLL Implemented In



        [Visual Basic]Function OnMDBStartUp
    bstrMDBGuid As String,     bstrMDBName As String,     lFlags As LONG

        [C++]HRESULT OnMDBStartUp
    BSTR bstrMDBGuid,
    BSTR bstrMDBName,
    LONG lFlags


String containing the globally unique identifier (GUID) of the message database (MDB) being started.
String containing the name of the MDB being started.

The following (bitwise AND) flags can give you further information about system events:

Decimal Value C++ Enum Equivalent Meaning
64 EVT_INITNEW This flag is set at the first firing of the event. (Useful for initialization purposes. It is set only once during the lifetime of a created event sink.)

Return Value

Returns S_OK if successful, or an error value otherwise.

Registration Properties

To register for this event, you need to set the registration item's EventMethod Field to "OnMDBStartUp" (C++ constant = EVT_ON_MDB_STARTUP). This event supports the following properties of Event Registration Items:

Enabled Field

EventMethod Field

SinkClass Field


The OnMDBStartUp event is called asynchronously whenever an MDB is started.

© 2015 Microsoft