#include "fsutil.h"
#include <winioctl.h>
Go to the source code of this file.
◆ DirtyMain()
Definition at line 105 of file dirty.c.
106{
110}
int FindHandler(int argc, const TCHAR *argv[], HandlerItem *HandlersList, int HandlerListCount, void(*UsageHelper)(const TCHAR *))
static HandlerItem HandlersList[]
◆ PrintUsage()
Definition at line 98 of file dirty.c.
99{
102}
void PrintDefaultUsage(const TCHAR *Command, const TCHAR *SubCommand, HandlerItem *HandlersList, int HandlerListCount)
◆ QueryMain()
Definition at line 23 of file dirty.c.
24{
27
28
30 {
33 return 1;
34 }
35
36
39 {
40 return 1;
41 }
42
43
46 {
49 return 1;
50 }
51
53
54
56
57 return 0;
58}
static VOID PrintErrorMessage(DWORD dwError)
HANDLE OpenVolume(const TCHAR *Volume, BOOLEAN AllowRemote, BOOLEAN NtfsOnly)
BOOL WINAPI DeviceIoControl(IN HANDLE hDevice, IN DWORD dwIoControlCode, IN LPVOID lpInBuffer OPTIONAL, IN DWORD nInBufferSize OPTIONAL, OUT LPVOID lpOutBuffer OPTIONAL, IN DWORD nOutBufferSize OPTIONAL, OUT LPDWORD lpBytesReturned OPTIONAL, IN LPOVERLAPPED lpOverlapped OPTIONAL)
#define INVALID_HANDLE_VALUE
#define FSCTL_IS_VOLUME_DIRTY
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR _In_opt_ PLONGLONG _In_opt_ PWDF_REQUEST_SEND_OPTIONS _Out_opt_ PULONG_PTR BytesRead
DWORD WINAPI GetLastError(void)
◆ SetMain()
Definition at line 61 of file dirty.c.
62{
65
66
68 {
71 return 1;
72 }
73
74
77 {
78 return 1;
79 }
80
81
83 {
86 return 1;
87 }
88
90
91
93
94 return 0;
95}
#define FSCTL_MARK_VOLUME_DIRTY
◆ HandlersList
◆ QueryMain
◆ SetMain