Author: mjansen Date: Fri Feb 17 16:12:19 2017 New Revision: 73815 URL: http://svn.reactos.org/svn/reactos?rev=73815&view=rev Log: [SDK][KERNEL32] Add defines for PEB.AppCompatFlags CORE-12768 #resolve
Modified: trunk/reactos/dll/win32/kernel32/client/path.c trunk/reactos/sdk/include/ndk/pstypes.h Modified: trunk/reactos/dll/win32/kernel32/client/path.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/path.c?rev=73815&r1=73814&r2=73815&view=diff ============================================================================== --- trunk/reactos/dll/win32/kernel32/client/path.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/client/path.c [iso-8859-1] Fri Feb 17 16:12:19 2017 @@ -1861,7 +1861,7 @@ if (GetFileAttributesW(lpszLongPath) == INVALID_FILE_ATTRIBUTES) { /* Windows checks for an application compatibility flag to allow this */ - if (!(NtCurrentPeb()) || !(NtCurrentPeb()->AppCompatFlags.LowPart & 1)) + if (!(NtCurrentPeb()) || !(NtCurrentPeb()->AppCompatFlags.LowPart & GetShortPathNameNT4)) { /* It doesn't, so fail */ ReturnLength = 0; Modified: trunk/reactos/sdk/include/ndk/pstypes.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/include/ndk/pstypes.h?rev=73815&r1=73814&r2=73815&view=diff ============================================================================== --- trunk/reactos/sdk/include/ndk/pstypes.h [iso-8859-1] (original) +++ trunk/reactos/sdk/include/ndk/pstypes.h [iso-8859-1] Fri Feb 17 16:12:19 2017 @@ -735,6 +735,31 @@ } Wx86ThreadState, *PWx86ThreadState; #endif +// +// PEB.AppCompatFlags +// Tag FLAG_MASK_KERNEL +// +typedef enum _APPCOMPAT_FLAGS +{ + GetShortPathNameNT4 = 0x1, + GetDiskFreeSpace2GB = 0x8, + FTMFromCurrentAPI = 0x20, + DisallowCOMBindingNotifications = 0x40, + Ole32ValidatePointers = 0x80, + DisableCicero = 0x100, + Ole32EnableAsyncDocFile = 0x200, + EnableLegacyExceptionHandlinginOLE = 0x400, + DisableAdvanceRPCClientHardening = 0x800, + DisableMaybeNULLSizeisConsistencycheck = 0x1000, + DisableAdvancedRPCrangeCheck = 0x4000, + EnableLegacyExceptionHandlingInRPC = 0x8000, + EnableLegacyNTFSFlagsForDocfileOpens = 0x10000, + DisableNDRIIDConsistencyCheck = 0x20000, + UserDisableForwarderPatch = 0x40000, + DisableNewWMPAINTDispatchInOLE = 0x100000, + DoNotAddToCache = 0x80000000, +} APPCOMPAT_FLAGS; + // // Process Environment Block (PEB)