Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

67 lines
1.5 KiB

/*++
Copyright (c) 1997-1999 Microsoft Corporation
Module Name:
p64_nt4.h
Abstract:
P64 Type Definitions for NT4. (This header file is
used so our NT5 source tree can be compiled for NT4.)
Revision History:
04/21/98 -fengy-
Created it.
--*/
#ifndef _P64_NT4_H_
#define _P64_NT4_H_
#ifdef __cplusplus
extern "C" {
#endif
//
// The LONG_PTR is guaranteed to be the same size as a pointer. Its
// size with change with pointer size (32/64). It should be used
// anywhere that a pointer is cast to an integer type. ULONG_PTR is
// the unsigned variation.
//
typedef long LONG_PTR, *PLONG_PTR;
typedef unsigned long ULONG_PTR, *PULONG_PTR;
#ifndef _BASETSD_H_
//
// This is to resolve the typedef conflict with VC++ 6's basetsd.h,
// which uses "typedef long INT_PTR, *PINT_PTR;".
//
typedef int INT_PTR, *PINT_PTR;
#endif // _BASETSD_H_
#define HandleToUlong( h ) ((ULONG)(ULONG_PTR)(h) )
#define PtrToUlong( p ) ((ULONG)(ULONG_PTR) (p) )
#define PtrToLong( p ) ((LONG)(LONG_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 ULongToPtr( ul ) ((VOID *)(ULONG_PTR)((unsigned long)ul))
#define GWLP_USERDATA GWL_USERDATA
#define DWLP_USER DWL_USER
#define SetWindowLongPtr SetWindowLong
#define GetWindowLongPtr GetWindowLong
#ifdef __cplusplus
}
#endif
#endif // _P64_NT4_H_