IMsmError::get_Path Method

Windows Installer

IMsmError::get_Path Method

The get_Path method retrieves the Path property of the Error object.

Syntax

C++HRESULT get_Path(
  [out]  BSTR *Path
);

Parameters

Path [out]

A pointer to a location in memory that is filled in with a BSTR value.

Return Value

The method can return one of the following values.

Value Meaning
E_INVALIDARG

Path is null.

E_OUTOFMEMORY

The system was unable to allocate memory for the string.

S_OK

The function succeeded.

 

Remarks

The client is responsible for freeing the resulting string using SysFreeString.

In Windows Installer versions 1.0 and 1.1 get_Path always returns the empty string. Future versions of the class may use this function to return the path to the file or directory that could not be created. This value is only valid for errors of type msmErrorFileCreate or msmErrorDirCreate. You can determine the type of error by calling IMsmError::get_Type.

Requirements

VersionMergemod.dll 1.0 or later
HeaderMergemod.h
DLLMergemod.dll
IIDIID_IMsmError is defined as 0ADDA828-2C26-11D2-AD65-00A0C9AF11A6

See Also

Merge Module Automation

Send comments about this topic to Microsoft

Build date: 8/13/2009

© 2009 Microsoft Corporation. All rights reserved.