fix(native): jump list IObjectArray/IObjectCollection are in Shell::Common
Repairs the CI Windows compile (first build to reach the Rust after the web/ case-collision failures cleared): these two COM interfaces live in windows::Win32::UI::Shell::Common (feature Win32_UI_Shell_Common), not System::Com nor Shell. Added the feature; corrected the import. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -56,6 +56,7 @@ windows = { version = "0.61", features = [
|
|||||||
"Win32_System_Power", # P5-46 no-sleep
|
"Win32_System_Power", # P5-46 no-sleep
|
||||||
"Win32_System_WinRT", # P5-43 SMTC interop
|
"Win32_System_WinRT", # P5-43 SMTC interop
|
||||||
"Win32_UI_Shell",
|
"Win32_UI_Shell",
|
||||||
|
"Win32_UI_Shell_Common", # P5-36 jump list (IObjectArray/IObjectCollection)
|
||||||
"Win32_UI_Shell_PropertiesSystem", # P5-36 jump list (IPropertyStore/PKEY_Title)
|
"Win32_UI_Shell_PropertiesSystem", # P5-36 jump list (IPropertyStore/PKEY_Title)
|
||||||
"Win32_UI_WindowsAndMessaging",
|
"Win32_UI_WindowsAndMessaging",
|
||||||
] }
|
] }
|
||||||
|
|||||||
@@ -46,11 +46,13 @@ pub fn set_jump_list(app: AppHandle, items: Vec<JumpItem>) -> Result<(), String>
|
|||||||
Win32::{
|
Win32::{
|
||||||
Storage::EnhancedStorage::PKEY_Title,
|
Storage::EnhancedStorage::PKEY_Title,
|
||||||
System::Com::{
|
System::Com::{
|
||||||
CoCreateInstance, CoInitializeEx, CoUninitialize, IObjectArray,
|
CoCreateInstance, CoInitializeEx, CoUninitialize,
|
||||||
IObjectCollection, StructuredStorage::PROPVARIANT, CLSCTX_INPROC_SERVER,
|
StructuredStorage::PROPVARIANT, CLSCTX_INPROC_SERVER, COINIT_APARTMENTTHREADED,
|
||||||
COINIT_APARTMENTTHREADED,
|
|
||||||
},
|
},
|
||||||
UI::Shell::{
|
UI::Shell::{
|
||||||
|
// IObjectArray/IObjectCollection live in Shell::Common
|
||||||
|
// (feature Win32_UI_Shell_Common), NOT Shell or System::Com.
|
||||||
|
Common::{IObjectArray, IObjectCollection},
|
||||||
DestinationList, EnumerableObjectCollection, ICustomDestinationList,
|
DestinationList, EnumerableObjectCollection, ICustomDestinationList,
|
||||||
IShellLinkW, PropertiesSystem::IPropertyStore, ShellLink,
|
IShellLinkW, PropertiesSystem::IPropertyStore, ShellLink,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user