29 , m_LogicalReadOnly(
FALSE)
30 , m_PreventViewCustomization(
FALSE)
31 , m_bToolBarVisible(
true)
156 console->SendMessage(
WM_CLOSE, 0, 0);
167 DPRINT1(
"No folder cache entry!\n");
181 mcs.hOwner = _AtlBaseModule.GetModuleInstance();
187 mcs.lParam = bMaximized || !hWndOld;
224 openas.
hInstance = _AtlBaseModule.GetModuleInstance();
225 openas.
lpstrFilter =
L"MSC Files (*.msc)\0*.msc\0All Files (*.*)\0*.*\0";
250 return OnFileSaveAs(wNotifyCode, wID, hWndCtl, bHandled);
279 saveas.
hInstance = _AtlBaseModule.GetModuleInstance();
280 saveas.
lpstrFilter =
L"MSC Files (*.msc)\0*.msc\0All Files (*.*)\0*.*\0";
370 mcs.hOwner = _AtlBaseModule.GetModuleInstance();
376 mcs.lParam = bMaximized || !hWndOld;
419 TitleString = AboutTitle;
421 TitleString += AppTitle;
435 child->SetTreeViewVisible(!
child->IsTreeViewVisible());
446 child->SetActionsPaneVisible(!
child->IsActionsPaneVisible());
513 DPRINT1(
"CacheEntry %p\n", snapin);
543 if (
entry->GuidString().CompareNoCase(pszGuid) == 0)
595 RECT rcClient, rcToolBar = {0, 0, 0, 0};
719 RecentFilesKey.
Close();
771 RecentFilesKey.
Close();
862 console->
SaveView(mscFile, pViewsNode);
static TBBUTTON TbButtons[]
static struct myctx * mcs
#define IDM_CONSOLE_SMALL
#define IDM_MDI_FIRSTCHILD
#define IDM_CONSOLE_LARGE
enum _DOCUMENT_MODE DOCUMENT_MODE
#define IDM_FILE_RECENT_SEP
#define IDM_TB_ACTIONS_PANE
#define IDM_TB_SCOPE_PANE
LONG Open(HKEY hKeyParent, LPCTSTR lpszKeyName, REGSAM samDesired=KEY_READ|KEY_WRITE) noexcept
LONG SetStringValue(LPCTSTR pszValueName, LPCTSTR pszValue, DWORD dwType=REG_SZ) noexcept
LONG QueryStringValue(LPCTSTR pszValueName, LPTSTR pszValue, ULONG *pnChars) noexcept
LONG Create(HKEY hKeyParent, LPCTSTR lpszKeyName, LPTSTR lpszClass=REG_NONE, DWORD dwOptions=REG_OPTION_NON_VOLATILE, REGSAM samDesired=KEY_READ|KEY_WRITE, LPSECURITY_ATTRIBUTES lpSecAttr=NULL, LPDWORD lpdwDisposition=NULL) noexcept
LONG EnumKey(DWORD iIndex, LPTSTR pszName, LPDWORD pnNameLength, FILETIME *pftLastWriteTime=NULL) noexcept
bool IsEmpty() const noexcept
PXSTR GetString() noexcept
void __cdecl Format(UINT nFormatID,...)
HWND Create(LPCTSTR lpstrWndClass, HWND hWndParent, _U_RECT rect=NULL, LPCTSTR szWindowName=NULL, DWORD dwStyle=0, DWORD dwExStyle=0, _U_MENUorID MenuOrID=0U, LPVOID lpCreateParam=NULL)
BOOL SetWindowPos(HWND hWndInsertAfter, int x, int y, int cx, int cy, UINT nFlags)
LRESULT SendMessage(UINT message, WPARAM wParam=0, LPARAM lParam=0)
BOOL ShowWindow(int nCmdShow)
BOOL Init(WNDPROC proc, void *pThis)
VOID SaveView(MscFile *mscFile, IXMLDOMElement *pParentElement)
static LPCWSTR GetWndClassName()
LRESULT OnFileRecent(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
void SetPreventViewCustomization(BOOL PreventCustomization)
CWndProcThunk m_FrameThunk
BOOL GetPreventViewCustomization()
LRESULT OnFileExit(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
LRESULT OnWindowsCascade(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
LRESULT OnDestroy(UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
void SetConsoleTitle(CAtlString consoleTitle)
CAtlString m_ConsoleTitle
HIMAGELIST m_hToolBarImageList
BOOL GetLogicalReadOnly()
static LRESULT CALLBACK XDefFrameProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
LPWSTR ProgramModeToString()
CAtlString * GetConsoleTitle()
int RegisterView(CConsoleWnd *pView)
VOID SetToolBarVisible(BOOL bVisible)
VOID AddToRecentFiles(const CAtlString &FileName)
int GetSnapinCacheCount()
CAtlList< CRecentFileEntry * > m_RecentFilesList
LRESULT OnFileAdd(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
LRESULT OnFileOptions(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
LRESULT OnWindowsNew(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
LRESULT OnCreate(UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
CSnapin * GetRootSnapin()
DWORD CreateNewFilename(PWSTR pBuffer, DWORD dwSize, DWORD Number)
LRESULT LoadMscFile(const CAtlString &FileName)
HMENU m_hMenuConsoleSmall
LRESULT OnFileSaveAs(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
DOCUMENT_MODE GetDocumentMode()
CSnapinCacheEntry * GetSnapinCacheEntry(int nIndex)
HIMAGELIST SnapinImageList()
void UnregisterView(CConsoleWnd *pView)
HIMAGELIST m_hSnapinImageList
LRESULT LoadSnapinCache()
CConsoleWnd * GetActiveChildInfo()
LRESULT OnHelpAboutMMC(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
DOCUMENT_MODE m_DocumentMode
void SetLogicalReadOnly(BOOL LogicalReadOnly)
VOID UpdateRecentFilesMenu()
LRESULT OnWindowsArrange(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
CToolbar< DWORD_PTR > m_ToolBar
BOOL m_PreventViewCustomization
CSimpleArray< CSnapinCacheEntry * > m_SnapinCache
LRESULT OnViewCustomize(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
CAtlList< CConsoleWnd * > m_ViewList
HMENU m_hMenuConsoleLarge
BOOL m_bStandardMenusVisible
LRESULT OnCloseChild(UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnWindowsTile(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
VOID SetStandardMenusVisible(BOOL bVisible)
LRESULT OnClose(UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnFileSave(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
LRESULT OnFileNew(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
BOOL AreStandardMenusVisible()
LRESULT OnToolbarScopePane(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
LRESULT OnFileOpen(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
LRESULT OnToolbarActionsPane(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
LRESULT OnSize(UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnMDIForward(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
LRESULT SaveMscFile(const CAtlString &FileName)
void SetDocumentMode(DOCUMENT_MODE DocumentMode)
CSnapinCacheEntry * GetSnapinCacheEntryByGuid(PWSTR pszGuid)
const CAtlString & DisplayName() const
const CAtlString & FileName() const
static CSnapinCacheEntry * Create(CRegKey &SnapinsKey, PWSTR guidString, HIMAGELIST hImageList)
const CAtlString & DisplayName() const
VOID SaveNode(MscFile *mscFile, IXMLDOMElement *pParentNode)
HRESULT CreateAndInitDOM()
HRESULT CreateAndAddTextNode(PCWSTR wszText, IXMLDOMNode *pParent)
HRESULT CreateElement(PCWSTR wszName, IXMLDOMElement **ppElement)
HRESULT SaveWindowPlacement(CWindow *pWindow, IXMLDOMElement *pParentNode)
HRESULT CreateAndAddAttributeNode(PCWSTR wszName, PCWSTR wszValue, IXMLDOMElement *pParent)
HRESULT AppendChildToParent(IXMLDOMNode *pChild, IXMLDOMNode *pParent=NULL)
HRESULT CreateAndAddPINode(PCWSTR wszTarget, PCWSTR wszData)
HRESULT CreateAndAddElementNode(PCWSTR wszName, IXMLDOMNode *pParent, IXMLDOMElement **ppElement=NULL)
#define OFN_OVERWRITEPROMPT
#define OFN_FILEMUSTEXIST
#define OFN_PATHMUSTEXIST
OPENFILENAMEA OPENFILENAME
HRESULT WINAPI DECLSPEC_HOTPATCH CoInitializeEx(void *reserved, DWORD model)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
BOOL WINAPI ImageList_Destroy(HIMAGELIST himl)
INT WINAPI ImageList_AddMasked(HIMAGELIST himl, HBITMAP hBitmap, COLORREF clrMask)
HIMAGELIST WINAPI ImageList_Create(INT cx, INT cy, UINT flags, INT cInitial, INT cGrow)
BOOL WINAPI GetOpenFileNameW(OPENFILENAMEW *ofn)
BOOL WINAPI GetSaveFileNameW(LPOPENFILENAMEW ofn)
GLuint GLuint GLsizei count
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_In_ GUID _In_ PVOID ValueData
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
#define MAKEINTRESOURCE(i)
@ COINIT_APARTMENTTHREADED
#define TB_BUTTONSTRUCTSIZE
BOOL WINAPI SetMenu(_In_ HWND, _In_opt_ HMENU)
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
#define MDIS_ALLCHILDSTYLES
#define WM_MDIICONARRANGE
BOOL WINAPI SetWindowTextW(_In_ HWND, _In_opt_ LPCWSTR)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int)
BOOL WINAPI RemoveMenu(_In_ HMENU, _In_ UINT, _In_ UINT)
BOOL WINAPI DestroyMenu(_In_ HMENU)
BOOL WINAPI GetMenuItemInfoW(_In_ HMENU, _In_ UINT, _In_ BOOL, _Inout_ LPMENUITEMINFOW)
#define MDITILE_HORIZONTAL
HBITMAP WINAPI LoadBitmapW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
BOOL WINAPI DestroyWindow(_In_ HWND)
int WINAPI GetSystemMetrics(_In_ int)
HMENU WINAPI GetMenu(_In_ HWND)
BOOL WINAPI InsertMenuItemW(_In_ HMENU, _In_ UINT, _In_ BOOL, _In_ LPCMENUITEMINFOW)
struct tagMENUITEMINFOW MENUITEMINFOW
BOOL WINAPI ShellAboutW(HWND hWnd, LPCWSTR szApp, LPCWSTR szOtherStuff, HICON hIcon)
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING ValueName
#define FORMAT_MESSAGE_FROM_STRING
#define FORMAT_MESSAGE_ARGUMENT_ARRAY
#define HKEY_LOCAL_MACHINE
#define HKEY_CURRENT_USER