download basetsd.h
Language: C
LOC: 130
Project Info
ReactOS
Server: ReactOS
Type: svn
...actos\reactos\include\psdk\
   accctrl.h
   aclapi.h
   aclui.h
   activscp.idl
   advpub.h
   af_irda.h
   afxres.h
   appmgmt.h
   authz.h
   axcore.idl
   axextend.idl
   basetsd.h
   basetyps.h
   cderr.h
   cguid.h
   clusapi.h
   comcat.idl
   commctrl.h
   commdlg.h
   common.ver
   control.idl
   cpl.h
   cplext.h
   cryptuiapi.h
   custcntl.h
   cvconst.h
   d3d.h
   d3d8.h
   d3d8types.h
   d3d9.h
   d3d9types.h
   d3drm.h
   d3drmdef.h
   d3dtypes.h
   d3dx8core.h
   dbghelp.h
   dbinit.idl
   dbprop.idl
   dbs.idl
   dbt.h
   dde.h
   ddeml.h
   ddrawgdi.h
   devenum.idl
   devguid.h
   dhcpcapi.h
   dhcpcsdk.h
   digitalv.h
   dinput.h
   dispex.idl
   dlgs.h
   docobj.idl
   downloadmgr.idl
   dplay.h
   dplobby.h
   dsdriver.h
   dsgetdc.h
   dsound.h
   dsrole.h
   dvdevcod.h
   dyngraph.idl
   edevdefs.h
   errorrep.h
   evntrace.h
   exdisp.idl
   exdispid.h
   fci.h
   fdi.h
   gdiplus.h
   gdiplusbase.h
   gdiplusbrush.h
   gdipluscolor.h
   gdipluscolormatrix.h
   gdipluseffects.h
   gdiplusenums.h
   gdiplusflat.h
   gdiplusgpstubs.h
   gdiplusgraphics.h
   gdiplusheaders.h
   gdiplusimageattributes.h
   gdiplusimaging.h
   gdiplusinit.h
   gdipluslinecaps.h
   gdiplusmatrix.h
   gdiplusmem.h
   gdiplusmetafile.h
   gdiplusmetaheader.h
   gdipluspath.h
   gdipluspen.h
   gdipluspixelformats.h
   gdiplusstringformat.h
   gdiplustypes.h
   guiddef.h
   hlink.idl
   htiframe.idl
   htmlhelp.h
   httpext.h
   iads.idl
   icmpapi.h
   idispids.h
   imagehlp.h
   imm.h
   in6addr.h
   inaddr.h
   indexsrv.idl
   initguid.h
   intrin.h
   intrin_ppc.h
   intrin_x86.h
   intrin_x86_64.h
   intshcut.h
   ipexport.h
   iphlpapi.h
   ipifcons.h
   iprtrmib.h
   iptypes.h
   isguids.h
   ks.h
   ksmedia.h
   largeint.h
   lm.h
   lmaccess.h
   lmalert.h
   lmapibuf.h
   lmat.h
   lmaudit.h
   lmchdev.h
   lmconfig.h
   lmcons.h
   lmerr.h
   lmerrlog.h
   lmjoin.h
   lmmsg.h
   lmremutl.h
   lmrepl.h
   lmserver.h
   lmshare.h
   lmsname.h
   lmstats.h
   lmsvc.h
   lmuse.h
   lmuseflg.h
   lmwksta.h
   lzexpand.h
   mapi.h
   mapicode.h
   mapidefs.h
   mapiguid.h
   mapitags.h
   mapiutil.h
   mapival.h
   mapix.h
   mciavi.h
   mcx.h
   mgmtapi.h
   mimeinfo.idl
   mlang.idl
   mmddk.h
   mmsystem.h
   mscat.h
   mshtmcid.h
   mshtmdid.h
   mshtmhst.idl
   mshtml.idl
   msi.h
   msidefs.h
   msiquery.h
   mssip.h
   mswsock.h
   msxml.idl
   msxml2.idl
   msxmldid.h
   multimon.h
   nb30.h
   nddeapi.h
   ndrtypes.h
   newdev.h
   npapi.h
   nspapi.h
   ntdef.h
   ntdll.h
   ntgdi.h
   ntldap.h
   ntsecapi.h
   ntsecpkg.h
   ntstatus.h
   ntverp.h
   oaidl.idl
   objbase.h
   objfwd.h
   objidl.idl
   objsafe.idl
   objsel.h
   ocidl.idl
   ocmm.idl
   odbcinst.h
   ole.h
   ole2.h
   ole2ver.h
   oleacc.h
   oleauto.h
   olectl.h
   olectlid.h
   oledb.idl
   oledlg.h
   oleidl.idl
   optary.idl
   pbt.h
   poppack.h
   powrprof.h
   propidl.idl
   prsht.h
   psapi.h
   psdk.rbuild
   pshpack1.h
   pshpack2.h
   pshpack4.h
   pshpack8.h
   pshpck16.h
   pstore.idl
   qos.h
   rapi.h
   ras.h
   rasdlg.h
   raserror.h
   rassapi.h
   README.w32api
   reason.h
   regstr.h
   richedit.h
   richole.idl
   rpc.h
   rpcdce.h
   rpcdce2.h
   rpcdcep.h
   rpcndr.h
   rpcnsi.h
   rpcnsip.h
   rpcnterr.h
   rpcproxy.h
   schannel.h
   schemadef.h
   schnlsp.h
   scrnsave.h
   sddl.h
   sdkddkver.h
   secext.h
   security.h
   sensapi.h
   sensevts.idl
   servprov.idl
   setupapi.h
   shellapi.h
   shldisp.idl
   shlguid.h
   shlobj.h
   shlwapi.h
   shobjidl.idl
   shtypes.idl
   snmp.h
   softpub.h
   sql.h
   sqlext.h
   sqltypes.h
   sqlucode.h
   sspi.h
   stdole2.idl
   strmif.idl
   subauth.h
   svcguid.h
   tchar.h
   tcpioctl.h
   textserv.h
   tlhelp32.h
   tmschema.h
   tom.idl
   unknwn.idl
   urlhist.idl
   urlmon.idl
   userenv.h
   usp10.h
   uxtheme.h
   vfw.h
   vfwmsgs.h
   w32api.h
   wdbgexts.h
   winable.h
   winbase.h
   winber.h
   wincon.h
   wincrypt.h
   windef.h
   windns.h
   windows.h
   windowsx.h
   winefs.h
   winerror.h
   winfax.h
   wingdi.h
   wininet.h
   winioctl.h
   winldap.h
   winnetwk.h
   winnls.h
   winnls32.h
   winnt.h
   winperf.h
   winreg.h
   winres.h
   winresrc.h
   winscard.h
   winsmcrd.h
   winsnmp.h
   winsock.h
   winsock2.h
   winspool.h
   winsvc.h
   winternl.h
   wintrust.h
   winuser.h
   winver.h
   winwlx.h
   ws2spi.h
   ws2tcpip.h
   wsahelp.h
   wsipx.h
   wsnetbs.h
   wtsapi32.h
   wtypes.idl
   xcmc.h
   xmldom.idl
   xmldso.idl
   xprtdefs.h
   zmouse.h

