Home > Software engineering >  How to declare this ZwCreateSection function in MFC?
How to declare this ZwCreateSection function in MFC?

Time:10-17

This function in the library files contain? How to declare?

CodePudding user response:

This function in NTDLL. DLL is a kernel function, SDK no corresponding instructions, if you need to use, need to consult the DDK (WDK) related documents, and then use LoadLibrary/GetProcAddress call function to get the function pointer,

However, it is important to note that not all kernel function can be used in the ring3, incorrect use of kernel function may lead to program crashes, and even system downtime,

CodePudding user response:

MSDN not understand?
The Header Wdm. H (include Wdm. H)

CodePudding user response:

reference 1st floor shenyi0106 response:
this function in NTDLL. DLL, a kernel function, SDK no corresponding instructions, if you need to use, need to consult the DDK (WDK) related documents, and then use LoadLibrary/GetProcAddress call function to get the function pointer,

However, it is important to note that not all kernel function can be used in the ring3, incorrect use of kernel function may lead to program crashes, and even system downtime,
# include "Wdm. H" like this? Error: error C1083: cannot open include file: "Wdm. H" : No to the file or directory

CodePudding user response:

This is the interface driver layer, application layer should be directly call don't you ~

CodePudding user response:

In the installation of DDK just line ah?

CodePudding user response:

reference 5 floor qqsq001 reply:
is in the installation of DDK to just go?

You install the DDK, application layer and no way to directly call API kernel driver

CodePudding user response:

Application layer has the corresponding function?

CodePudding user response:

ZwCreateSection file mapping to Shared memory,

CreateFileMapping ()??
  • Related