-
Notifications
You must be signed in to change notification settings - Fork 62
/
dokanc.h
102 lines (70 loc) · 2.22 KB
/
dokanc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/*
Dokan : user-mode file system library for Windows
Copyright (C) 2008 Hiroki Asakawa info@dokan-dev.net
http://dokan-dev.net/en
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along
with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _DOKANC_H_
#define _DOKANC_H_
#include "dokan.h"
#ifdef __cplusplus
extern "C" {
#endif
#define DOKAN_MOUNT_POINT_SUPPORTED_VERSION 600
#define DOKAN_SECURITY_SUPPORTED_VERSION 600
#define DOKAN_GLOBAL_DEVICE_NAME L"\\\\.\\Dokan"
#define DOKAN_CONTROL_PIPE L"\\\\.\\pipe\\DokanMounter"
#define DOKAN_MOUNTER_SERVICE L"DokanMounter"
#define DOKAN_DRIVER_SERVICE L"Dokan"
#define DOKAN_CONTROL_MOUNT 1
#define DOKAN_CONTROL_UNMOUNT 2
#define DOKAN_CONTROL_CHECK 3
#define DOKAN_CONTROL_FIND 4
#define DOKAN_CONTROL_LIST 5
#define DOKAN_CONTROL_OPTION_FORCE_UNMOUNT 1
#define DOKAN_CONTROL_SUCCESS 1
#define DOKAN_CONTROL_FAIL 0
#define DOKAN_SERVICE_START 1
#define DOKAN_SERVICE_STOP 2
#define DOKAN_SERVICE_DELETE 3
#define DOKAN_KEEPALIVE_TIME 3000 // in miliseconds
#define DOKAN_MAX_THREAD 15
// DokanOptions->DebugMode is ON?
extern BOOL g_DebugMode;
// DokanOptions->UseStdErr is ON?
extern BOOL g_UseStdErr;
typedef struct _DOKAN_CONTROL {
ULONG Type;
WCHAR MountPoint[MAX_PATH];
WCHAR DeviceName[64];
ULONG Option;
ULONG Status;
} DOKAN_CONTROL, *PDOKAN_CONTROL;
BOOL DOKANAPI
DokanServiceInstall(
LPCWSTR ServiceName,
DWORD ServiceType,
LPCWSTR ServiceFullPath);
BOOL DOKANAPI
DokanServiceDelete(
LPCWSTR ServiceName);
BOOL DOKANAPI
DokanNetworkProviderInstall();
BOOL DOKANAPI
DokanNetworkProviderUninstall();
BOOL DOKANAPI
DokanSetDebugMode(ULONG Mode);
BOOL DOKANAPI
DokanMountControl(PDOKAN_CONTROL Control);
#ifdef __cplusplus
}
#endif
#endif