1 /* 2 * This file and its contents are supplied under the terms of the 3 * Common Development and Distribution License ("CDDL"), version 1.0. 4 * You may only use this file in accordance with the terms of version 5 * 1.0 of the CDDL. 6 * 7 * A full copy of the text of the CDDL should have accompanied this 8 * source. A copy of the CDDL is also available via the Internet at 9 * http://www.illumos.org/license/CDDL. 10 */ 11 12 /* 13 * Copyright 2019, Joyent, Inc. 14 */ 15 16 #ifndef _WINTYPES_H 17 #define _WINTYPES_H 18 19 #ifdef __cplusplus 20 extern "C" { 21 #endif 22 23 /* 24 * While we don't want to, this expects that we have Win32 style type names. 25 * Deal with conversions between Win32 and reality. Remember that Windows is an 26 * ILP32 system, but it is a LLP64 system. 27 */ 28 29 typedef uint8_t BYTE; 30 typedef uint8_t *LPBYTE; 31 typedef const uint8_t *LPCBYTE; 32 typedef const void *LPCVOID; 33 typedef uint32_t DWORD; 34 typedef uint32_t *LPDWORD; 35 typedef int32_t LONG; 36 typedef char *LPSTR; 37 typedef const char *LPCSTR; 38 39 /* 40 * Include a few deprecated types because folks still use them. 41 */ 42 typedef char *LPTSTR; 43 typedef const char *LPCTSTR; 44 typedef char *LPCWSTR; 45 46 #ifdef __cplusplus 47 } 48 #endif 49 50 #endif /* _WINTYPES_H */ 51