Skip to content

Commit 17850e9

Browse files
ben-wallisretep998
andauthored
Added SHCreateItemFromParsingName extern method to shobjidl_core.rs (#820)
Co-authored-by: Peter Atashian <retep998@gmail.com>
1 parent fbc0770 commit 17850e9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/um/shobjidl_core.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use um::propkeydef::REFPROPERTYKEY;
1414
use um::propsys::GETPROPERTYSTOREFLAGS;
1515
use um::shtypes::{PCIDLIST_ABSOLUTE, PIDLIST_ABSOLUTE};
1616
use um::unknwnbase::{IUnknown, IUnknownVtbl};
17-
use um::winnt::{HRESULT, LPCSTR, LPCWSTR, LPSTR, LPWSTR, ULONGLONG, WCHAR};
17+
use um::winnt::{HRESULT, LPCSTR, LPCWSTR, LPSTR, LPWSTR, PCWSTR, ULONGLONG, WCHAR};
1818
DEFINE_GUID!{CLSID_DesktopWallpaper,
1919
0xc2cf3110, 0x460e, 0x4fc1, 0xb9, 0xd0, 0x8a, 0x1c, 0x0c, 0x9c, 0xc4, 0xbd}
2020
DEFINE_GUID!{CLSID_TaskbarList,
@@ -566,3 +566,11 @@ RIDL!{#[uuid(0x45ba127d, 0x10a8, 0x46ea, 0x8a, 0xb7, 0x56, 0xea, 0x90, 0x78, 0x9
566566
class ApplicationActivationManager;}
567567
RIDL!{#[uuid(0x958a6fb5, 0xdcb2, 0x4faf, 0xaa, 0xfd, 0x7f, 0xb0, 0x54, 0xad, 0x1a, 0x3b)]
568568
class ApplicationDesignModeSettings;}
569+
extern "system" {
570+
pub fn SHCreateItemFromParsingName(
571+
pszPath: PCWSTR,
572+
pbc: *mut IBindCtx,
573+
riid: REFIID,
574+
ppv: *mut *mut c_void
575+
) -> HRESULT;
576+
}

0 commit comments

Comments
 (0)