ReactOS  0.4.14-dev-114-gc8cbd56
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 }
#define WINDOW_CREATOR(WND_CLASS)
Definition: window.h:202
"About Explorer" Dialog
Definition: explorer.cpp:871
static HWND hwndParent
Definition: cryptui.c:300
#define IDD_ABOUT_EXPLORER
Definition: resource.h:81
static int DoModal(UINT nid, CREATORFUNC creator, HWND hwndParent=0)
Definition: window.cpp:701

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 }
struct _CONTEXT CONTEXT
void explorer_show_frame(int cmdShow, LPTSTR lpCmdLine)
Definition: explorer.cpp:707
#define SW_HIDE
Definition: winuser.h:762
Exception with context information.
Definition: shellclasses.h:113
HINSTANCE hInstance
Definition: charmap.c:20
#define e
Definition: ke_i.h:82
HWND WINAPI GetDesktopWindow(void)
Definition: window.c:652
void HandleException(COMException &e, HWND hwnd)
Exception Handler for COM exceptions.
static int MessageLoop()
Definition: window.cpp:629
static void InitInstance(HINSTANCE hInstance)
Definition: explorer.cpp:940

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 
720  g_Globals._prescan_nodes = false;
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 }
Explorer command line parser.
Definition: explorer.h:89
Definition: ftp_var.h:139
char * cmd
Definition: vfdcmd.c:85
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
#define SW_RESTORE
Definition: winuser.h:773
BOOL WINAPI IsIconic(_In_ HWND)
static HWND Create(const ExplorerCmd &cmd)
Definition: mainframe.cpp:40
bool _prescan_nodes
Definition: globals.h:277
ExplorerGlobals g_Globals
Definition: explorer.cpp:52
HWND _hMainWnd
Definition: globals.h:275
BOOL WINAPI SetForegroundWindow(_In_ HWND)

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 }
HWND WINAPI GetShellWindow(VOID)
Definition: desktop.c:651
static BOOL(WINAPI *SetShellWindow)(HWND)
#define WINAPI
Definition: msvc.h:8
static HWND
Definition: desktop.cpp:36
BOOL WINAPI SetShellWindowEx(HWND, HWND)
Definition: ntwrapper.h:58
#define TEXT(s)
Definition: k32.h:26
#define GetModuleHandle
Definition: winbase.h:3651
#define GetProcAddress(x, y)
Definition: compat.h:410
BOOL WINAPI SetShellWindow(HWND)
Definition: desktop.c:641

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 
2132  if (ExitWindowsDialog)
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:1145
#define MessageBox
Definition: winuser.h:5723
#define TEXT(s)
Definition: k32.h:26
#define MB_OK
Definition: winuser.h:784
convenient loading of string resources
Definition: globals.h:303

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