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:

  1. Developers should absolutely avoid using DbgSetVirtualProtect function because it does not meet development standards
  2. The current user extends the process Token Should have the TOKEN_FLAGS_DEBUG flag, otherwise it will cause the function to fail
  3. DbgSetVirtualProtect function in the future version is likely to change, may lead to application crashes, developers should not use this function
  4. Modifying kernel virtual protection attributes can cause instability, and developers should avoid using this function in any version type
  5. 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
  6. 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

results matching ""

    No results matching ""