win32.inc 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1998 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;
  43. WCHAR = word;
  44. {$ifdef UNICODE}
  45. LPTCH = ^word;
  46. LPTSTR = ^word;
  47. LPCTSTR = ^word;
  48. {$else UNICODE}
  49. LPTCH = ^char;
  50. LPTSTR = ^char;
  51. LPCTSTR = ^char;
  52. {$endif UNICODE}
  53. PVOID = pointer;
  54. LPVOID = pointer;
  55. LPCVOID = pointer;
  56. LPDWORD = ^DWORD;
  57. THandle = longint;
  58. HLocal = THandle;
  59. PStr = pchar;
  60. LPStr = pchar;
  61. PSecurityAttributes = ^TSecurityAttributes;
  62. TSecurityAttributes = record
  63. nLength : DWORD;
  64. lpSecurityDescriptor : Pointer;
  65. bInheritHandle : Boolean;
  66. end;
  67. PProcessInformation = ^TProcessInformation;
  68. TProcessInformation = record
  69. hProcess: THandle;
  70. hThread: THandle;
  71. dwProcessId: DWORD;
  72. dwThreadId: DWORD;
  73. end;
  74. PFileTime = ^TFileTime;
  75. TFileTime = record
  76. dwLowDateTime,
  77. dwHighDateTime : DWORD;
  78. end;
  79. PSystemTime = ^TSystemTime;
  80. TSystemTime = record
  81. wYear,
  82. wMonth,
  83. wDayOfWeek,
  84. wDay,
  85. wHour,
  86. wMinute,
  87. wSecond,
  88. wMilliseconds: Word;
  89. end;
  90. {
  91. $Log$
  92. Revision 1.7 1998-06-10 10:39:18 peter
  93. * working w32 rtl
  94. }