| lzexpand.h (6.1.7600.16385-Windows_7.0) | | lzexpand.h (6.3.9600.16384-Windows_8.1) |
| | |
| skipping to change at line 22 | | skipping to change at line 22 |
| | |
| Author: | | Author: |
| | |
| Revision History: | | Revision History: |
| | |
| --*/ | | --*/ |
| | |
| #ifndef _LZEXPAND_ | | #ifndef _LZEXPAND_ |
| #define _LZEXPAND_ | | #define _LZEXPAND_ |
| | |
|
| | #include <winapifamily.h> |
| | |
| #ifdef __cplusplus | | #ifdef __cplusplus |
| extern "C" { | | extern "C" { |
| #endif | | #endif |
| | |
|
| | #pragma region Desktop Family |
| | #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) |
| | |
| /* | | /* |
| ** Error Return Codes | | ** Error Return Codes |
| */ | | */ |
| | |
| #define LZERROR_BADINHANDLE (-1) /* invalid input handle */ | | #define LZERROR_BADINHANDLE (-1) /* invalid input handle */ |
| #define LZERROR_BADOUTHANDLE (-2) /* invalid output handle */ | | #define LZERROR_BADOUTHANDLE (-2) /* invalid output handle */ |
| #define LZERROR_READ (-3) /* corrupt compressed file format */ | | #define LZERROR_READ (-3) /* corrupt compressed file format */ |
| #define LZERROR_WRITE (-4) /* out of space for output file */ | | #define LZERROR_WRITE (-4) /* out of space for output file */ |
| #define LZERROR_GLOBALLOC (-5) /* insufficient memory for LZFile struct */ | | #define LZERROR_GLOBALLOC (-5) /* insufficient memory for LZFile struct */ |
| #define LZERROR_GLOBLOCK (-6) /* bad global handle */ | | #define LZERROR_GLOBLOCK (-6) /* bad global handle */ |
| #define LZERROR_BADVALUE (-7) /* input parameter out of acceptable range*/ | | #define LZERROR_BADVALUE (-7) /* input parameter out of acceptable range*/ |
| #define LZERROR_UNKNOWNALG (-8) /* compression algorithm not recognized */ | | #define LZERROR_UNKNOWNALG (-8) /* compression algorithm not recognized */ |
| | |
| /* | | /* |
| ** Prototypes | | ** Prototypes |
| */ | | */ |
| | |
|
| __success(return >= 0) | | _Success_(return >= 0) |
| __checkReturn | | _Check_return_ |
| INT | | INT |
| APIENTRY | | APIENTRY |
| LZStart( | | LZStart( |
| VOID | | VOID |
| ); | | ); |
| | |
| VOID | | VOID |
| APIENTRY | | APIENTRY |
| LZDone( | | LZDone( |
| VOID | | VOID |
| ); | | ); |
| | |
|
| __success(return >= 0) | | _Success_(return >= 0) |
| __checkReturn | | _Check_return_ |
| LONG | | LONG |
| APIENTRY | | APIENTRY |
| CopyLZFile( | | CopyLZFile( |
|
| __in INT hfSource, | | _In_ INT hfSource, |
| __in INT hfDest | | _In_ INT hfDest |
| ); | | ); |
| | |
|
| __success(return >= 0) | | _Success_(return >= 0) |
| __checkReturn | | _Check_return_ |
| LONG | | LONG |
| APIENTRY | | APIENTRY |
| LZCopy( | | LZCopy( |
|
| __in INT hfSource, | | _In_ INT hfSource, |
| __in INT hfDest | | _In_ INT hfDest |
| ); | | ); |
| | |
|
| __success(return >= 0) | | _Success_(return >= 0) |
| __checkReturn | | _Check_return_ |
| INT | | INT |
| APIENTRY | | APIENTRY |
| LZInit( | | LZInit( |
|
| __in INT hfSource | | _In_ INT hfSource |
| ); | | ); |
| | |
|
| __success(return >= 0) | | _Success_(return >= 0) |
| __checkReturn | | _Check_return_ |
| INT | | INT |
| APIENTRY | | APIENTRY |
| GetExpandedNameA( | | GetExpandedNameA( |
|
| __in LPSTR lpszSource, | | _In_ LPSTR lpszSource, |
| __out_ecount(MAX_PATH) LPSTR lpszBuffer | | _Out_writes_(MAX_PATH) LPSTR lpszBuffer |
| ); | | ); |
|
| __success(return >= 0) | | _Success_(return >= 0) |
| __checkReturn | | _Check_return_ |
| INT | | INT |
| APIENTRY | | APIENTRY |
| GetExpandedNameW( | | GetExpandedNameW( |
|
| __in LPWSTR lpszSource, | | _In_ LPWSTR lpszSource, |
| __out_ecount(MAX_PATH) LPWSTR lpszBuffer | | _Out_writes_(MAX_PATH) LPWSTR lpszBuffer |
| ); | | ); |
| #ifdef UNICODE | | #ifdef UNICODE |
| #define GetExpandedName GetExpandedNameW | | #define GetExpandedName GetExpandedNameW |
| #else | | #else |
| #define GetExpandedName GetExpandedNameA | | #define GetExpandedName GetExpandedNameA |
| #endif // !UNICODE | | #endif // !UNICODE |
| | |
|
| __success(return >= 0) | | _Success_(return >= 0) |
| __checkReturn | | _Check_return_ |
| INT | | INT |
| APIENTRY | | APIENTRY |
| LZOpenFileA( | | LZOpenFileA( |
|
| __in LPSTR lpFileName, | | _In_ LPSTR lpFileName, |
| __inout LPOFSTRUCT lpReOpenBuf, | | _Inout_ LPOFSTRUCT lpReOpenBuf, |
| __in WORD wStyle | | _In_ WORD wStyle |
| ); | | ); |
|
| __success(return >= 0) | | _Success_(return >= 0) |
| __checkReturn | | _Check_return_ |
| INT | | INT |
| APIENTRY | | APIENTRY |
| LZOpenFileW( | | LZOpenFileW( |
|
| __in LPWSTR lpFileName, | | _In_ LPWSTR lpFileName, |
| __inout LPOFSTRUCT lpReOpenBuf, | | _Inout_ LPOFSTRUCT lpReOpenBuf, |
| __in WORD wStyle | | _In_ WORD wStyle |
| ); | | ); |
| #ifdef UNICODE | | #ifdef UNICODE |
| #define LZOpenFile LZOpenFileW | | #define LZOpenFile LZOpenFileW |
| #else | | #else |
| #define LZOpenFile LZOpenFileA | | #define LZOpenFile LZOpenFileA |
| #endif // !UNICODE | | #endif // !UNICODE |
| | |
|
| __success(return >= 0) | | _Success_(return >= 0) |
| __checkReturn | | _Check_return_ |
| LONG | | LONG |
| APIENTRY | | APIENTRY |
| LZSeek( | | LZSeek( |
|
| __in INT hFile, | | _In_ INT hFile, |
| __in LONG lOffset, | | _In_ LONG lOffset, |
| __in INT iOrigin | | _In_ INT iOrigin |
| ); | | ); |
| | |
|
| __success(return >= 0) | | _Success_(return >= 0) |
| __checkReturn | | _Check_return_ |
| INT | | INT |
| APIENTRY | | APIENTRY |
| LZRead( | | LZRead( |
|
| __in INT hFile, | | _In_ INT hFile, |
| __out_bcount_part(cbRead, return) CHAR* lpBuffer, | | _Out_writes_bytes_to_(cbRead, return) CHAR* lpBuffer, |
| __in INT cbRead | | _In_ INT cbRead |
| ); | | ); |
| | |
| VOID | | VOID |
| APIENTRY | | APIENTRY |
| LZClose( | | LZClose( |
|
| __in INT hFile | | _In_ INT hFile |
| ); | | ); |
| | |
|
| | #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ |
| | #pragma endregion |
| | |
| #ifdef __cplusplus | | #ifdef __cplusplus |
| } | | } |
| #endif | | #endif |
| | |
| #endif // _LZEXPAND_ | | #endif // _LZEXPAND_ |
| | |
| End of changes. 23 change blocks. |
| 42 lines changed or deleted | | 50 lines changed or added |
|