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


Last modified: February 24, 2013

Applies to: Outlook

Initiates the unlocking procedure for a Personal Folders (.pst) file.

HRESULT RegisterTrustedPSTOverrideHandler (
  LPCWSTR pwzDllPath, 
  LPVOID pvClientData


[in] A pointer to the path of a third-party dynamic-link library (DLL).


[in] A pointer to client data, which will be passed by the PST provider into subsequent calls to the DLL’s HrTrustedPSTOverrideHandlerCallback function. This client data may be used by the DLL to assist in verifying whether the PST should be unlocked.


The function call was successful.

The DLL specified by the wzDllPath parameter must be signed using a digital certificate. The DLL must also export a function with the following signature.

extern "C" HRESULT __cdecl HrTrustedPSTOverrideHandlerCallback(IMsgStore *pmstore, IUnknown *pOverride, LPVOID pvClientData)

This function will be called with a pointer to the IMsgStore object for the PST, a pointer to an IUnknown object that implements the IPSTOVERRIDE1 interface, and a pointer to the data originally supplied through pvClientData.

For more information see How to implement a PST override handler to bypass the PSTDisableGrow policy in Outlook 2007.

© 2015 Microsoft