From: Marc-André Moreau Date: Sun, 25 Mar 2012 21:08:05 +0000 (-0400) Subject: libfreerdp-sspi: added wintypes.h X-Git-Tag: 1.1.0-beta1~359 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=82542fdb21a8741273b82c366f7373cf0526dca0;p=platform%2Fupstream%2Ffreerdp.git libfreerdp-sspi: added wintypes.h --- diff --git a/include/freerdp/sspi/sspi.h b/include/freerdp/sspi/sspi.h index c9e3edf..9bfde2f 100644 --- a/include/freerdp/sspi/sspi.h +++ b/include/freerdp/sspi/sspi.h @@ -27,6 +27,7 @@ #include #ifdef _WIN32 + #include #include @@ -42,20 +43,7 @@ #else #define FREERDP_SSPI - -typedef char CHAR; -typedef wchar_t WCHAR; - -typedef CHAR* LPSTR; -typedef WCHAR* LPWSTR; - -#ifdef UNICODE -#define _T(x) L ## x -#else -#define _T(x) x -#endif - -typedef uint64* ULONG_PTR; +#include #endif diff --git a/include/freerdp/wintypes.h b/include/freerdp/wintypes.h new file mode 100644 index 0000000..b6b5d2e --- /dev/null +++ b/include/freerdp/wintypes.h @@ -0,0 +1,111 @@ +/** + * FreeRDP: A Remote Desktop Protocol Client + * Windows Data Types + * + * Copyright 2012 Marc-Andre Moreau + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef FREERDP_WINDOWS_TYPES_H +#define FREERDP_WINDOWS_TYPES_H + +/* [MS-DTYP]: Windows Data Types - http://msdn.microsoft.com/en-us/library/cc230273/ */ + +#include +#include +#include + +#ifndef _WIN32 + +#define __int8 char +#define __int16 short +#define __int32 int +#define __int64 long long + +#if __x86_64__ +#define __int3264 __int64 +#else +#define __int3264 __int32 +#endif + +typedef int BOOL, *PBOOL, *LPBOOL; +typedef unsigned char BYTE, *PBYTE, *LPBYTE; +typedef BYTE BOOLEAN, *PBOOLEAN; +typedef wchar_t WCHAR, *PWCHAR; +typedef WCHAR* BSTR; +typedef char CHAR, *PCHAR; +typedef double DOUBLE; +typedef unsigned long DWORD, *PDWORD, *LPDWORD; +typedef unsigned int DWORD32; +typedef unsigned __int64 DWORD64; +typedef unsigned __int64 ULONGLONG; +typedef ULONGLONG DWORDLONG, *PDWORDLONG; +typedef float FLOAT; +typedef unsigned char UCHAR, *PUCHAR; +typedef short SHORT; + +typedef void* HANDLE; +typedef DWORD HCALL; +typedef int INT, *LPINT; +typedef signed char INT8; +typedef signed short INT16; +typedef signed int INT32; +typedef signed __int64 INT64; +typedef const wchar_t* LMCSTR; +typedef WCHAR* LMSTR; +typedef long LONG, *PLONG, *LPLONG; +typedef signed __int64 LONGLONG; +typedef LONG HRESULT; + +typedef __int3264 LONG_PTR; +typedef unsigned __int3264 ULONG_PTR; + +typedef signed int LONG32; +typedef signed __int64 LONG64; +typedef const char* LPCSTR; + +typedef const wchar_t* LPCWSTR; +typedef char* PSTR, *LPSTR; + +typedef wchar_t* LPWSTR, *PWSTR; +typedef long NTSTATUS; + +typedef unsigned __int64 QWORD; +typedef UCHAR* STRING; + +typedef unsigned int UINT; +typedef unsigned char UINT8; +typedef unsigned short UINT16; +typedef unsigned int UINT32; +typedef unsigned __int64 UINT64; +typedef unsigned long ULONG, *PULONG; + +typedef ULONG_PTR DWORD_PTR; +typedef ULONG_PTR SIZE_T; +typedef unsigned int ULONG32; +typedef unsigned __int64 ULONG64; +typedef wchar_t UNICODE; +typedef unsigned short USHORT; +typedef void VOID, *PVOID, *LPVOID; +typedef unsigned short WORD, *PWORD, *LPWORD; + +#ifdef UNICODE +#define _T(x) L ## x +#else +#define _T(x) x +#endif + +#endif + +#endif /* FREERDP_WINDOWS_TYPES_H */