ReactOS 0.4.15-dev-7788-g1ad9096
externals.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int explorer_main (HINSTANCE hinstance, LPTSTR lpCmdLine, int cmdshow)
 
void explorer_show_frame (int cmdshow, LPTSTR lpCmdLine=NULL)
 
void explorer_about (HWND hwndParent)
 
BOOL IsAnyDesktopRunning (void)
 
void ShowExitWindowsDialog (HWND hwndOwner)
 

Function Documentation

◆ explorer_about()

void explorer_about ( HWND  hwndParent)

Definition at line 934 of file explorer.cpp.

935{
937}
static HWND hwndParent
Definition: cryptui.c:300
#define IDD_ABOUT_EXPLORER
Definition: resource.h:81
#define WINDOW_CREATOR(WND_CLASS)
Definition: window.h:202
static int DoModal(UINT nid, CREATORFUNC creator, HWND hwndParent=0)
Definition: window.cpp:701
"About Explorer" Dialog
Definition: explorer.cpp:875

Referenced by MainFrameBase::Command(), DesktopBar::Command(), and DesktopShellView::DoDesktopContextMenu().

◆ explorer_main()

int explorer_main ( HINSTANCE  hinstance,
LPTSTR  lpCmdLine,
int  cmdshow 
)

Definition at line 961 of file explorer.cpp.

962{
963 CONTEXT("explorer_main");
964
965 // initialize Common Controls library
966 CommonControlInit usingCmnCtrl;
967
968 try {
970 } catch(COMException& e) {
972 return -1;
973 }
974
975#ifndef ROSSHELL
976 if (cmdShow != SW_HIDE) {
977/* // don't maximize if being called from the ROS desktop
978 if (cmdShow == SW_SHOWNORMAL)
980 cmdShow = SW_MAXIMIZE;
981*/
982
983 explorer_show_frame(cmdShow, lpCmdLine);
984 }
985#endif
986
988
989 return 1;
990}
HINSTANCE hInstance
Definition: charmap.c:19
#define e
Definition: ke_i.h:82
void explorer_show_frame(int cmdShow, LPTSTR lpCmdLine)
Definition: explorer.cpp:707
static void InitInstance(HINSTANCE hInstance)
Definition: explorer.cpp:940
struct _CONTEXT CONTEXT
void HandleException(COMException &e, HWND hwnd)
Exception Handler for COM exceptions.
Exception with context information.
Definition: shellclasses.h:114
static int MessageLoop()
Definition: window.cpp:629
#define SW_HIDE
Definition: winuser.h:768
HWND WINAPI GetDesktopWindow(void)
Definition: window.c:656

Referenced by _tWinMain().

◆ explorer_show_frame()

void explorer_show_frame ( int  cmdshow,
LPTSTR  lpCmdLine = NULL 
)

Definition at line 707 of file explorer.cpp.

708{
710
711 if (g_Globals._hMainWnd) {
714 else
716
717 return;
718 }
719
721
722 cmd._mdi = true;
723 cmd._cmdShow = cmdShow;
724
725 // parse command line options, which may overwrite the MDI flag
726 if (lpCmdLine)
727 cmd.ParseCmdLine(lpCmdLine);
728
729 // create main window
731}
ExplorerGlobals g_Globals
Definition: explorer.cpp:52
Explorer command line parser.
Definition: explorer.h:90
bool _prescan_nodes
Definition: globals.h:277
HWND _hMainWnd
Definition: globals.h:275
static HWND Create(const ExplorerCmd &cmd)
Definition: mainframe.cpp:40
Definition: ftp_var.h:139
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
BOOL WINAPI SetForegroundWindow(_In_ HWND)
BOOL WINAPI IsIconic(_In_ HWND)
#define SW_RESTORE
Definition: winuser.h:779

Referenced by DesktopBar::Command(), StartMenuHandler::Command(), explorer_main(), DesktopBar::ProcessHotKey(), and DesktopWindow::WndProc().

◆ IsAnyDesktopRunning()

BOOL IsAnyDesktopRunning ( void  )

Definition at line 248 of file desktop.cpp.

249{
250 HINSTANCE hUser32 = GetModuleHandle(TEXT("user32"));
251
252 SetShellWindow = (BOOL(WINAPI*)(HWND)) GetProcAddress(hUser32, "SetShellWindow");
253 SetShellWindowEx = (BOOL(WINAPI*)(HWND,HWND)) GetProcAddress(hUser32, "SetShellWindowEx");
254
255 return GetShellWindow() != 0;
256}
#define GetProcAddress(x, y)
Definition: compat.h:753
#define TEXT(s)
Definition: k32.h:26
static HWND
Definition: desktop.cpp:36
#define BOOL
Definition: nt_native.h:43
BOOL WINAPI SetShellWindow(HWND)
Definition: desktop.c:641
BOOL WINAPI SetShellWindowEx(HWND, HWND)
Definition: ntwrapper.h:58
HWND WINAPI GetShellWindow(VOID)
Definition: desktop.c:651
#define GetModuleHandle
Definition: winbase.h:3762
#define WINAPI
Definition: msvc.h:6

Referenced by _tWinMain().

◆ ShowExitWindowsDialog()

void ShowExitWindowsDialog ( HWND  hwndOwner)

Definition at line 2128 of file startmenu.cpp.

2129{
2130 static DynamicFct<EXITWINDOWSDLG> ExitWindowsDialog(TEXT("SHELL32"), 60);
2131
2133 (*ExitWindowsDialog)(hwndOwner);
2134 else
2135 MessageBox(hwndOwner, TEXT("ExitWindowsDialog() not yet implemented in SHELL32"), ResString(IDS_TITLE), MB_OK);
2136}
#define IDS_TITLE
Definition: resource.h:30
void WINAPI ExitWindowsDialog(HWND hWndOwner)
Definition: dialogs.cpp:1608
convenient loading of string resources
Definition: globals.h:304
#define MB_OK
Definition: winuser.h:790
#define MessageBox
Definition: winuser.h:5822

Referenced by StartMenuHandler::Command(), DesktopWindow::WndProc(), and DesktopBar::WndProc().