mirror of
https://github.com/fadden/ciderpress.git
synced 2024-11-23 11:33:58 +00:00
63b9996009
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.
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__*/ |