mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-04-15 05:08:31 +10:00
* Fix stdafx include * Fix basic handling of "Games" folder on Windows10 RS4 (#10) This does the following: - Sets the default state to hidden - Skips the Games folder when searching This does not: - Hide the dead menu entry. I do not currently know how to actively change the user preference setting to forcefully hide it. * Add basic Visual Studio gitignore * Add specific entries to gitignore * Do not set default menu to Win7 on RS4 (#10) * Rename "PC Settings" to "Settings" (#12) * Create distinction between modern and legacy settings in search results * Add more build artifacts to gitignore * Add default paths for toolset and build all languages * Fix several memsize, memtype and nullpointer issues * create trunk branch containing all changes * set fallback and next version to 4.3.2, set resource fallback value to allow loading in IDE * add generated en-US.dll to gitignore * Don't echo script contents, add disabled "git clean -dfx" to build fresh * Initial re-branding work (#21) * Create copy of __MakeFinal to build all languages (Use this file when releasing new versions) * Move the registry key IvoSoft->Passionate-Coder (#21) * Change company/mfg name IvoSoft->Passionate-Coder (#21) * Update some leftover copyright dates (#21) * Fix accidental copy-paste breaking MakeFinal scripts * Fix invalid company name for Wix and change registry keys to match the new string (#21) * Update more copyright and legal text (#21) * Update RTF files format (Wordpad generated those) (#21) * update license text in RTF files (#21) We lost the blue link text in the installer page. Will have to manually re-color all the links later.
52 lines
3.0 KiB
C
52 lines
3.0 KiB
C
// Classic Shell (c) 2009-2017, Ivo Beltchev
|
|
// Classic Start (c) 2017-2018, The Passionate-Coder Team
|
|
// Confidential information of Ivo Beltchev. Not for disclosure or distribution without prior written consent from the author
|
|
|
|
#pragma once
|
|
|
|
//#define TRACK_GDI_RESOURCES
|
|
#ifndef _DEBUG
|
|
#undef TRACK_GDI_RESOURCES
|
|
#endif
|
|
|
|
#ifdef TRACK_GDI_RESOURCES
|
|
|
|
#undef CreateFont
|
|
#undef CreateFontIndirect
|
|
#undef LoadImage
|
|
|
|
#define CreateCompatibleDC(hdc) TrackCreateCompatibleDC(hdc,__FILE__,__LINE__)
|
|
#define CreateFont(cHeight,cWidth,cEscapement,cOrientation,cWeight,bItalic,bUnderline,bStrikeOut,iCharSet,iOutPrecision,iClipPrecision,iQuality,iPitchAndFamily,pszFaceName) TrackCreateFont(cHeight,cWidth,cEscapement,cOrientation,cWeight,bItalic,bUnderline,bStrikeOut,iCharSet,iOutPrecision,iClipPrecision,iQuality,iPitchAndFamily,pszFaceName,__FILE__,__LINE__)
|
|
#define CreateFontIndirect(lplf) TrackCreateFontIndirect(lplf,__FILE__,__LINE__)
|
|
#define LoadImage(hInst,name,type,cx,cy,fuLoad) TrackLoadImage(hInst,name,type,cx,cy,fuLoad,__FILE__,__LINE__)
|
|
#define CreateDIBSection(hdc,lpbmi,usage,ppvBits,hSection,offset) TrackCreateDIBSection(hdc,lpbmi,usage,ppvBits,hSection,offset,__FILE__,__LINE__)
|
|
#define CreateBitmap(nWidth,nHeight,nPlanes,nBitCount,lpBits) TrackCreateBitmap(nWidth,nHeight,nPlanes,nBitCount,lpBits,__FILE__,__LINE__)
|
|
#define CreateCompatibleBitmap(hdc,cx,cy) TrackCreateCompatibleBitmap(hdc,cx,cy,__FILE__,__LINE__)
|
|
#define AddTrackedObject(obj) TrackAddTrackedObject(obj,__FILE__,__LINE__)
|
|
#define AddTrackedIcon(hIcon) TrackAddTrackedIcon(hIcon,__FILE__,__LINE__)
|
|
|
|
#define DeleteDC(hdc) TrackDeleteDC(hdc)
|
|
#define DeleteObject(obj) TrackDeleteObject(obj)
|
|
#define DestroyIcon(hIcon) TrackDestroyIcon(hIcon)
|
|
|
|
HDC TrackCreateCompatibleDC( HDC hdc, const char *file, int line );
|
|
HFONT TrackCreateFont( int cHeight, int cWidth, int cEscapement, int cOrientation, int cWeight, DWORD bItalic, DWORD bUnderline, DWORD bStrikeOut, DWORD iCharSet, DWORD iOutPrecision, DWORD iClipPrecision, DWORD iQuality, DWORD iPitchAndFamily, LPCWSTR pszFaceName, const char *file, int line );
|
|
HFONT TrackCreateFontIndirect( const LOGFONT *lplf, const char *file, int line );
|
|
HANDLE TrackLoadImage( HINSTANCE hInst, LPCWSTR name, UINT type, int cx, int cy, UINT fuLoad, const char *file, int line );
|
|
HBITMAP TrackCreateDIBSection( HDC hdc, CONST BITMAPINFO *lpbmi, UINT usage, VOID **ppvBits, HANDLE hSection, DWORD offset, const char *file, int line );
|
|
HBITMAP TrackCreateBitmap( int nWidth, int nHeight, UINT nPlanes, UINT nBitCount, CONST VOID *lpBits, const char *file, int line );
|
|
HBITMAP TrackCreateCompatibleBitmap( HDC hdc, int cx, int cy, const char *file, int line );
|
|
void TrackAddTrackedObject( HGDIOBJ obj, const char *file, int line );
|
|
void TrackAddTrackedIcon( HICON hIcon, const char *file, int line );
|
|
|
|
BOOL TrackDeleteDC( HDC hdc );
|
|
BOOL TrackDeleteObject( HGDIOBJ obj );
|
|
BOOL TrackDestroyIcon( HICON hIcon );
|
|
|
|
void DumpResourceLeaks( void );
|
|
|
|
#else
|
|
#define AddTrackedObject(obj)
|
|
#define AddTrackedIcon(hIcon)
|
|
#endif
|