IStoreNamespace::Initialize method

Initializes the namespace object and, if necessary, Windows Mail (formerly Outlook Express).

Syntax

HRESULT Initialize(
  [in] HWND  hwndOwner,
  [in] DWORD dwReserved
);

Parameters

hwndOwner [in]

Type: HWND

Handle to a window with which this namespace will be associated.

dwReserved [in]

Type: DWORD

Specifies how the namespace will be initialized. Must be 0 or 1.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

If the value of dwReserved is 0, the namespace will initialize using data associated with the default user identity. If the value of dwReserved is 1, the user will be asked to select a user identity to initialize.

Certain methods of the IStoreNamespace interface may be responsible for displaying dialogs to the user. Providing a valid HWND value in the hwndOwner argument will ensure proper ordering.

Requirements

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