How to include NTDDK.H

xiaoxiao2021-03-06  65

As seen from the security focus.

Author: ilsy

NTDDK.H If there is a problem with direct incrude, you should do this:

Namespace NT {

Extern "C" {

#pragma Warning (Disable: 4005) // Macro Redefinition

#pragma Warning (Disable: 4201) // Nonstandard Extension

#include // WRE

#include

#pragma Warning (Default: 4005)

#pragma Warning (Default: 4201)

NTSYSAPI

NTSTATUS

NTAPI

ZwQuerySystemInformation

In system_information_class systeminformationclass,

Out pvoid systemInformation,

In Ulong SystemInformationLength,

OUT Pulong ReturnLength Optional

);

Here are some of the function prototypes and other definitions.

}

}

Using NT :: NTSTATUS;

The function defined in the future will be used in this way:

NT :: zwQuerySysteminformation ()

This way can INCLUDE into Ntddk.h,

Or put all the needs you need to define one .h file does not need NTDDK.H.

转载请注明原文地址:https://www.9cbs.com/read-89903.html

New Post(0)