| msdelta.h (6.3.9600.17415-Windows 8.1) | | msdelta.h (10.0.10586.0-Windows 10 1511 10586.494) |
| /* Copyright (c) Microsoft Corporation. All rights reserved. */ | | /* Copyright (c) Microsoft Corporation. All rights reserved. */ |
| | |
| #pragma once | | #pragma once |
| #include <winapifamily.h> | | #include <winapifamily.h> |
| | |
|
| #pragma region Desktop Family | | #pragma region Desktop Family or CoreSetup Package |
| #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) | | #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_CORE |
| | SETUP) |
| | |
| /** Delta Compression Engine API. */ | | /** Delta Compression Engine API. */ |
| | |
| #include <windows.h> | | #include <windows.h> |
| | |
| /** For crypto algorithm identifiers, ALG_ID. */ | | /** For crypto algorithm identifiers, ALG_ID. */ |
| #include <wincrypt.h> | | #include <wincrypt.h> |
| | |
| /** Allows anonymous structs and unions. */ | | /** Allows anonymous structs and unions. */ |
| #pragma warning( disable: 4201 ) | | #pragma warning( disable: 4201 ) |
| | |
| skipping to change at line 91 | | skipping to change at line 91 |
| | |
| /** File type for I386 Portable Executable files with CLI4 transform. */ | | /** File type for I386 Portable Executable files with CLI4 transform. */ |
| #define DELTA_FILE_TYPE_CLI4_I386 ( (DELTA_FILE_TYPE) 0x00000010 ) | | #define DELTA_FILE_TYPE_CLI4_I386 ( (DELTA_FILE_TYPE) 0x00000010 ) |
| | |
| /** File type for AMD64 Portable Executable files with CLI4 transform. */ | | /** File type for AMD64 Portable Executable files with CLI4 transform. */ |
| #define DELTA_FILE_TYPE_CLI4_AMD64 ( (DELTA_FILE_TYPE) 0x00000020 ) | | #define DELTA_FILE_TYPE_CLI4_AMD64 ( (DELTA_FILE_TYPE) 0x00000020 ) |
| | |
| /** File type for ARM Portable Executable files with CLI4 transform. */ | | /** File type for ARM Portable Executable files with CLI4 transform. */ |
| #define DELTA_FILE_TYPE_CLI4_ARM ( (DELTA_FILE_TYPE) 0x00000040 ) | | #define DELTA_FILE_TYPE_CLI4_ARM ( (DELTA_FILE_TYPE) 0x00000040 ) |
| | |
|
| | /** File type for ARM64 Portable Executable files with CLI4 transform. */ |
| | #define DELTA_FILE_TYPE_CLI4_ARM64 ( (DELTA_FILE_TYPE) 0x00000080 ) |
| | |
| /** File type set that treats any file as raw. */ | | /** File type set that treats any file as raw. */ |
| #define DELTA_FILE_TYPE_SET_RAW_ONLY ( DELTA_FILE_TYPE_RAW ) | | #define DELTA_FILE_TYPE_SET_RAW_ONLY ( DELTA_FILE_TYPE_RAW ) |
| | |
| /** File type set that distinguishes I386, IA64 and AMD64 Portable Executable fi
le and treats others as raw. */ | | /** File type set that distinguishes I386, IA64 and AMD64 Portable Executable fi
le and treats others as raw. */ |
| #define DELTA_FILE_TYPE_SET_EXECUTABLES_1 ( DELTA_FILE_TYPE_RAW | \ | | #define DELTA_FILE_TYPE_SET_EXECUTABLES_1 ( DELTA_FILE_TYPE_RAW | \ |
| DELTA_FILE_TYPE_I386 | \ | | DELTA_FILE_TYPE_I386 | \ |
| DELTA_FILE_TYPE_IA64 | \ | | DELTA_FILE_TYPE_IA64 | \ |
| DELTA_FILE_TYPE_AMD64 ) | | DELTA_FILE_TYPE_AMD64 ) |
| | |
| #define DELTA_FILE_TYPE_SET_EXECUTABLES DELTA_FILE_TYPE_SET_EXECUTABLES_1 | | #define DELTA_FILE_TYPE_SET_EXECUTABLES DELTA_FILE_TYPE_SET_EXECUTABLES_1 |
| | |
| /** File type set that distinguishes I386, IA64, ARM, and AMD64 Portable Executa
ble file and treats others as raw. */ | | /** File type set that distinguishes I386, IA64, ARM, and AMD64 Portable Executa
ble file and treats others as raw. */ |
| #define DELTA_FILE_TYPE_SET_EXECUTABLES_2 ( DELTA_FILE_TYPE_RAW | \ | | #define DELTA_FILE_TYPE_SET_EXECUTABLES_2 ( DELTA_FILE_TYPE_RAW | \ |
| DELTA_FILE_TYPE_CLI4_I386 | \ | | DELTA_FILE_TYPE_CLI4_I386 | \ |
| DELTA_FILE_TYPE_IA64 | \ | | DELTA_FILE_TYPE_IA64 | \ |
| DELTA_FILE_TYPE_CLI4_AMD64 | \ | | DELTA_FILE_TYPE_CLI4_AMD64 | \ |
| DELTA_FILE_TYPE_CLI4_ARM ) | | DELTA_FILE_TYPE_CLI4_ARM ) |
| | |
|
| #define DELTA_FILE_TYPE_SET_EXECUTABLES_LATEST DELTA_FILE_TYPE_SET_EXECUTABLES_ | | /** File type set that distinguishes I386, IA64, ARM, ARM64, and AMD64 Portable |
| 2 | | Executable file and treats others as raw. */ |
| | #define DELTA_FILE_TYPE_SET_EXECUTABLES_3 ( DELTA_FILE_TYPE_RAW | \ |
| | DELTA_FILE_TYPE_CLI4_I386 | \ |
| | DELTA_FILE_TYPE_IA64 | \ |
| | DELTA_FILE_TYPE_CLI4_AMD64 | \ |
| | DELTA_FILE_TYPE_CLI4_ARM | \ |
| | DELTA_FILE_TYPE_CLI4_ARM64 ) |
| | |
| | #define DELTA_FILE_TYPE_SET_EXECUTABLES_LATEST DELTA_FILE_TYPE_SET_EXECUTABLES_ |
| | 3 |
| | |
| /** Type for msdelta flags. */ | | /** Type for msdelta flags. */ |
| typedef __int64 DELTA_FLAG_TYPE; | | typedef __int64 DELTA_FLAG_TYPE; |
| | |
| /** No flags. */ | | /** No flags. */ |
| #define DELTA_FLAG_NONE ( (DELTA_FLAG_TYPE)0x00000000 ) | | #define DELTA_FLAG_NONE ( (DELTA_FLAG_TYPE)0x00000000 ) |
| | |
| /** Allow application of legacy PA19 deltas by mspatcha.dll. */ | | /** Allow application of legacy PA19 deltas by mspatcha.dll. */ |
| #define DELTA_APPLY_FLAG_ALLOW_PA19 ( (DELTA_FLAG_TYPE)0x00000001 ) | | #define DELTA_APPLY_FLAG_ALLOW_PA19 ( (DELTA_FLAG_TYPE)0x00000001 ) |
| | |
| | |
| skipping to change at line 189 | | skipping to change at line 200 |
| | |
| /** Transform pdata of source ARM PE. */ | | /** Transform pdata of source ARM PE. */ |
| #define DELTA_FLAG_ARM_PDATA ( (DELTA_FLAG_TYPE)0x00100000 ) /* f
lags[ 20 ] */ | | #define DELTA_FLAG_ARM_PDATA ( (DELTA_FLAG_TYPE)0x00100000 ) /* f
lags[ 20 ] */ |
| | |
| /** Transform CLI4 Metadata of source PE. */ | | /** Transform CLI4 Metadata of source PE. */ |
| #define DELTA_FLAG_CLI4_METADATA ( (DELTA_FLAG_TYPE)0x00200000 ) /* f
lags[ 21 ] */ | | #define DELTA_FLAG_CLI4_METADATA ( (DELTA_FLAG_TYPE)0x00200000 ) /* f
lags[ 21 ] */ |
| | |
| /** Transform CLI4 instructions of source PE. */ | | /** Transform CLI4 instructions of source PE. */ |
| #define DELTA_FLAG_CLI4_DISASM ( (DELTA_FLAG_TYPE)0x00400000 ) /* f
lags[ 22 ] */ | | #define DELTA_FLAG_CLI4_DISASM ( (DELTA_FLAG_TYPE)0x00400000 ) /* f
lags[ 22 ] */ |
| | |
|
| | /** Transform instructions of source ARM PE. */ |
| | #define DELTA_FLAG_ARM64_DISASM ( (DELTA_FLAG_TYPE)0x00800000 ) /* f |
| | lags[ 23 ] */ |
| | |
| | /** Transform pdata of source ARM PE. */ |
| | #define DELTA_FLAG_ARM64_PDATA ( (DELTA_FLAG_TYPE)0x01000000 ) /* f |
| | lags[ 24 ] */ |
| | |
| /** List the default transform combination for individule ISA */ | | /** List the default transform combination for individule ISA */ |
| #define DELTA_DEFAULT_FLAGS_RAW ( DELTA_FLAG_NONE ) | | #define DELTA_DEFAULT_FLAGS_RAW ( DELTA_FLAG_NONE ) |
| | |
| #define DELTA_DEFAULT_FLAGS_I386 ( DELTA_FLAG_MARK | \ | | #define DELTA_DEFAULT_FLAGS_I386 ( DELTA_FLAG_MARK | \ |
| DELTA_FLAG_IMPORTS | \ | | DELTA_FLAG_IMPORTS | \ |
| DELTA_FLAG_EXPORTS | \ | | DELTA_FLAG_EXPORTS | \ |
| DELTA_FLAG_RESOURCES | \ | | DELTA_FLAG_RESOURCES | \ |
| DELTA_FLAG_RELOCS | \ | | DELTA_FLAG_RELOCS | \ |
| DELTA_FLAG_I386_SMASHLOCK | \ | | DELTA_FLAG_I386_SMASHLOCK | \ |
| DELTA_FLAG_I386_JMPS | \ | | DELTA_FLAG_I386_JMPS | \ |
| | |
| skipping to change at line 260 | | skipping to change at line 277 |
| DELTA_FLAG_IMPORTS | \ | | DELTA_FLAG_IMPORTS | \ |
| DELTA_FLAG_EXPORTS | \ | | DELTA_FLAG_EXPORTS | \ |
| DELTA_FLAG_RESOURCES | \ | | DELTA_FLAG_RESOURCES | \ |
| DELTA_FLAG_RELOCS | \ | | DELTA_FLAG_RELOCS | \ |
| DELTA_FLAG_ARM_DISASM | \ | | DELTA_FLAG_ARM_DISASM | \ |
| DELTA_FLAG_ARM_PDATA | \ | | DELTA_FLAG_ARM_PDATA | \ |
| DELTA_FLAG_UNBIND | \ | | DELTA_FLAG_UNBIND | \ |
| DELTA_FLAG_CLI4_DISASM | \ | | DELTA_FLAG_CLI4_DISASM | \ |
| DELTA_FLAG_CLI4_METADATA ) | | DELTA_FLAG_CLI4_METADATA ) |
| | |
|
| | #define DELTA_CLI4_FLAGS_ARM64 ( DELTA_FLAG_MARK | \ |
| | DELTA_FLAG_IMPORTS | \ |
| | DELTA_FLAG_EXPORTS | \ |
| | DELTA_FLAG_RESOURCES | \ |
| | DELTA_FLAG_RELOCS | \ |
| | DELTA_FLAG_ARM64_DISASM | \ |
| | DELTA_FLAG_ARM64_PDATA | \ |
| | DELTA_FLAG_UNBIND | \ |
| | DELTA_FLAG_CLI4_DISASM | \ |
| | DELTA_FLAG_CLI4_METADATA ) |
| | |
| /** Maximal allowed size of hash in bytes. */ | | /** Maximal allowed size of hash in bytes. */ |
| #define DELTA_MAX_HASH_SIZE 32 | | #define DELTA_MAX_HASH_SIZE 32 |
| | |
| /** Hash structure. */ | | /** Hash structure. */ |
| typedef struct _DELTA_HASH | | typedef struct _DELTA_HASH |
| { | | { |
| /** Size of hash in bytes. Does not exceed DELTA_MAX_HASH_SIZE. */ | | /** Size of hash in bytes. Does not exceed DELTA_MAX_HASH_SIZE. */ |
| DWORD HashSize; | | DWORD HashSize; |
| | |
| /** Hash value. */ | | /** Hash value. */ |
| | |
| skipping to change at line 632 | | skipping to change at line 660 |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| DeltaFree( | | DeltaFree( |
| _In_ LPVOID lpMemory | | _In_ LPVOID lpMemory |
| ); | | ); |
| | |
| #ifdef __cplusplus | | #ifdef __cplusplus |
| } | | } |
| #endif /* __cplusplus */ | | #endif /* __cplusplus */ |
| | |
|
| #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ | | #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PK
G_CORESETUP) */ |
| #pragma endregion | | #pragma endregion |
| | |
| End of changes. 6 change blocks. |
| 5 lines changed or deleted | | 37 lines changed or added |
|