windows-nt/Source/XPSP1/NT/shell/lib/stock.h

65 lines
1.5 KiB
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
//
// stock.h: shell\lib precompiled header file
//
#ifndef __STOCK_H__
#define __STOCK_H__
#ifndef STRICT
#define STRICT
#endif
//
// NT uses DBG=1 for its debug builds, but the Win95 shell uses
// DEBUG. Do the appropriate mapping here.
//
#if DBG
#define DEBUG 1
#endif
#define _SHLWAPI_ // Make sure we don't get declspec(dllimport) for these
#define _SHELL32_ // otherwise we get errors from the linker for the delayload
#define _OLE32_ // stubs
#include <windows.h>
#include <oleauto.h>
#include <exdisp.h>
#include <shlwapi.h>
#include <shlwapip.h>
#include <commctrl.h>
#include <shlobj.h>
#include <debug.h>
#include <port32.h>
#include <ccstock.h>
#include <shsemip.h> // for _ILNext
STDAPI_(LPITEMIDLIST) SafeILClone(LPCITEMIDLIST pidl);
#define ILClone SafeILClone
// Some files are compiled twice: once for unicode and once for ansi.
// There are some functions which do not want to be declared twice
// (the ones which don't use string parameters). Otherwise we'd get
// duplicate redefinitions.
//
// These are wrapped with #ifdef DECLARE_ONCE.
#ifdef UNICODE
#define DECLARE_ONCE
#else
#undef DECLARE_ONCE
#endif
// Note that CharNext is not supported on win95. Normally we would
// include w95wraps.h, but comctl does not link to shlwapi and
// we don't want to add this dependency.
#ifdef UNICODE
// Note that this will still break if we ever go back to non-unicode
__inline LPWSTR CharNextWrapW_(LPWSTR psz) {return ++psz;}
#undef CharNext
#define CharNext CharNextWrapW_
#endif
#endif // __STOCK_H__