ReactOS 0.4.16-dev-297-gc569aee
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
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 ();
59 MessageBox (NULL, L"Click OK to quit", L"Leaks", MB_OK);
60#endif
61
62 return (0);
63}
64
Defragment * Defrag
Definition: Fraginator.cpp:20
INT WINAPI wWinMain(HINSTANCE HInstance, HINSTANCE hPrev, LPWSTR Cmd, int iCmd)
Definition: Fraginator.cpp:23
HINSTANCE GlobalHInstance
Definition: Fraginator.cpp:19
INT_PTR CALLBACK MainDialogProc(HWND Dlg, UINT Msg, WPARAM WParam, LPARAM LParam)
Definition: MainDialog.cpp:424
bool CheckWinVer(void)
Definition: Unfrag.cpp:19
BOOL WINAPI AllocConsole(VOID)
Definition: console.c:74
#define IDD_MAIN
Definition: resource.h:106
BOOL WINAPI InitCommonControlsEx(const INITCOMMONCONTROLSEX *lpInitCtrls)
Definition: commctrl.c:900
#define _CRT_ASSERT
Definition: crtdbg.h:21
#define _CRTDBG_FILE_STDOUT
Definition: crtdbg.h:31
#define _CRTDBG_MODE_FILE
Definition: crtdbg.h:24
#define _CrtDumpMemoryLeaks()
Definition: crtdbg.h:257
#define _CRTDBG_LEAK_CHECK_DF
Definition: crtdbg.h:52
#define _CRTDBG_REPORT_FLAG
Definition: crtdbg.h:60
#define _CrtSetReportMode(t, f)
Definition: crtdbg.h:129
#define _CRT_ERROR
Definition: crtdbg.h:20
#define _CRT_WARN
Definition: crtdbg.h:19
#define _CrtSetDbgFlag(f)
Definition: crtdbg.h:245
#define _CrtSetReportFile(t, f)
Definition: crtdbg.h:130
#define NULL
Definition: types.h:112
static VOID InitControls(HWND hwnd)
Definition: mplay32.c:303
#define L(x)
Definition: ntvdm.h:50
#define ICC_WIN95_CLASSES
Definition: commctrl.h:66
@ Cmd
Definition: sacdrv.h:278
int32_t INT
Definition: typedefs.h:58
#define WINAPI
Definition: msvc.h:6
HWND WINAPI GetDesktopWindow(void)
Definition: window.c:628
#define MB_OK
Definition: winuser.h:793
#define MessageBox
Definition: winuser.h:5834
#define MAKEINTRESOURCE
Definition: winuser.h:591
#define DialogBox
Definition: winuser.h:5773
WCHAR * LPWSTR
Definition: xmlstorage.h:184