Skip to content

宏判断有问题,导致结构重定义,_PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY在10.0.19041.0中已经存在了 #65

Description

@wnmqaubb08

宏判断有问题,导致结构重定义,_PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY在10.0.19041.0中已经存在了,应该用NTDDI_WIN10_FE更早的版本,如NTDDI_WIN10_19H1或更早
1>d:\memorymodulepp\3rdparty\phnt\include\ntpsapi.h(685): error C2011: “_PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY”:“struct”类型重定义
1>c:\program files (x86)\windows kits\10\include\10.0.19041.0\um\winnt.h(11985): note: 参见“_PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY”的声明

#if !defined(NTDDI_WIN10_FE) || (NTDDI_VERSION < NTDDI_WIN10_FE)
typedef struct _PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY
{
union {
ULONG Flags;
struct {
ULONG EnforceRedirectionTrust : 1;
ULONG AuditRedirectionTrust : 1;
ULONG ReservedFlags : 30;
};
};
} PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY, * PPROCESS_MITIGATION_REDIRECTION_TRUST_POLICY;
#endif

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions