Shell32SHGetIDListFromObject(Object, IntPtr) Method
Retrieves the pointer to an item identifier list (PIDL) of an object.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Shell32.dll", ExactSpelling = true, SetLastError = true)]
public static HResult SHGetIDListFromObject(
Object iUnknown,
out IntPtr refPidl
)
<DllImportAttribute("Shell32.dll", ExactSpelling := true, SetLastError := true>]
Public Shared Function SHGetIDListFromObject (
iUnknown As Object,
<OutAttribute> ByRef refPidl As IntPtr
) As HResult
Dim iUnknown As Object
Dim refPidl As IntPtr
Dim returnValue As HResult
returnValue = Shell32.SHGetIDListFromObject(iUnknown,
refPidl)
public:
[DllImportAttribute(L"Shell32.dll", ExactSpelling = true, SetLastError = true)]
static HResult SHGetIDListFromObject(
Object^ iUnknown,
[OutAttribute] IntPtr% refPidl
)
[<DllImportAttribute("Shell32.dll", ExactSpelling = true, SetLastError = true)>]
static member SHGetIDListFromObject :
iUnknown : Object *
refPidl : IntPtr byref -> HResult
No code example is currently available or this language may not be supported.
- iUnknown Object
-
A pointer to the IUnknown of the object from which to get the PIDL.
- refPidl IntPtr
-
When this function returns, contains a pointer to the PIDL of the given object.
HResult
If this function succeeds, it returns
S_OK.
Otherwise, it returns an
HResult error code.