| 1 | // Licensed to the .NET Foundation under one or more agreements. | 
| 2 | // The .NET Foundation licenses this file to you under the MIT license. | 
| 3 | // See the LICENSE file in the project root for more information. | 
| 4 | // | 
| 5 |  | 
| 6 | // | 
| 7 | // =========================================================================== | 
| 8 | // File: shlwapi.h | 
| 9 | // | 
| 10 | // Header for ported shlwapi stuff | 
| 11 | // =========================================================================== | 
| 12 |  | 
| 13 | #ifndef SHLWAPIP_H_INCLUDED | 
| 14 | #define SHLWAPIP_H_INCLUDED | 
| 15 |  | 
| 16 | #define ARRAYSIZE(x)    (sizeof(x)/sizeof(x[0])) | 
| 17 | #define SIZECHARS(sz)   (sizeof(sz)/sizeof(sz[0])) | 
| 18 |  | 
| 19 | #define SIZEOF(x)       sizeof(x) | 
| 20 | #define PRIVATE | 
| 21 | #define PUBLIC | 
| 22 | #ifndef ASSERT | 
| 23 | #define ASSERT          _ASSERTE | 
| 24 | #endif | 
| 25 | #define AssertMsg(f,m)  _ASSERTE(f) | 
| 26 | #define RIP(f)          _ASSERTE(f) | 
| 27 | #define RIPMSG(f,m)     _ASSERTE(f) | 
| 28 |  | 
| 29 | #define IS_VALID_READ_BUFFER(p, t, n)   (p != NULL) | 
| 30 | #define IS_VALID_WRITE_BUFFER(p, t, n)  (p != NULL) | 
| 31 |  | 
| 32 | #define IS_VALID_READ_PTR(p, t)         IS_VALID_READ_BUFFER(p, t, 1) | 
| 33 | #define IS_VALID_WRITE_PTR(p, t)        IS_VALID_WRITE_BUFFER(p, t, 1) | 
| 34 |  | 
| 35 | #define IS_VALID_STRING_PTR(p, c)       (p != NULL) | 
| 36 | #define IS_VALID_STRING_PTRW(p, c)      (p != NULL) | 
| 37 |  | 
| 38 | #endif  // ! SHLWAPIP_H_INCLUDED | 
| 39 |  |