1313
1414//Purchase a license key with the link: http://www.EaseFilter.com/Order.htm
1515//Email us to request a trial key: info@EaseFilter.com //free email is not accepted.
16- #define registerKey "***************************************** "
16+ #define registerKey "**************************************"
1717
1818#define MESSAGE_SEND_VERIFICATION_NUMBER 0xFF000001
1919#define INET_ADDR_STR_LEN 22
@@ -196,23 +196,23 @@ typedef enum _FilterCommand
196196 /// </summary>
197197 FILTER_SEND_PROCESS_CREATION_INFO = 0x00010008 ,
198198 /// <summary>
199- /// send the process termination ifnormation
199+ /// send the process termination information
200200 /// </summary>
201201 FILTER_SEND_PROCESS_TERMINATION_INFO = 0x00010009 ,
202202 /// <summary>
203203 /// send the new thread creation information
204204 /// </summary>
205205 FILTER_SEND_THREAD_CREATION_INFO = 0x0001000a ,
206206 /// <summary>
207- /// send the thread termination ifnormation
207+ /// send the thread termination information
208208 /// </summary>
209209 FILTER_SEND_THREAD_TERMINATION_INFO = 0x0001000b ,
210210 /// <summary>
211211 /// send the process handle operations information
212212 /// </summary>
213213 FILTER_SEND_PROCESS_HANDLE_INFO = 0x0001000c ,
214214 /// <summary>
215- /// send the thread handle operations ifnormation
215+ /// send the thread handle operations information
216216 /// </summary>
217217 FILTER_SEND_THREAD_HANDLE_INFO = 0x0001000d ,
218218 /// <summary>
@@ -519,7 +519,7 @@ typedef enum _ProcessControlFlag
519519 /// </summary>
520520 DENY_NEW_PROCESS_CREATION = 0x00000001 ,
521521 /// <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.
523523 /// you can block the process termination in the callback function.
524524 /// </summary>
525525 PROCESS_PRE_TERMINATION_REQUEST = 0x00000002 ,
@@ -528,7 +528,7 @@ typedef enum _ProcessControlFlag
528528 /// </summary>
529529 PROCESS_CREATION_NOTIFICATION = 0x00000100 ,
530530 /// <summary>
531- ///get a notification when a process was termiated
531+ ///get a notification when a process was terminated
532532 /// </summary>
533533 PROCESS_TERMINATION_NOTIFICATION = 0x00000200 ,
534534 /// <summary>
@@ -541,9 +541,9 @@ typedef enum _ProcessControlFlag
541541 /// </summary>
542542 THREAD_CREATION_NOTIFICATION = 0x00000800 ,
543543 /// <summary>
544- /// get a notification when a thread was termiated
544+ /// get a notification when a thread was terminated
545545 /// </summary>
546- THREAD_TERMINIATION_NOTIFICATION = 0x00001000 ,
546+ THREAD_TERMINATION_NOTIFICATION = 0x00001000 ,
547547 /// <summary>
548548 /// get a notification for thread handle operations, when a handle for a process
549549 /// is being created or duplicated.
@@ -815,7 +815,7 @@ typedef enum _AccessFlag
815815 /// <summary>
816816 /// Allow the file open to access the file's security information.
817817 /// </summary>
818- ALLOW_OPEN_WTIH_ACCESS_SYSTEM_SECURITY = 0x00000010 ,
818+ ALLOW_OPEN_WITH_ACCESS_SYSTEM_SECURITY = 0x00000010 ,
819819 /// <summary>
820820 /// Allow the file open for read access.
821821 /// </summary>
@@ -943,15 +943,15 @@ typedef enum _BooleanConfig
943943 /// </summary>
944944 ENABLE_ADD_MESSAGE_TO_FILE = 0x00000010 ,
945945 /// <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.
947947 /// </summary>
948948 ENCRYPT_FILE_WITH_REPARSE_POINT_TAG = 0x00000020 ,
949949 /// <summary>
950950 /// for encryption rule, get the encryption key and IV from user mode for the encrypted files.
951951 /// </summary>
952952 REQUEST_ENCRYPT_KEY_AND_IV_FROM_SERVICE = 0x00000040 ,
953953 /// <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.
955955 /// </summary>
956956 ENABLE_PROTECTION_IN_BOOT_TIME = 0x00000080 ,
957957 /// <summary>
@@ -963,7 +963,7 @@ typedef enum _BooleanConfig
963963 /// </summary>
964964 ENABLE_SEND_DATA_BUFFER = 0x00000200 ,
965965 /// <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.
967967 /// </summary>
968968 ENABLE_REOPEN_FILE_ON_REHYDRATION = 0x00000400 ,
969969 /// <summary>
@@ -1016,7 +1016,7 @@ typedef enum _BooleanConfig
10161016typedef struct _MESSAGE_SEND_DATA
10171017{
10181018 /// <summary>
1019- ///the verification number which verifiys the data structure integerity.
1019+ ///the verification number which verifies the data structure integerity.
10201020 /// </summary>
10211021 ULONG VerificationNumber ;
10221022 /// <summary>
@@ -1622,7 +1622,7 @@ AddUserRightsToFilterRule(WCHAR* filterMask, WCHAR* userName, ULONG accessFlags
16221622
16231623/// <summary>
16241624/// 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.
16261626/// </summary>
16271627extern "C" __declspec(dllexport )
16281628BOOL
@@ -1897,7 +1897,7 @@ ActivateLicense(
18971897/// </summary>
18981898/// <param name="processNameLength">The length of the process name string in bytes</param>
18991899/// <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>
19011901/// <param name="userNameLength">the user name length if you want to filter the user name</param>
19021902/// <param name="userName">the user name filter mask</param>
19031903/// <param name="registryKeyNameLength">set the registry key name filter if you want to filter by the key name</param>
@@ -1908,7 +1908,7 @@ ActivateLicense(
19081908extern "C" __declspec(dllexport )
19091909BOOL
19101910AddRegistryFilterRule (
1911- ULONG prcoessNameLength ,
1911+ ULONG processNameLength ,
19121912 WCHAR * processName ,
19131913 ULONG processId ,
19141914 ULONG userNameLength ,
@@ -1954,7 +1954,7 @@ RemoveRegistryFilterRuleByProcessId(
19541954extern "C" __declspec(dllexport )
19551955BOOL
19561956RemoveRegistryFilterRuleByProcessName (
1957- ULONG prcoessNameLength ,
1957+ ULONG processNameLength ,
19581958 WCHAR * processName );
19591959
19601960/// <summary>
@@ -1967,15 +1967,15 @@ RemoveRegistryFilterRuleByProcessName(
19671967extern "C" __declspec(dllexport )
19681968BOOL
19691969AddProcessFilterRule (
1970- ULONG prcoessNameMaskLength ,
1970+ ULONG processNameMaskLength ,
19711971 WCHAR * processNameMask ,
19721972 ULONG controlFlag ,
19731973 ULONG filterRuleId = 0 );
19741974
19751975extern "C" __declspec(dllexport )
19761976BOOL
19771977RemoveProcessFilterRule (
1978- ULONG prcoessNameMaskLength ,
1978+ ULONG processNameMaskLength ,
19791979 WCHAR * processNameMask );
19801980
19811981/// <summary>
@@ -1989,7 +1989,7 @@ RemoveProcessFilterRule(
19891989extern "C" __declspec(dllexport )
19901990BOOL
19911991AddFileControlToProcessByName (
1992- ULONG prcoessNameMaskLength ,
1992+ ULONG processNameMaskLength ,
19931993 WCHAR * processNameMask ,
19941994 ULONG fileNameMaskLength ,
19951995 WCHAR * fileNameMask ,
@@ -2010,7 +2010,7 @@ AddFileControlToProcessByName(
20102010extern "C" __declspec(dllexport )
20112011BOOL
20122012AddFileCallbackIOToProcessByName (
2013- ULONG prcoessNameMaskLength ,
2013+ ULONG processNameMaskLength ,
20142014 WCHAR * processNameMask ,
20152015 ULONG fileNameMaskLength ,
20162016 WCHAR * fileNameMask ,
@@ -2023,7 +2023,7 @@ AddFileCallbackIOToProcessByName(
20232023extern "C" __declspec(dllexport )
20242024BOOL
20252025RemoveFileControlFromProcessByName (
2026- ULONG prcoessNameMaskLength ,
2026+ ULONG processNameMaskLength ,
20272027 WCHAR * processNameMask ,
20282028 ULONG fileNameMaskLength ,
20292029 WCHAR * fileNameMask );
@@ -2039,15 +2039,15 @@ RemoveFileControlFromProcessByName(
20392039extern "C" __declspec(dllexport )
20402040BOOL
20412041AddFileControlToProcessById (
2042- ULONG prcoessId ,
2042+ ULONG processId ,
20432043 ULONG fileNameMaskLength ,
20442044 WCHAR * fileNameMask ,
20452045 ULONG AccessFlag );
20462046
20472047extern "C" __declspec(dllexport )
20482048BOOL
20492049RemoveFileControlFromProcessById (
2050- ULONG prcoessId ,
2050+ ULONG processId ,
20512051 ULONG fileNameMaskLength ,
20522052 WCHAR * fileNameMask );
20532053
@@ -2098,4 +2098,25 @@ GetAESIV(
20982098 PULONG ivSize ,
20992099 BYTE * ivBuffer );
21002100
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+
21012122#endif //__SHARE_TYPE_H__
0 commit comments