mirror of
https://github.com/reactos/reactos.git
synced 2025-02-21 16:04:57 +00:00
[SDK] Move HIDA helper functions to shellutils.h
This commit is contained in:
parent
2bbc94c6ac
commit
0c7b07dc89
4 changed files with 12 additions and 30 deletions
|
@ -38,16 +38,6 @@ HRESULT _CDataObject_CreateInstance(PCIDLIST_ABSOLUTE folder, UINT cidl, PCUITEM
|
|||
|
||||
HRESULT _GetCidlFromDataObject(IDataObject *pDataObject, CIDA** ppcida);
|
||||
|
||||
inline PCUIDLIST_ABSOLUTE HIDA_GetPIDLFolder(CIDA const* pida)
|
||||
{
|
||||
return (PCUIDLIST_ABSOLUTE)(((LPBYTE)pida) + (pida)->aoffset[0]);
|
||||
}
|
||||
|
||||
inline PCUIDLIST_RELATIVE HIDA_GetPIDLItem(CIDA const* pida, SIZE_T i)
|
||||
{
|
||||
return (PCUIDLIST_RELATIVE)(((LPBYTE)pida) + (pida)->aoffset[i + 1]);
|
||||
}
|
||||
|
||||
inline BOOL IsFontDotExt(LPCWSTR pchDotExt)
|
||||
{
|
||||
static const LPCWSTR array[] =
|
||||
|
|
|
@ -60,16 +60,6 @@ static void TestAdviseAndCanonical(PCIDLIST_ABSOLUTE pidlFolder, UINT cidl, PCUI
|
|||
}
|
||||
|
||||
|
||||
static inline PCUIDLIST_ABSOLUTE HIDA_GetPIDLFolder(CIDA const* pida)
|
||||
{
|
||||
return (PCUIDLIST_ABSOLUTE)(((LPBYTE)pida) + (pida)->aoffset[0]);
|
||||
}
|
||||
|
||||
static inline PCUIDLIST_RELATIVE HIDA_GetPIDLItem(CIDA const* pida, SIZE_T i)
|
||||
{
|
||||
return (PCUIDLIST_RELATIVE)(((LPBYTE)pida) + (pida)->aoffset[i + 1]);
|
||||
}
|
||||
|
||||
#define ok_wstri(x, y) \
|
||||
ok(wcsicmp(x, y) == 0, "Wrong string. Expected '%S', got '%S'\n", y, x)
|
||||
|
||||
|
|
|
@ -63,16 +63,6 @@ static void TestAdviseAndCanonical(PCIDLIST_ABSOLUTE pidlFolder, UINT cidl, PCUI
|
|||
}
|
||||
|
||||
|
||||
static inline PCUIDLIST_ABSOLUTE HIDA_GetPIDLFolder(CIDA const* pida)
|
||||
{
|
||||
return (PCUIDLIST_ABSOLUTE)(((LPBYTE)pida) + (pida)->aoffset[0]);
|
||||
}
|
||||
|
||||
static inline PCUIDLIST_RELATIVE HIDA_GetPIDLItem(CIDA const* pida, SIZE_T i)
|
||||
{
|
||||
return (PCUIDLIST_RELATIVE)(((LPBYTE)pida) + (pida)->aoffset[i + 1]);
|
||||
}
|
||||
|
||||
#define ok_wstri(x, y) \
|
||||
ok(wcsicmp(x, y) == 0, "Wrong string. Expected '%S', got '%S'\n", y, x)
|
||||
|
||||
|
|
|
@ -534,4 +534,16 @@ void DumpIdList(LPCITEMIDLIST pcidl)
|
|||
#define S_GREATERTHAN S_FALSE
|
||||
#define MAKE_COMPARE_HRESULT(x) ((x)>0 ? S_GREATERTHAN : ((x)<0 ? S_LESSTHAN : S_EQUAL))
|
||||
|
||||
|
||||
static inline PCUIDLIST_ABSOLUTE HIDA_GetPIDLFolder(CIDA const* pida)
|
||||
{
|
||||
return (PCUIDLIST_ABSOLUTE)(((LPBYTE)pida) + (pida)->aoffset[0]);
|
||||
}
|
||||
|
||||
static inline PCUIDLIST_RELATIVE HIDA_GetPIDLItem(CIDA const* pida, SIZE_T i)
|
||||
{
|
||||
return (PCUIDLIST_RELATIVE)(((LPBYTE)pida) + (pida)->aoffset[i + 1]);
|
||||
}
|
||||
|
||||
|
||||
#endif /* __ROS_SHELL_UTILS_H */
|
||||
|
|
Loading…
Reference in a new issue