ciderpress/util/Pidl.h
Andy McFadden 63b9996009 Normalize indentation and EOL
This updates all source files to use spaces instead of tabs for
indentation.  It also normalizes the end-of-line markers to be
Windows-style CRLF, and ensures that all files end with EOL.

No substantive changes were made; "diff -w" is empty.
2014-11-03 16:26:53 -08:00

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__*/