ReactOS  0.4.14-dev-49-gfb4591c
Fraginator.cpp
Go to the documentation of this file.
1 /*****************************************************************************
2 
3  Fraginator
4 
5 *****************************************************************************/
6 
7 #define NDEBUG
8 
9 #include "Fraginator.h"
10 #include "Mutex.h"
11 #include "DriveVolume.h"
12 #include "Defragment.h"
13 #include "MainDialog.h"
14 #include "resource.h"
15 #ifdef _MSC_VER
16 #include <crtdbg.h>
17 #endif
18 
21 
22 INT WINAPI
23 wWinMain(HINSTANCE HInstance,
24  HINSTANCE hPrev,
25  LPWSTR Cmd,
26  int iCmd)
27 {
29 
30  // debugging crap
31 #ifndef NDEBUG
39 #endif
40 
41  GlobalHInstance = HInstance;
42 
43  // We want our progress bar! NOW!
44  InitControls.dwSize = sizeof (InitControls);
47 
48  if (!CheckWinVer())
49  {
50  MessageBox (GetDesktopWindow(), L"Sorry, this program requires Windows 2000.", L"Error", MB_OK);
51  return (0);
52  }
53 
55 
56 #if 0
57  AllocConsole ();
58  if (_CrtDumpMemoryLeaks ())
59  MessageBox (NULL, L"Click OK to quit", L"Leaks", MB_OK);
60 #endif
61 
62  return (0);
63 }
64 
#define MAKEINTRESOURCE
Definition: winuser.h:591
BOOL WINAPI AllocConsole(VOID)
Definition: console.c:48
#define _CRT_WARN
Definition: crtdbg.h:27
#define _CrtDumpMemoryLeaks()
Definition: crtdbg.h:204
INT_PTR CALLBACK MainDialogProc(HWND Dlg, UINT Msg, WPARAM WParam, LPARAM LParam)
Definition: MainDialog.cpp:424
#define _CRT_ERROR
Definition: crtdbg.h:28
#define _CrtSetReportFile(t, f)
Definition: crtdbg.h:184
int32_t INT
Definition: typedefs.h:56
Defragment * Defrag
Definition: Fraginator.cpp:20
static VOID InitControls(HWND hwnd)
Definition: mplay32.c:303
#define IDD_MAIN
Definition: resource.h:106
#define DialogBox
Definition: winuser.h:5662
#define ICC_WIN95_CLASSES
Definition: commctrl.h:66
smooth NULL
Definition: ftsmooth.c:416
HINSTANCE GlobalHInstance
Definition: Fraginator.cpp:19
HWND WINAPI GetDesktopWindow(void)
Definition: window.c:652
#define _CRTDBG_FILE_STDOUT
Definition: crtdbg.h:39
#define _CRTDBG_REPORT_FLAG
Definition: crtdbg.h:68
#define _CRTDBG_LEAK_CHECK_DF
Definition: crtdbg.h:60
#define WINAPI
Definition: msvc.h:8
static const WCHAR L[]
Definition: oid.c:1250
#define _CRTDBG_MODE_FILE
Definition: crtdbg.h:32
BOOL WINAPI InitCommonControlsEx(const INITCOMMONCONTROLSEX *lpInitCtrls)
Definition: commctrl.c:893
Definition: sacdrv.h:277
#define MessageBox
Definition: winuser.h:5723
bool CheckWinVer(void)
Definition: Unfrag.cpp:19
#define MB_OK
Definition: winuser.h:784
#define _CRT_ASSERT
Definition: crtdbg.h:29
INT WINAPI wWinMain(HINSTANCE HInstance, HINSTANCE hPrev, LPWSTR Cmd, int iCmd)
Definition: Fraginator.cpp:23
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define _CrtSetDbgFlag(f)
Definition: crtdbg.h:192
#define _CrtSetReportMode(t, f)
Definition: crtdbg.h:183