This documentation is archived and is not being maintained.

GetHistoryFileDirectory Function

Retrieves the path of the application history directory.

HRESULT GetHistoryFileDirectory (
    [in]      LPWSTR      wzDir,
    [in,out]  LPCWSTR  *pdwsize,


[out] A buffer to hold the path to the application history directory.


[in, out] The length of the buffer.

This method returns standard COM error codes, as defined in the WinError.h file in addition to the following values.

Return code



The method completed successfully.


wzDir or pdwSize is null, or the version string is incorrect.

On successful completion, the pdwSize argument is set to the length of the path string.

Platforms: See .NET Framework System Requirements.

Header: Fusion.h

Library: Fusion.dll and Mscorwks.dll. Use Fusion.dll instead of Mscorwks.dll to ensure that you target the correct version of the .NET Framework.

.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1