Expand Minimize

DISMISSMODELESS

Last modified: July 23, 2011

Applies to: Outlook

Defines a callback function that MAPI calls when it has dismissed a modeless address book dialog box.

Header file:

Mapidefs.h

Defined function implemented by:

Client applications

Defined function called by:

MAPI

void (STDMETHODCALLTYPE DISMISSMODELESS)(
  ULONG_PTR ulUIParam,
  LPVOID lpvContext
);

ulUIParam

[in] An implementation-specific value typically used for passing user interface information to a function. For example, in Microsoft Windows this parameter is the parent window handle for the dialog box and is of type HWND, cast to a ULONG_PTR. A value of zero indicates there is no parent window.

lpvContext

[in] Pointer to an arbitrary value passed to the callback function when MAPI calls it. This value can represent an address of significance to the client application. Typically, for C++ code, lpvContext is a pointer to the address of a C++ object instance.

When the client application invokes a modeless address book dialog box, it includes in its Windows message loop a call to a function based on the ACCELERATEABSDI prototype, which checks for and processes accelerator keys. When the dialog box is closed, MAPI calls the DISMISSMODELESS based function so that the client application will stop calling the ACCELERATEABSDI based function.

Show:
© 2014 Microsoft