1da6c28aaSamw /* 2da6c28aaSamw * CDDL HEADER START 3da6c28aaSamw * 4da6c28aaSamw * The contents of this file are subject to the terms of the 5da6c28aaSamw * Common Development and Distribution License (the "License"). 6da6c28aaSamw * You may not use this file except in compliance with the License. 7da6c28aaSamw * 8da6c28aaSamw * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9da6c28aaSamw * or http://www.opensolaris.org/os/licensing. 10da6c28aaSamw * See the License for the specific language governing permissions 11da6c28aaSamw * and limitations under the License. 12da6c28aaSamw * 13da6c28aaSamw * When distributing Covered Code, include this CDDL HEADER in each 14da6c28aaSamw * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15da6c28aaSamw * If applicable, add the following below this CDDL HEADER, with the 16da6c28aaSamw * fields enclosed by brackets "[]" replaced with your own identifying 17da6c28aaSamw * information: Portions Copyright [yyyy] [name of copyright owner] 18da6c28aaSamw * 19da6c28aaSamw * CDDL HEADER END 20da6c28aaSamw */ 21*3299f39fSGordon Ross 22da6c28aaSamw /* 23a0aa776eSAlan Wright * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24da6c28aaSamw * Use is subject to license terms. 25*3299f39fSGordon Ross * 26*3299f39fSGordon Ross * Copyright 2013 Nexenta Systems, Inc. All rights reserved. 27da6c28aaSamw */ 28da6c28aaSamw 29*3299f39fSGordon Ross #ifndef _SMB_WINTYPES_H 30*3299f39fSGordon Ross #define _SMB_WINTYPES_H 31da6c28aaSamw 328d7e4166Sjose borrego #include <sys/types.h> 33da6c28aaSamw 34da6c28aaSamw /* 35da6c28aaSamw * Standard win32 types and definitions. 36da6c28aaSamw */ 37da6c28aaSamw 38da6c28aaSamw #ifdef __cplusplus 39da6c28aaSamw extern "C" { 40da6c28aaSamw #endif 41da6c28aaSamw 42da6c28aaSamw #ifndef UNSIGNED_TYPES_DEFINED 43da6c28aaSamw #define UNSIGNED_TYPES_DEFINED 44da6c28aaSamw 458d7e4166Sjose borrego typedef uint8_t BYTE; 468d7e4166Sjose borrego typedef uint16_t WORD; 478d7e4166Sjose borrego typedef uint32_t DWORD; 48*3299f39fSGordon Ross typedef DWORD ntstatus_t; 49*3299f39fSGordon Ross 50*3299f39fSGordon Ross /* pointers to those types */ 51*3299f39fSGordon Ross typedef BYTE *LPBYTE; 52*3299f39fSGordon Ross typedef WORD *LPWORD; 53*3299f39fSGordon Ross typedef DWORD *LPDWORD; 54*3299f39fSGordon Ross 55*3299f39fSGordon Ross /* Note: Internally, this is always a UTF-8 string. */ 568d7e4166Sjose borrego typedef uint8_t *LPTSTR; 57da6c28aaSamw 58da6c28aaSamw #endif /* UNSIGNED_TYPES_DEFINED */ 59da6c28aaSamw 60da6c28aaSamw #ifndef ANY_SIZE_ARRAY 61da6c28aaSamw #define ANY_SIZE_ARRAY 1 62da6c28aaSamw #endif /* ANY_SIZE_ARRAY */ 63da6c28aaSamw 64*3299f39fSGordon Ross /* CONTEXT_HANDLE now in ndrtypes.ndl */ 658d7e4166Sjose borrego 66da6c28aaSamw #ifdef __cplusplus 67da6c28aaSamw } 68da6c28aaSamw #endif 69da6c28aaSamw 70*3299f39fSGordon Ross #endif /* _SMB_WINTYPES_H */ 71