ReactOS  0.4.14-dev-583-g2a1ba2c
Unfrag.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3  Unfrag
4 
5 *****************************************************************************/
6 
7 
8 #ifndef UNFRAG_H
9 #define UNFRAG_H
10 
11 
12 // Blah blah blah your template name is too long ... SO WHAT
13 #ifdef _MSC_VER
14 #pragma warning (disable: 4786)
15 #endif
16 
17 // I forget what this disables
18 #ifdef __ICL
19 #pragma warning (disable: 268)
20 #endif
21 
22 
23 // Hello Mr. Platform SDK, please let us use Windows 2000 only features
24 #if 0
25 #ifndef WINVER
26 #define WINVER 0x0500
27 #define _WIN32_WINNT 0x0500
28 #endif
29 #endif
30 
31 #include <stdio.h>
32 #include <stdlib.h>
33 #include <windows.h>
34 #include <string>
35 //#include <initguid.h>
36 #include <winioctl.h>
37 
38 #define APPNAME_CLI L"Unfrag"
39 #define APPNAME_GUI L"Fraginator"
40 #define APPVER_STR L"1.03"
41 #define APPVER_NUM 1.03f
42 #define APPAUTHOR L"Rick Brewster"
43 #define APPCOPYRIGHT L"Copyright 2000-2002 Rick Brewster"
44 
45 
46 #include <vector>
47 #include <string>
48 using namespace std;
49 
50 
51 typedef unsigned __int8 uint8;
52 typedef signed __int8 sint8;
53 typedef unsigned __int16 uint16;
54 typedef signed __int16 sint16;
55 typedef unsigned __int32 uint32;
56 typedef signed __int32 sint32;
57 typedef unsigned __int64 uint64;
58 typedef signed __int64 sint64;
59 typedef unsigned char uchar;
60 
61 
62 extern bool QuietMode;
63 extern bool VerboseMode;
64 
65 
66 typedef enum
67 {
72 } DefragType;
73 
74 
75 extern bool CheckWinVer (void);
76 
77 
78 class Defragment;
80 
81 
82 extern wchar_t *AddCommas (wchar_t *Result, uint64 Number);
83 
84 
85 #endif // UNFRAG_H
86 
unsigned long long uint64
Definition: platform.h:18
signed __int16 sint16
Definition: Unfrag.h:54
unsigned __int16 uint16
Definition: Unfrag.h:53
unsigned char uchar
Definition: Unfrag.h:59
unsigned __int64 uint64
Definition: Unfrag.h:57
Definition: features.h:417
bool VerboseMode
Definition: Unfrag.cpp:15
wchar_t * AddCommas(wchar_t *Result, uint64 Number)
Definition: Unfrag.cpp:48
PWCHAR Drive
Definition: chkdsk.c:73
bool CheckWinVer(void)
Definition: Unfrag.cpp:19
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
Definition: wsk.h:426
signed __int8 sint8
Definition: Unfrag.h:52
_In_ HANDLE Handle
Definition: extypes.h:390
DefragType Method
Definition: Defragment.h:77
signed __int32 sint32
Definition: Unfrag.h:56
Defragment * StartDefragThread(wstring Drive, DefragType Method, HANDLE &Handle)
Definition: Unfrag.cpp:132
_In_opt_ PENTER_STATE_SYSTEM_HANDLER _In_opt_ PVOID _In_ LONG _In_opt_ LONG volatile * Number
Definition: ntpoapi.h:204
bool QuietMode
Definition: Unfrag.cpp:14
unsigned __int32 uint32
Definition: Unfrag.h:55
#define __int32
Definition: basetyps.h:19
unsigned __int8 uint8
Definition: Unfrag.h:51
signed __int64 sint64
Definition: Unfrag.h:58
DefragType
Definition: Unfrag.h:66
#define __int8
Definition: basetyps.h:25
#define __int64
Definition: basetyps.h:16
#define __int16
Definition: basetyps.h:22