Source code of Windows XP (NT5)
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.

75 lines
1.5 KiB

  1. /*
  2. * Scraps taken directly from the msvc.200 include files to
  3. * define types that are needed in our source that are not
  4. * defined by the 16bit compiler
  5. */
  6. #ifndef _16BIT_TYPES_
  7. #define _16BIT_TYPES_
  8. #ifndef WIN32
  9. //
  10. // Macros used to eliminate compiler warning generated when formal
  11. // parameters or local variables are not declared.
  12. //
  13. #define UNREFERENCED_PARAMETER(P) (P)
  14. #define DBG_UNREFERENCED_PARAMETER(P) (P)
  15. #define DBG_UNREFERENCED_LOCAL_VARIABLE(V) (V)
  16. #define STATIC static
  17. #define CONST const
  18. #define CHAR char
  19. #define UCHAR BYTE
  20. #define INT int
  21. #define HKEY HANDLE
  22. #define HFILE int
  23. typedef short SHORT;
  24. typedef unsigned long ULONG;
  25. typedef unsigned short USHORT;
  26. typedef CHAR *PCHAR;
  27. typedef VOID *PVOID;
  28. typedef unsigned int _far * LPUINT;
  29. typedef UCHAR *PUCHAR;
  30. typedef LPSTR LPTSTR;
  31. typedef const LPTSTR LPCTSTR;
  32. #ifndef WIN32
  33. //
  34. // File System time stamps are represented with the following structure:
  35. //
  36. typedef struct _FILETIME {
  37. DWORD dwLowDateTime;
  38. DWORD dwHighDateTime;
  39. } FILETIME, *PFILETIME, *LPFILETIME;
  40. //
  41. // System time is represented with the following structure:
  42. //
  43. typedef struct _SYSTEMTIME {
  44. WORD wYear;
  45. WORD wMonth;
  46. WORD wDayOfWeek;
  47. WORD wDay;
  48. WORD wHour;
  49. WORD wMinute;
  50. WORD wSecond;
  51. WORD wMilliseconds;
  52. } SYSTEMTIME, *PSYSTEMTIME, *LPSYSTEMTIME;
  53. #endif /* !WIN32 */
  54. #define CopyMemory(Destination,Source,Length) memcpy((Destination),(Source),(Length))
  55. #endif /* WIN32 */
  56. #endif /* _16BIT_TYPES_ */