Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[IPropertyContainer::SetPropDw is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]
Sets the property value for a specified property ID.
Syntax
HRESULT SetPropDw(
[in] DWORD dwPropTag,
[in] DWORD dw
);
Parameters
-
dwPropTag [in]
-
Type: DWORD
Specifies a DWORD that contains the property ID.
-
dw [in]
-
Type: DWORD
Specifies a DWORD that contains the property value.
Return value
Type: HRESULT
Returns one of the following values.
| Return code | Description |
|---|---|
|
Indicates success. |
|
Indicates that dwPropTag specifies an invalid property type. |
|
Indicates that an invalid Boolean value was passed in. The value must be one or zero. |
|
Indicates that the value of dw is out of bounds. |
|
Indicates that dwPropTag specifies an invalid property ID. |
|
Indicates that dwPropTag specifies an invalid property ID or that it specifies an unsupported data type. |
Remarks
The value of dw can be NULL only for string and binary data types.
The IPropertyContainer::SetPropDw and IPropertyContainer::SetPropSz methods are simple helper functions that internally call the base IPropertyContainer::SetProp method to make setting properties easier when dealing with the most common data types (4 byte numbers and null-terminated strings).
Requirements
| Minimum supported client |
Windows XP [desktop apps only] |
| Minimum supported server |
Windows Server 2003 [desktop apps only] |
| Product |
Outlook Express 6.0 |
| Header |
|
| IDL |
|
| DLL |
|