mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-04-12 18:07:24 +10:00
35 lines
930 B
C
35 lines
930 B
C
// Classic Shell (c) 2009-2016, Ivo Beltchev
|
|
// Confidential information of Ivo Beltchev. Not for disclosure or distribution without prior written consent from the author
|
|
|
|
#pragma once
|
|
|
|
struct StdMenuItem;
|
|
|
|
const StdMenuItem *ParseCustomMenu( unsigned int &rootSettings );
|
|
|
|
struct CStdCommand7
|
|
{
|
|
enum
|
|
{
|
|
ITEM_SINGLE=1, // this item never has sub-menu
|
|
ITEM_FOLDER=2, // this item always has sub-menu
|
|
ITEM_COMPUTER=4, // this item can be expanded only one level
|
|
};
|
|
const wchar_t *command;
|
|
int nameID;
|
|
const wchar_t *label;
|
|
const wchar_t *tip;
|
|
const wchar_t *icon;
|
|
const KNOWNFOLDERID *knownFolder;
|
|
const wchar_t *knownLink;
|
|
unsigned int settings;
|
|
unsigned int flags;
|
|
CString displayName; // for the settings UI
|
|
|
|
bool operator<( const CStdCommand7 &command ) { return displayName<command.displayName; }
|
|
};
|
|
|
|
extern CStdCommand7 g_StdCommands7[];
|
|
extern const int g_StdCommands7Count;
|
|
void InitStdCommands7( void );
|