小编Dus*_*n01的帖子

NTSTATUS 无法解析

我试图制作一个程序,通过进程 ID 获取进程的命令行。我使用 eclipse c++ 和 mingw 编译器

所以我找到了一个教程如何做到这一点,它需要ntstatus就像我包含的教程中那样#include <ntstatus.h>

我添加了代码的第一部分:

typedef NTSTATUS (NTAPI *_NtQueryInformationProcess)(
    HANDLE ProcessHandle,
    DWORD ProcessInformationClass,
    PVOID ProcessInformation,
    DWORD ProcessInformationLength,
    PDWORD ReturnLength
    );
Run Code Online (Sandbox Code Playgroud)

我发现这 3 个错误:

expected primary-expression before '__attribute__

Type 'NTSTATUS' could not be resolved

typedef 'NTSTATUS' is initialized (use decltype instead)
Run Code Online (Sandbox Code Playgroud)

在这一行:typedef NTSTATUS (NTAPI *_NtQueryInformationProcess)(

我用谷歌搜索了这个问题,但我找不到它......

c++ windows mingw nt-native-api

2
推荐指数
1
解决办法
8819
查看次数

标签 统计

c++ ×1

mingw ×1

nt-native-api ×1

windows ×1