#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <string>
#include <winioctl.h>
#include <vector>
Go to the source code of this file.
◆ APPAUTHOR
#define APPAUTHOR L"Rick Brewster" |
◆ APPCOPYRIGHT
#define APPCOPYRIGHT L"Copyright 2000-2002 Rick Brewster" |
◆ APPNAME_CLI
◆ APPNAME_GUI
#define APPNAME_GUI L"Fraginator" |
◆ APPVER_NUM
◆ APPVER_STR
◆ sint16
◆ sint32
◆ sint64
◆ sint8
◆ uchar
◆ uint16
◆ uint32
◆ uint64
◆ uint8
◆ DefragType
Enumerator |
---|
DefragInvalid | |
DefragFast | |
DefragExtensive | |
DefragAnalyze | |
Definition at line 66 of file Unfrag.h.
◆ AddCommas()
Definition at line 48 of file Unfrag.cpp.
49{
50 wchar_t Temp[128];
51 int TempLen;
52
54 wchar_t *StrPosResult =
NULL;
55 wchar_t *StrPosOrig =
NULL;
56
57
58
59
62 StrPosOrig = Temp;
65 {
67 {
69 StrPosResult++;
70 }
71
72 *StrPosResult = *StrPosOrig;
73 StrPosResult++;
74 StrPosOrig++;
75
76 *StrPosResult = 0;
77
79 }
80
82}
wchar_t * AddCommas(wchar_t *Result, uint64 Number)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
_In_opt_ PENTER_STATE_SYSTEM_HANDLER _In_opt_ PVOID _In_ LONG _In_opt_ LONG volatile * Number
_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
Referenced by AddCommas(), and SetReportInfo().
◆ CheckWinVer()
Definition at line 19 of file Unfrag.cpp.
20{
22
26
27
28
29
30
31
32
35 {
36 return (false);
37 }
38
39
41 return (false);
42
43
44 return (true);
45}
#define VER_PLATFORM_WIN32_WINDOWS
#define VER_PLATFORM_WIN32s
ULONG dwOSVersionInfoSize
Referenced by FraggerHelp(), and wWinMain().
◆ StartDefragThread()
Definition at line 132 of file Unfrag.cpp.
133{
136
138
141 return (Defragger);
142}
void __cdecl DefragThread(LPVOID parm)
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD Thread
_CRTIMP uintptr_t __cdecl _beginthread(_In_ void(__cdecl *_StartAddress)(void *), _In_ unsigned _StackSize, _In_opt_ void *_ArgList)
Referenced by MainDialogProc().
◆ QuietMode
◆ VerboseMode