Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.


This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Returns the path to the private Mapi32.dll.

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


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


[in] The MSIApplicationLCID or MSIOfficeLCID subkey described in Setting Up the MSI Keys for Your MAPI DLL. Callers can pass NULL if there is no qualifier.


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


[in, out] The size of szDllPath, in characters.


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


The path was found.


The path was not found.

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

© 2015 Microsoft