mirror of
https://github.com/fadden/ciderpress.git
synced 2024-11-26 17:49:21 +00:00
35 lines
1.2 KiB
C++
35 lines
1.2 KiB
C++
/*
|
|
* CiderPress
|
|
* Copyright (C) 2007 by faddenSoft, LLC. All Rights Reserved.
|
|
* See the file LICENSE for distribution terms.
|
|
*/
|
|
/*
|
|
* A collection of functions for manipulating Pointers to ID Lists (PIDLs).
|
|
*/
|
|
#ifndef __PIDL__
|
|
#define __PIDL__
|
|
|
|
/*
|
|
* All functions are static; the class is more about namespace protection than
|
|
* data encapsulation.
|
|
*/
|
|
class Pidl {
|
|
public:
|
|
// Functions that deal with PIDLs
|
|
static LPITEMIDLIST ConcatPidls(LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2);
|
|
static LPITEMIDLIST GetFullyQualPidl(LPSHELLFOLDER lpsf, LPITEMIDLIST lpi);
|
|
static LPITEMIDLIST CopyITEMID(LPMALLOC lpMalloc, LPITEMIDLIST lpi);
|
|
static BOOL GetName(LPSHELLFOLDER lpsf, LPITEMIDLIST lpi, DWORD dwFlags,
|
|
LPSTR lpFriendlyName);
|
|
static LPITEMIDLIST CreatePidl(UINT cbSize);
|
|
static UINT GetSize(LPCITEMIDLIST pidl);
|
|
static LPITEMIDLIST Next(LPCITEMIDLIST pidl);
|
|
static BOOL GetPath(LPCITEMIDLIST pidl, CString* pPath);
|
|
|
|
// Utility Functions
|
|
//static BOOL DoTheMenuThing(HWND hwnd, LPSHELLFOLDER lpsfParent,
|
|
// LPITEMIDLIST lpi, LPPOINT lppt);
|
|
static int GetItemIcon(LPITEMIDLIST lpi, UINT uFlags);
|
|
};
|
|
|
|
#endif /*__PIDL__*/ |