mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
983 B
83 lines
983 B
#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
|