windows-nt/Source/XPSP1/NT/shell/ext/pstore/utility.h

84 lines
983 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
#ifndef UTILITY_H
#define UTILITY_H
#define ResultFromDWORD(dw) ResultFromScode(MAKE_SCODE(SEVERITY_SUCCESS, 0, dw))
//
// pidl utility functions
//
LPCITEMIDLIST
SearchPidlByType(
LPCITEMIDLIST pidl,
DWORD dwPidlType
);
DWORD
GetLastPidlType(
LPCITEMIDLIST pidl
);
PST_KEY
GetLastPidlKeyType(
LPCITEMIDLIST pidl
);
GUID *
GetLastPidlGuid(
LPCITEMIDLIST pidl
);
LPCWSTR
GetLastPidlText(
LPCITEMIDLIST pidl
);
LPCWSTR
GetPidlText(
LPCITEMIDLIST pidl
);
GUID *
GetPidlGuid(
LPCITEMIDLIST pidl
);
DWORD
GetPidlType(
LPCITEMIDLIST pidl
);
PST_KEY
GetPidlKeyType(
LPCITEMIDLIST pidl
);
LPCITEMIDLIST
GetPidlNextItem(
LPCITEMIDLIST
);
UINT
GetPidlSize(
LPCITEMIDLIST
);
LPITEMIDLIST
CopyPidl(
LPMALLOC,
LPCITEMIDLIST
);
LPITEMIDLIST
CopyCatPidl(
LPCITEMIDLIST pidl1,
LPCITEMIDLIST pidl2
);
VOID
FreePidl(
LPITEMIDLIST pidl
);
#endif // UTILITY_H