Skip to content

Latest commit

 

History

History
87 lines (66 loc) · 2.5 KB

nf-propsys-pspropertybag_writeshort.md

File metadata and controls

87 lines (66 loc) · 2.5 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:propsys.PSPropertyBag_WriteSHORT
PSPropertyBag_WriteSHORT function (propsys.h)
Sets the SHORT value of a property in a property bag.
PSPropertyBag_WriteSHORT
PSPropertyBag_WriteSHORT function [Windows Properties]
properties.PSPropertyBag_WriteSHORT
propsys/PSPropertyBag_WriteSHORT
shell.PSPropertyBag_WriteSHORT
shell_PSPropertyBag_WriteSHORT
properties\PSPropertyBag_WriteSHORT.htm
properties
9A8F0974-E7BE-4d66-8DBF-68744C0124A2
12/05/2018
PSPropertyBag_WriteSHORT, PSPropertyBag_WriteSHORT function [Windows Properties], properties.PSPropertyBag_WriteSHORT, propsys/PSPropertyBag_WriteSHORT, shell.PSPropertyBag_WriteSHORT, shell_PSPropertyBag_WriteSHORT
propsys.h
Windows
Windows 7 [desktop apps only]
Windows Server 2008 R2 [desktop apps only]
Propsys.lib
Propsys.dll (version 6.0 or later)
Windows
19H1
PSPropertyBag_WriteSHORT
propsys/PSPropertyBag_WriteSHORT
c++
APIRef
kbSyntax
DllExport
Propsys.dll
PSPropertyBag_WriteSHORT

PSPropertyBag_WriteSHORT function

-description

Sets the SHORT value of a property in a property bag.

-parameters

-param propBag [in]

Type: IPropertyBag*

A pointer to an IPropertyBag object that represents the property bag in which the property is stored.

-param propName [in]

Type: LPCWSTR

A null-terminated property name string.

-param value [in]

Type: SHORT

The SHORT value to which the property should be set.

-returns

Type: HRESULT

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

-remarks

The property bag property function API converts between window types and the VARIANT type that is used to express values in a property bag. Doing so eases property bag usage, simplifies applications, and avoids common coding errors.

-see-also

PSPropertyBag_ReadSHORT