#ifndef _BASETSD_H
#define _BASETSD_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif

#ifndef _W64
#if defined(_MSC_VER) && !defined(MIDL_PASS) && _MSC_VER >= 1300
#define _W64 __w64
#else
#define _W64
#endif
#endif

#ifdef __GNUC__
#ifndef __int64
#define __int64 long long
#endif
#endif

#if defined(_WIN64)
#define __int3264   __int64
#define ADDRESS_TAG_BIT 0x40000000000UI64
#else /*  !_WIN64 */
#define __int3264   __int32
#define ADDRESS_TAG_BIT 0x80000000UL
#define HandleToUlong( h ) ((ULONG)(ULONG_PTR)(h) )
#define HandleToLong( h ) ((LONG)(LONG_PTR) (h) )
#define ULongToHandle( h) ((HANDLE)(ULONG_PTR) (h))
#define LongToHandle( h) ((HANDLE)(LONG_PTR) (h))
#define PtrToUlong( p ) ((ULONG)(ULONG_PTR) (p) )
#define PtrToLong( p ) ((LONG)(LONG_PTR) (p) )
#define PtrToUint( p ) ((UINT)(UINT_PTR) (p) )
#define PtrToInt( p ) ((INT)(INT_PTR) (p) )
#define PtrToUshort( p ) ((unsigned short)(ULONG_PTR)(p) )
#define PtrToShort( p ) ((short)(LONG_PTR)(p) )
#define IntToPtr( i )    ((VOID*)(INT_PTR)((int)i))
#define UIntToPtr( ui )  ((VOID*)(UINT_PTR)((unsigned int)ui))
#define LongToPtr( l )   ((VOID*)(LONG_PTR)((long)l))
#define ULongToPtr( ul )  ((VOID*)(ULONG_PTR)((unsigned long)ul))
#endif /* !_WIN64 */

