ReactOS 0.4.15-dev-7788-g1ad9096
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>
48using namespace std;
49
50
51typedef unsigned __int8 uint8;
52typedef signed __int8 sint8;
53typedef unsigned __int16 uint16;
54typedef signed __int16 sint16;
55typedef unsigned __int32 uint32;
56typedef signed __int32 sint32;
57typedef unsigned __int64 uint64;
58typedef signed __int64 sint64;
59typedef unsigned char uchar;
60
61
62extern bool QuietMode;
63extern bool VerboseMode;
64
65
66typedef enum
67{
73
74
75extern bool CheckWinVer (void);
76
77
78class Defragment;
80
81
82extern wchar_t *AddCommas (wchar_t *Result, uint64 Number);
83
84
85#endif // UNFRAG_H
86
bool VerboseMode
Definition: Unfrag.cpp:15
unsigned __int8 uint8
Definition: Unfrag.h:51
wchar_t * AddCommas(wchar_t *Result, uint64 Number)
Definition: Unfrag.cpp:48
signed __int32 sint32
Definition: Unfrag.h:56
unsigned char uchar
Definition: Unfrag.h:59
bool CheckWinVer(void)
Definition: Unfrag.cpp:19
bool QuietMode
Definition: Unfrag.cpp:14
signed __int16 sint16
Definition: Unfrag.h:54
DefragType
Definition: Unfrag.h:67
@ DefragExtensive
Definition: Unfrag.h:70
@ DefragAnalyze
Definition: Unfrag.h:71
@ DefragInvalid
Definition: Unfrag.h:68
@ DefragFast
Definition: Unfrag.h:69
signed __int8 sint8
Definition: Unfrag.h:52
unsigned __int16 uint16
Definition: Unfrag.h:53
Defragment * StartDefragThread(wstring Drive, DefragType Method, HANDLE &Handle)
Definition: Unfrag.cpp:132
unsigned __int64 uint64
Definition: Unfrag.h:57
unsigned __int32 uint32
Definition: Unfrag.h:55
signed __int64 sint64
Definition: Unfrag.h:58
PWCHAR Drive
Definition: chkdsk.c:73
#define __int8
Definition: basetyps.h:25
#define __int16
Definition: basetyps.h:22
#define __int64
Definition: basetyps.h:16
#define __int32
Definition: basetyps.h:19
DefragType Method
Definition: Defragment.h:77
unsigned long long uint64
Definition: platform.h:18
ULONG Handle
Definition: gdb_input.c:15
Definition: features.h:417
_In_opt_ PENTER_STATE_SYSTEM_HANDLER _In_opt_ PVOID _In_ LONG _In_opt_ LONG volatile * Number
Definition: ntpoapi.h:207
_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:409