IPortableDeviceValues::SetKeyValue method
The SetKeyValue method adds a new REFPROPERTYKEY value (type VT_UNKNOWN) or overwrites an existing one.
Syntax
HRESULT SetKeyValue(
[in] REFPROPERTYKEY key,
[in] REFPROPERTYKEY Value
);
Parameters
-
key [in]
-
A REFPROPERTYKEY that specifies the item to create or overwrite.
-
Value [in]
-
A REFPROPERTYKEY that specifies the new value.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
---|---|
|
The method succeeded. |
Remarks
If an existing value has the same key that is specified by the key parameter, it overwrites the existing value without any warning. The existing key memory is released appropriately.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|
See also
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기