Skip to content

Latest commit

 

History

History
48 lines (26 loc) · 1.97 KB

passing-null-as-the-argument-of-windows-installer-functions.md

File metadata and controls

48 lines (26 loc) · 1.97 KB
description ms.assetid title ms.topic ms.date
Windows Installer functions that return data in a user provided–memory location should not be called with null as the value for the pointer.
f566c4a4-b90c-4d73-9d7f-f5b836630636
Passing null to Windows Installer Functions
article
05/31/2018

Passing null as the Argument of Windows Installer Functions

Windows Installer functions that return data in a user provided–memory location should not be called with null as the value for the pointer. These functions return a string or return data as integer pointers, but return inconsistent values when passing null as the value for the output argument.

Do not pass Null as the value of the output argument for any of the following functions:

MsiGetProperty

MsiRecordGetString

MsiFormatRecord

MsiGetSourcePath

MsiGetTargetPath

MsiGetFeatureState

MsiViewGetError

MsiSummaryInfoGetProperty

MsiEvaluateCondition

MsiGetFeatureCost

MsiGetFeatureState

MsiGetComponentState

MsiGetFeatureCost

MsiGetFeatureValidStates