#ifndef _WINNT_
#define _WINNT_

#include <Wine/basetsd.h>
#include <Wine/guiddef.h>

#ifndef RC_INVOKED
#include <ctype.h>
#include <stddef.h>
#include <string.h>
#endif

#include <Wine/pshpack2.h>
#include <Wine/poppack.h>

#ifdef __cplusplus
extern "C" {
#endif

//#include <Wine/wtypes.h>//hys
#define SUBLANG_DEFAULT                  0x01    /* user default */
#define MAKELANGID(p, s)        ((((WORD)(s))<<10) | (WORD)(p))
#define LANG_NEUTRAL        0x00
#define	DLL_PROCESS_ATTACH	1	
#define	DLL_THREAD_ATTACH	2
#define	DLL_THREAD_DETACH	3
#define	DLL_PROCESS_DETACH	0

typedef void *HANDLE;
typedef char            CHAR,       *PCHAR;
typedef CHAR           *PSTR,       *LPSTR,     *NPSTR;
#ifdef WINE_UNICODE_NATIVE
typedef wchar_t         WCHAR,      *PWCHAR;
#else
typedef unsigned short  WCHAR,      *PWCHAR;
#endif
typedef WCHAR          *PWSTR,      *LPWSTR,    *NWPSTR;
#ifdef _MSC_VER
typedef long            LONG,       *PLONG;
#else
typedef int             LONG,       *PLONG;
#endif
typedef const CHAR     *PCSTR,      *LPCSTR;

#ifndef __WINESRC__
# ifdef UNICODE
# ifndef _TCHAR_DEFINED
typedef WCHAR           TCHAR,      *PTCHAR;
# define _TCHAR_DEFINED
#endif
typedef LPWSTR          PTSTR,       LPTSTR;
typedef LPCWSTR         PCTSTR,      LPCTSTR;
#  define __TEXT(string) L##string
# else  /* UNICODE */
# ifndef _TCHAR_DEFINED
typedef CHAR            TCHAR,      *PTCHAR;
# define _TCHAR_DEFINED
# endif
typedef LPSTR           PTSTR,       LPTSTR;
typedef LPCSTR          PCTSTR,      LPCTSTR;
#  define __TEXT(string) string
# endif /* UNICODE */
# define TEXT(quote) __TEXT(quote)
#endif   /* __WINESRC__ */


#ifdef __cplusplus
}
#endif

#endif  /* _WINNT_ */

