DbgSetVirtualProtect function
Set the kernel virtual protection properties
Function:
bool UAPI DbgSetVirtualProtect(
bool bProtect
);
Parameters:
- bProtect [in]:Virtual protection attribute value
Return value:
- Type:BOOL
- Text:The setting returns a nonzero value successfully, otherwise returns 0
Remarks:
- Developers should absolutely avoid using DbgSetVirtualProtect function because it does not meet development standards
- The current user extends the process Token Should have the TOKEN_FLAGS_DEBUG flag, otherwise it will cause the function to fail
- DbgSetVirtualProtect function in the future version is likely to change, may lead to application crashes, developers should not use this function
- Modifying kernel virtual protection attributes can cause instability, and developers should avoid using this function in any version type
- Developers who are not familiar with the agine kernel extension development or PDK framework, do not easily use DbgSetVirtualProtect function, so as to avoid unpredictable consequences
- DbgSetVirtualProtect function may not support Suphelp64 environment, the developer should be disabled before using Suphelp64
Requirements:
| Keyword | Value |
|---|---|
| Minimum Agine Version | 171012.1 |
| Minimum SDK Version | 171012.1 |
| Header File | h.dbghelp |
| Library Server | kext |