将PVOID AllocateAddress初始化为NULL试试。因为返回的错误码是:STATUS_INVALID_PARAMETER_2 。 第二个参数:BaseAddress A pointer to a variable that will receive the base address of the allocated region of pages. If the initial value of this parameter is non-NULL, the region is allocated starting at the specified virtual address rounded down to the next host page size address boundary. If the initial value of this parameter is NULL, the operating system will determine where to allocate the region.