|
Last change
on this file since 1202 was 1166, checked in by rossy, 4 years ago |
|
Daodan: Replace MinGW build env with an up-to-date MSYS2 env
|
|
File size:
750 bytes
|
| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * This file has no copyright assigned and is placed in the Public Domain.
|
|---|
| 3 | * This file is part of the mingw-w64 runtime package.
|
|---|
| 4 | * No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
|---|
| 5 | */
|
|---|
| 6 |
|
|---|
| 7 | #ifndef SPError_h
|
|---|
| 8 | #define SPError_h
|
|---|
| 9 |
|
|---|
| 10 | #include <winapifamily.h>
|
|---|
| 11 |
|
|---|
| 12 | #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
|---|
| 13 |
|
|---|
| 14 | #include <winerror.h>
|
|---|
| 15 |
|
|---|
| 16 | #define FACILITY_SAPI FACILITY_ITF
|
|---|
| 17 | #define SAPI_ERROR_BASE 0x5000
|
|---|
| 18 |
|
|---|
| 19 | #define MAKE_SAPI_HRESULT(sev, err) MAKE_HRESULT(sev, FACILITY_SAPI, err)
|
|---|
| 20 | #define MAKE_SAPI_ERROR(err) MAKE_SAPI_HRESULT(SEVERITY_ERROR, err+SAPI_ERROR_BASE)
|
|---|
| 21 | #define MAKE_SAPI_SCODE(scode) MAKE_SAPI_HRESULT(SEVERITY_SUCCESS, scode+SAPI_ERROR_BASE)
|
|---|
| 22 |
|
|---|
| 23 | #define SPERR_NOT_FOUND MAKE_SAPI_ERROR(0x003a)
|
|---|
| 24 |
|
|---|
| 25 | #endif
|
|---|
| 26 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.