13
13
14
14
//Purchase a license key with the link: http://www.EaseFilter.com/Order.htm
15
15
//Email us to request a trial key: [email protected] //free email is not accepted.
16
- #define registerKey "***************************************** "
16
+ #define registerKey "**************************************"
17
17
18
18
#define MESSAGE_SEND_VERIFICATION_NUMBER 0xFF000001
19
19
#define INET_ADDR_STR_LEN 22
@@ -196,23 +196,23 @@ typedef enum _FilterCommand
196
196
/// </summary>
197
197
FILTER_SEND_PROCESS_CREATION_INFO = 0x00010008 ,
198
198
/// <summary>
199
- /// send the process termination ifnormation
199
+ /// send the process termination information
200
200
/// </summary>
201
201
FILTER_SEND_PROCESS_TERMINATION_INFO = 0x00010009 ,
202
202
/// <summary>
203
203
/// send the new thread creation information
204
204
/// </summary>
205
205
FILTER_SEND_THREAD_CREATION_INFO = 0x0001000a ,
206
206
/// <summary>
207
- /// send the thread termination ifnormation
207
+ /// send the thread termination information
208
208
/// </summary>
209
209
FILTER_SEND_THREAD_TERMINATION_INFO = 0x0001000b ,
210
210
/// <summary>
211
211
/// send the process handle operations information
212
212
/// </summary>
213
213
FILTER_SEND_PROCESS_HANDLE_INFO = 0x0001000c ,
214
214
/// <summary>
215
- /// send the thread handle operations ifnormation
215
+ /// send the thread handle operations information
216
216
/// </summary>
217
217
FILTER_SEND_THREAD_HANDLE_INFO = 0x0001000d ,
218
218
/// <summary>
@@ -519,7 +519,7 @@ typedef enum _ProcessControlFlag
519
519
/// </summary>
520
520
DENY_NEW_PROCESS_CREATION = 0x00000001 ,
521
521
/// <summary>
522
- /// send the callback reqeust before the process is going to be terminated.
522
+ /// send the callback request before the process is going to be terminated.
523
523
/// you can block the process termination in the callback function.
524
524
/// </summary>
525
525
PROCESS_PRE_TERMINATION_REQUEST = 0x00000002 ,
@@ -528,7 +528,7 @@ typedef enum _ProcessControlFlag
528
528
/// </summary>
529
529
PROCESS_CREATION_NOTIFICATION = 0x00000100 ,
530
530
/// <summary>
531
- ///get a notification when a process was termiated
531
+ ///get a notification when a process was terminated
532
532
/// </summary>
533
533
PROCESS_TERMINATION_NOTIFICATION = 0x00000200 ,
534
534
/// <summary>
@@ -541,9 +541,9 @@ typedef enum _ProcessControlFlag
541
541
/// </summary>
542
542
THREAD_CREATION_NOTIFICATION = 0x00000800 ,
543
543
/// <summary>
544
- /// get a notification when a thread was termiated
544
+ /// get a notification when a thread was terminated
545
545
/// </summary>
546
- THREAD_TERMINIATION_NOTIFICATION = 0x00001000 ,
546
+ THREAD_TERMINATION_NOTIFICATION = 0x00001000 ,
547
547
/// <summary>
548
548
/// get a notification for thread handle operations, when a handle for a process
549
549
/// is being created or duplicated.
@@ -815,7 +815,7 @@ typedef enum _AccessFlag
815
815
/// <summary>
816
816
/// Allow the file open to access the file's security information.
817
817
/// </summary>
818
- ALLOW_OPEN_WTIH_ACCESS_SYSTEM_SECURITY = 0x00000010 ,
818
+ ALLOW_OPEN_WITH_ACCESS_SYSTEM_SECURITY = 0x00000010 ,
819
819
/// <summary>
820
820
/// Allow the file open for read access.
821
821
/// </summary>
@@ -943,15 +943,15 @@ typedef enum _BooleanConfig
943
943
/// </summary>
944
944
ENABLE_ADD_MESSAGE_TO_FILE = 0x00000010 ,
945
945
/// <summary>
946
- /// the encrypted file's meta data was embeded in the reparse point tag, it is for the previous version 5.0.
946
+ /// the encrypted file's meta data was embedded in the reparse point tag, it is for the previous version 5.0.
947
947
/// </summary>
948
948
ENCRYPT_FILE_WITH_REPARSE_POINT_TAG = 0x00000020 ,
949
949
/// <summary>
950
950
/// for encryption rule, get the encryption key and IV from user mode for the encrypted files.
951
951
/// </summary>
952
952
REQUEST_ENCRYPT_KEY_AND_IV_FROM_SERVICE = 0x00000040 ,
953
953
/// <summary>
954
- /// for control filter, if it is enabled, the control filte rulle will be applied in boot time.
954
+ /// for control filter, if it is enabled, the control filter rule will be applied in boot time.
955
955
/// </summary>
956
956
ENABLE_PROTECTION_IN_BOOT_TIME = 0x00000080 ,
957
957
/// <summary>
@@ -963,7 +963,7 @@ typedef enum _BooleanConfig
963
963
/// </summary>
964
964
ENABLE_SEND_DATA_BUFFER = 0x00000200 ,
965
965
/// <summary>
966
- /// if it is enabled, it will reopen the file when rehydration of the stub file.
966
+ /// if it is enabled, it will reopen the file during rehydration of the stub file.
967
967
/// </summary>
968
968
ENABLE_REOPEN_FILE_ON_REHYDRATION = 0x00000400 ,
969
969
/// <summary>
@@ -1016,7 +1016,7 @@ typedef enum _BooleanConfig
1016
1016
typedef struct _MESSAGE_SEND_DATA
1017
1017
{
1018
1018
/// <summary>
1019
- ///the verification number which verifiys the data structure integerity.
1019
+ ///the verification number which verifies the data structure integerity.
1020
1020
/// </summary>
1021
1021
ULONG VerificationNumber ;
1022
1022
/// <summary>
@@ -1622,7 +1622,7 @@ AddUserRightsToFilterRule(WCHAR* filterMask, WCHAR* userName, ULONG accessFlags
1622
1622
1623
1623
/// <summary>
1624
1624
/// Get sha256 hash of the file, you need to allocate the 32 bytes array to get the sha256 hash.
1625
- /// hashBytesLength is the input byte array length, and the outpou lenght of the hash.
1625
+ /// hashBytesLength is the input byte array length, and the outpout length of the hash.
1626
1626
/// </summary>
1627
1627
extern "C" __declspec(dllexport )
1628
1628
BOOL
@@ -1897,7 +1897,7 @@ ActivateLicense(
1897
1897
/// </summary>
1898
1898
/// <param name="processNameLength">The length of the process name string in bytes</param>
1899
1899
/// <param name="processName">The process name to be filtered, all processes if it is '*' </param>
1900
- /// <param name="processId">set the processId if you want filter with id instead of the process name</param>
1900
+ /// <param name="processId">set the processId if you want to filter by id instead of the process name</param>
1901
1901
/// <param name="userNameLength">the user name length if you want to filter the user name</param>
1902
1902
/// <param name="userName">the user name filter mask</param>
1903
1903
/// <param name="registryKeyNameLength">set the registry key name filter if you want to filter by the key name</param>
@@ -1908,7 +1908,7 @@ ActivateLicense(
1908
1908
extern "C" __declspec(dllexport )
1909
1909
BOOL
1910
1910
AddRegistryFilterRule (
1911
- ULONG prcoessNameLength ,
1911
+ ULONG processNameLength ,
1912
1912
WCHAR * processName ,
1913
1913
ULONG processId ,
1914
1914
ULONG userNameLength ,
@@ -1954,7 +1954,7 @@ RemoveRegistryFilterRuleByProcessId(
1954
1954
extern "C" __declspec(dllexport )
1955
1955
BOOL
1956
1956
RemoveRegistryFilterRuleByProcessName (
1957
- ULONG prcoessNameLength ,
1957
+ ULONG processNameLength ,
1958
1958
WCHAR * processName );
1959
1959
1960
1960
/// <summary>
@@ -1967,15 +1967,15 @@ RemoveRegistryFilterRuleByProcessName(
1967
1967
extern "C" __declspec(dllexport )
1968
1968
BOOL
1969
1969
AddProcessFilterRule (
1970
- ULONG prcoessNameMaskLength ,
1970
+ ULONG processNameMaskLength ,
1971
1971
WCHAR * processNameMask ,
1972
1972
ULONG controlFlag ,
1973
1973
ULONG filterRuleId = 0 );
1974
1974
1975
1975
extern "C" __declspec(dllexport )
1976
1976
BOOL
1977
1977
RemoveProcessFilterRule (
1978
- ULONG prcoessNameMaskLength ,
1978
+ ULONG processNameMaskLength ,
1979
1979
WCHAR * processNameMask );
1980
1980
1981
1981
/// <summary>
@@ -1989,7 +1989,7 @@ RemoveProcessFilterRule(
1989
1989
extern "C" __declspec(dllexport )
1990
1990
BOOL
1991
1991
AddFileControlToProcessByName (
1992
- ULONG prcoessNameMaskLength ,
1992
+ ULONG processNameMaskLength ,
1993
1993
WCHAR * processNameMask ,
1994
1994
ULONG fileNameMaskLength ,
1995
1995
WCHAR * fileNameMask ,
@@ -2010,7 +2010,7 @@ AddFileControlToProcessByName(
2010
2010
extern "C" __declspec(dllexport )
2011
2011
BOOL
2012
2012
AddFileCallbackIOToProcessByName (
2013
- ULONG prcoessNameMaskLength ,
2013
+ ULONG processNameMaskLength ,
2014
2014
WCHAR * processNameMask ,
2015
2015
ULONG fileNameMaskLength ,
2016
2016
WCHAR * fileNameMask ,
@@ -2023,7 +2023,7 @@ AddFileCallbackIOToProcessByName(
2023
2023
extern "C" __declspec(dllexport )
2024
2024
BOOL
2025
2025
RemoveFileControlFromProcessByName (
2026
- ULONG prcoessNameMaskLength ,
2026
+ ULONG processNameMaskLength ,
2027
2027
WCHAR * processNameMask ,
2028
2028
ULONG fileNameMaskLength ,
2029
2029
WCHAR * fileNameMask );
@@ -2039,15 +2039,15 @@ RemoveFileControlFromProcessByName(
2039
2039
extern "C" __declspec(dllexport )
2040
2040
BOOL
2041
2041
AddFileControlToProcessById (
2042
- ULONG prcoessId ,
2042
+ ULONG processId ,
2043
2043
ULONG fileNameMaskLength ,
2044
2044
WCHAR * fileNameMask ,
2045
2045
ULONG AccessFlag );
2046
2046
2047
2047
extern "C" __declspec(dllexport )
2048
2048
BOOL
2049
2049
RemoveFileControlFromProcessById (
2050
- ULONG prcoessId ,
2050
+ ULONG processId ,
2051
2051
ULONG fileNameMaskLength ,
2052
2052
WCHAR * fileNameMask );
2053
2053
@@ -2098,4 +2098,25 @@ GetAESIV(
2098
2098
PULONG ivSize ,
2099
2099
BYTE * ivBuffer );
2100
2100
2101
+ extern "C" __declspec(dllexport )
2102
+ BOOL
2103
+ AddExcludeProcessNameToRegistryFilterRule (WCHAR * processNameFilterMask , WCHAR * registryKeyNameFilterMask , WCHAR * excludeProcessNameFilterMask );
2104
+
2105
+ extern "C" __declspec(dllexport )
2106
+ BOOL
2107
+ AddExcludeUserNameToRegistryFilterRule (WCHAR * processNameFilterMask , WCHAR * registryKeyNameFilterMask , WCHAR * excludeUserName );
2108
+
2109
+ extern "C" __declspec(dllexport )
2110
+ BOOL
2111
+ AddExcludeKeyNameToRegistryFilterRule (WCHAR * processNameFilterMask , WCHAR * registryKeyNameFilterMask , WCHAR * excludeKeyName );
2112
+
2113
+
2114
+ extern "C" __declspec(dllexport )
2115
+ BOOL
2116
+ AddExcludeProcessNameToProcessFilterRule (WCHAR * processNameFilterMask , WCHAR * processName );
2117
+
2118
+ extern "C" __declspec(dllexport )
2119
+ BOOL
2120
+ AddExcludeUserNameToProcessFilterRule (WCHAR * processNameFilterMask , WCHAR * userName );
2121
+
2101
2122
#endif //__SHARE_TYPE_H__
0 commit comments