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.

65 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1996 - 1999 Microsoft Corporation
  3. Module Name:
  4. ddint5.h
  5. Abstract:
  6. Common header file for NT 4.0 specific declarations for porting unidrv to
  7. NT 4.0.
  8. Environment:
  9. Windows NT printer drivers
  10. Revision History:
  11. Created by:
  12. 17:05:45 on 8/19/1998 -by- Ganesh Pandey [ganeshp]
  13. --*/
  14. #ifndef _DDINT5_H_
  15. #define _DDINT5_H_
  16. #ifdef WINNT_40
  17. typedef struct _DRAWPATRECT {
  18. POINT ptPosition;
  19. POINT ptSize;
  20. WORD wStyle;
  21. WORD wPattern;
  22. } DRAWPATRECT, *PDRAWPATRECT;
  23. #define GCAPS_ARBRUSHTEXT 0x10000000
  24. #define GCAPS_SCREENPRECISION 0x20000000
  25. #define GCAPS_FONT_RASTERIZER 0x40000000
  26. #if defined(_X86_) && !defined(USERMODE_DRIVER)
  27. //
  28. // x86 does not support floating-point instruction in the kernel mode,
  29. // the floating-point data would like be handled 32bits value as double words.
  30. //
  31. typedef DWORD FLOATL;
  32. #else
  33. //
  34. // Any platform that has support for floats in the kernel
  35. //
  36. typedef FLOAT FLOATL;
  37. #endif // _X86_
  38. #define atoi iDrvAtoi
  39. #define strncpy pchDrvStrncpy
  40. int __cdecl iDrvAtoi(const char *);
  41. char * __cdecl pchDrvStrncpy(char *, const char *, size_t);
  42. #endif //WINNT_40
  43. #endif // _DDINT5_H_