Is there any way to call the Windows Native API functions from the user mode?

拈花ヽ惹草 提交于 2019-12-12 08:27:53

问题


I want to call some Native API function from the user mode with C++. I was wondering if it is possible to circumvent the Windows API interface completely and call directly the Native API functions from the user mode.

If possible then any code examples will be really helpful.


回答1:


Yes it is possible, as all functions are exposed ntdll.dll. However you would need to write your own header file for those API functions you want to use. There is no official documentation on the NT API and it is not really meant to be used directly. But it is possible.

Here is a starting point.



来源:https://stackoverflow.com/questions/5511050/is-there-any-way-to-call-the-windows-native-api-functions-from-the-user-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!