SHCreateItemFromParsingName function Null safety shell32

int SHCreateItemFromParsingName(
  1. Pointer<Utf16> pszPath,
  2. Pointer<NativeType> pbc,
  3. Pointer<GUID> riid,
  4. Pointer<Pointer<NativeType>> ppv
)

Creates and initializes a Shell item object from a parsing name.

SHSTDAPI SHCreateItemFromParsingName(
  PCWSTR   pszPath,
  IBindCtx *pbc,
  REFIID   riid,
  void     **ppv
);

Implementation

int SHCreateItemFromParsingName(Pointer<Utf16> pszPath, Pointer pbc,
    Pointer<GUID> riid, Pointer<Pointer> ppv) {
  final _SHCreateItemFromParsingName = _shell32.lookupFunction<
      Int32 Function(Pointer<Utf16> pszPath, Pointer pbc, Pointer<GUID> riid,
          Pointer<Pointer> ppv),
      int Function(Pointer<Utf16> pszPath, Pointer pbc, Pointer<GUID> riid,
          Pointer<Pointer> ppv)>('SHCreateItemFromParsingName');
  return _SHCreateItemFromParsingName(pszPath, pbc, riid, ppv);
}