win32.inc 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. type
  41. {UINT = longint;
  42. BOOL = longint; obsolete }
  43. UINT = cardinal;
  44. BOOL = longbool;
  45. WCHAR = word;
  46. {$ifdef UNICODE}
  47. LPTCH = ^word;
  48. LPTSTR = ^word;
  49. LPCTSTR = ^word;
  50. {$else UNICODE}
  51. LPTCH = ^char;
  52. LPTSTR = ^char;
  53. LPCTSTR = ^char;
  54. {$endif UNICODE}
  55. PVOID = pointer;
  56. LPVOID = pointer;
  57. LPCVOID = pointer;
  58. LPDWORD = ^DWORD;
  59. THandle = longint;
  60. HLocal = THandle;
  61. PStr = pchar;
  62. LPStr = pchar;
  63. PSecurityAttributes = ^TSecurityAttributes;
  64. TSecurityAttributes = record
  65. nLength : DWORD;
  66. lpSecurityDescriptor : Pointer;
  67. bInheritHandle : Boolean;
  68. end;
  69. PProcessInformation = ^TProcessInformation;
  70. TProcessInformation = record
  71. hProcess: THandle;
  72. hThread: THandle;
  73. dwProcessId: DWORD;
  74. dwThreadId: DWORD;
  75. end;
  76. PFileTime = ^TFileTime;
  77. TFileTime = record
  78. dwLowDateTime,
  79. dwHighDateTime : DWORD;
  80. end;
  81. PSystemTime = ^TSystemTime;
  82. TSystemTime = record
  83. wYear,
  84. wMonth,
  85. wDayOfWeek,
  86. wDay,
  87. wHour,
  88. wMinute,
  89. wSecond,
  90. wMilliseconds: Word;
  91. end;
  92. {
  93. $Log$
  94. Revision 1.9 2000-01-07 16:41:53 daniel
  95. * copyright 2000
  96. Revision 1.8 1999/01/29 09:24:48 pierre
  97. win32.inc
  98. Revision 1.7 1998/06/10 10:39:18 peter
  99. * working w32 rtl
  100. }