FGetComponentPath

Applies to: Office 2010 | Outlook 2010 | Visual Studio

Returns the path to the private Mapi32.dll.

BOOL FGetComponentPath(
  LPCSTR szComponent,
  LPSTR szQualifier,
  LPSTR szDllPath,
  DWORD cchBufferSize,
  BOOL fInstall
);

Parameters

  • szComponent
    [in] The MSIComponentID reg key described in Mapi32.dll Stub Registry Settings.

  • szQualifier
    [in] The MSIApplicationLCID or MSIOfficeLCID subkey described in How to: Choose a Specific Version of MAPI to Load. Callers can pass null if there is no qualifier.

  • szDllPath
    [in] The path to the private Mapi32.dll, which has full MAPI functionality (the same exports as the Mapi32.dll).

  • cchBufferSize
    [in] The size of szDllPath, in characters.

  • fInstall
    [in] Tells MAPI to install the private Mapi32.dll component if it is absent.

Return Value

  • true
    The path was found.

  • false
    The path was not found.

Remarks

Use the FGetComponentPath function when you need to get the path to the private Mapi32.dll.

See Also

Concepts

How to: Choose a Specific Version of MAPI to Load

Other Resources

Mapi32.dll Stub Registry Settings