win32.inc 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1999-2000 by the Free Pascal development team.
  5. Win32 Types and Constants
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. const
  13. { constants for GetStdHandle }
  14. STD_INPUT_HANDLE = $fffffff6;
  15. STD_OUTPUT_HANDLE = $fffffff5;
  16. STD_ERROR_HANDLE = $fffffff4;
  17. INVALID_HANDLE_VALUE = $ffffffff;
  18. IGNORE = 0; { Ignore signal }
  19. INFINITE = $FFFFFFFF; { Infinite timeout }
  20. { flags for CreateFile }
  21. GENERIC_READ=$80000000;
  22. GENERIC_WRITE=$40000000;
  23. CREATE_NEW = 1;
  24. CREATE_ALWAYS = 2;
  25. OPEN_EXISTING = 3;
  26. OPEN_ALWAYS = 4;
  27. TRUNCATE_EXISTING = 5;
  28. FILE_ATTRIBUTE_ARCHIVE = 32;
  29. FILE_ATTRIBUTE_COMPRESSED = 2048;
  30. FILE_ATTRIBUTE_NORMAL = 128;
  31. FILE_ATTRIBUTE_DIRECTORY = 16;
  32. FILE_ATTRIBUTE_HIDDEN = 2;
  33. FILE_ATTRIBUTE_READONLY = 1;
  34. FILE_ATTRIBUTE_SYSTEM = 4;
  35. FILE_ATTRIBUTE_TEMPORARY = 256;
  36. { flags for SetFilePos }
  37. FILE_BEGIN = 0;
  38. FILE_CURRENT = 1;
  39. FILE_END = 2;
  40. VER_PLATFORM_WIN32s = 0;
  41. VER_PLATFORM_WIN32_WINDOWS = 1;
  42. VER_PLATFORM_WIN32_NT = 2;
  43. type
  44. {UINT = longint;
  45. BOOL = longint; obsolete }
  46. UINT = cardinal;
  47. BOOL = longbool;
  48. WCHAR = word;
  49. {$ifdef UNICODE}
  50. LPTCH = ^word;
  51. LPTSTR = ^word;
  52. LPCTSTR = ^word;
  53. {$else UNICODE}
  54. LPTCH = ^char;
  55. LPTSTR = ^char;
  56. LPCTSTR = ^char;
  57. {$endif UNICODE}
  58. PVOID = pointer;
  59. LPVOID = pointer;
  60. LPCVOID = pointer;
  61. LPDWORD = ^DWORD;
  62. THandle = longint;
  63. HLocal = THandle;
  64. PStr = pchar;
  65. LPStr = pchar;
  66. PSecurityAttributes = ^TSecurityAttributes;
  67. TSecurityAttributes = record
  68. nLength : DWORD;
  69. lpSecurityDescriptor : Pointer;
  70. bInheritHandle : Boolean;
  71. end;
  72. PProcessInformation = ^TProcessInformation;
  73. TProcessInformation = record
  74. hProcess: THandle;
  75. hThread: THandle;
  76. dwProcessId: DWORD;
  77. dwThreadId: DWORD;
  78. end;
  79. PFileTime = ^TFileTime;
  80. TFileTime = record
  81. dwLowDateTime,
  82. dwHighDateTime : DWORD;
  83. end;
  84. PSystemTime = ^TSystemTime;
  85. TSystemTime = record
  86. wYear,
  87. wMonth,
  88. wDayOfWeek,
  89. wDay,
  90. wHour,
  91. wMinute,
  92. wSecond,
  93. wMilliseconds: Word;
  94. end;
  95. {
  96. $Log$
  97. Revision 1.11 2000-02-09 16:59:34 peter
  98. * truncated log
  99. Revision 1.10 2000/01/25 13:15:35 florian
  100. * new constants to compile dos unit again
  101. Revision 1.9 2000/01/07 16:41:53 daniel
  102. * copyright 2000
  103. }