#define UlongToPtr(ul) ULongToPtr(ul)
#define UintToPtr(ui) UIntToPtr(ui)
#define MAXUINT_PTR  (~((UINT_PTR)0))
#define MAXINT_PTR   ((INT_PTR)(MAXUINT_PTR >> 1))
#define MININT_PTR   (~MAXINT_PTR)
#define MAXULONG_PTR (~((ULONG_PTR)0))
#define MAXLONG_PTR  ((LONG_PTR)(MAXULONG_PTR >> 1))
#define MINLONG_PTR  (~MAXLONG_PTR)
#define MAXUHALF_PTR ((UHALF_PTR)~0)
#define MAXHALF_PTR  ((HALF_PTR)(MAXUHALF_PTR >> 1))
#define MINHALF_PTR  (~MAXHALF_PTR)

#ifndef RC_INVOKED
#ifdef __cplusplus
extern "C" {
#endif
typedef int LONG32, *PLONG32;
#ifndef XFree86Server
typedef int INT32, *PINT32;
#endif /* ndef XFree86Server */
typedef unsigned int ULONG32, *PULONG32;
typedef unsigned int DWORD32, *PDWORD32;
typedef unsigned int UINT32, *PUINT32;

#if defined(_WIN64)
typedef _W64 __int64 INT_PTR, *PINT_PTR;
typedef _W64 unsigned __int64 UINT_PTR, *PUINT_PTR;
typedef _W64 __int64 LONG_PTR, *PLONG_PTR;
typedef _W64 unsigned __int64 ULONG_PTR, *PULONG_PTR;
typedef _W64 unsigned __int64 HANDLE_PTR;
typedef unsigned int UHALF_PTR, *PUHALF_PTR;
typedef int HALF_PTR, *PHALF_PTR;

#if 0 /* TODO when WIN64 is here */
inline unsigned long HandleToUlong(const void* h )
    { return((unsigned long) h ); }
inline long HandleToLong( const void* h )
    { return((long) h ); }
inline void* ULongToHandle( const long h )
    { return((void*) (UINT_PTR) h ); }
inline void* LongToHandle( const long h )
    { return((void*) (INT_PTR) h ); }
inline unsigned long PtrToUlong( const void* p)
    { return((unsigned long) p ); }
inline unsigned int PtrToUint( const void* p )
    { return((unsigned int) p ); }
inline unsigned short PtrToUshort( const void* p )
    { return((unsigned short) p ); }
inline long PtrToLong( const void* p )
    { return((long) p ); }
inline int PtrToInt( const void* p )
    { return((int) p ); }
inline short PtrToShort( const void* p )
    { return((short) p ); }
inline void* IntToPtr( const int i )
    { return( (void*)(INT_PTR)i ); }
inline void* UIntToPtr(const unsigned int ui)
    { return( (void*)(UINT_PTR)ui ); }
inline void* LongToPtr( const long l )
    { return( (void*)(LONG_PTR)l ); }
inline void* ULongToPtr( const unsigned long ul )
    { return( (void*)(ULONG_PTR)ul ); }
#endif /* 0_ */

#else /*  !_WIN64 */
typedef _W64 int INT_PTR, *PINT_PTR;
typedef _W64 unsigned int UINT_PTR, *PUINT_PTR;

#ifndef LONG_PTR_DEFINED
#define LONG_PTR_DEFINED
	typedef _W64 long LONG_PTR, *PLONG_PTR;
	typedef _W64 unsigned long ULONG_PTR, *PULONG_PTR;
#endif

typedef unsigned short UHALF_PTR, *PUHALF_PTR;
typedef short HALF_PTR, *PHALF_PTR;

#ifndef HANDLE_PTR_DEFINED
#define HANDLE_PTR_DEFINED
	typedef _W64 unsigned long HANDLE_PTR;
#endif

#endif /* !_WIN64 */

typedef _W64 ULONG_PTR SIZE_T, *PSIZE_T;
typedef _W64 LONG_PTR SSIZE_T, *PSSIZE_T;
typedef _W64 ULONG_PTR DWORD_PTR, *PDWORD_PTR;
typedef __int64 LONG64, *PLONG64;
typedef __int64 INT64,  *PINT64;
typedef unsigned __int64 ULONG64, *PULONG64;
typedef unsigned __int64 DWORD64, *PDWORD64;
typedef unsigned __int64 UINT64,  *PUINT64;

typedef signed short INT16, *PINT16;
typedef unsigned short UINT16, *PUINT16;

typedef ULONG_PTR KAFFINITY;
typedef KAFFINITY *PKAFFINITY;

#ifdef __cplusplus
}
#endif
#endif /* !RC_INVOKED */

#endif /* _BASETSD_H */

About Koders | Resources | Downloads | Support | Black Duck | Submit Project | Terms of Service | DMCA | Privacy Policy | Site Map| Contact Us