syswinh.inc 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 1999-2020 by the Free Pascal development team.
  4. FPC Pascal system unit header part shared by win32/win64.
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. const
  12. LineEnding = #13#10;
  13. LFNSupport = true;
  14. DirectorySeparator = '\';
  15. DriveSeparator = ':';
  16. ExtensionSeparator = '.';
  17. PathSeparator = ';';
  18. AllowDirectorySeparators : set of AnsiChar = ['\','/'];
  19. AllowDriveSeparators : set of AnsiChar = [':'];
  20. { FileNameCaseSensitive and FileNameCasePreserving are defined separately below!!! }
  21. maxExitCode = 65535;
  22. MaxPathLen = 260;
  23. AllFilesMask = '*';
  24. type
  25. PEXCEPTION_FRAME = ^TEXCEPTION_FRAME;
  26. TEXCEPTION_FRAME = record
  27. next : PEXCEPTION_FRAME;
  28. handler : pointer;
  29. end;
  30. const
  31. { Default filehandles }
  32. UnusedHandle : THandle = THandle(-1);
  33. StdInputHandle : THandle = 0;
  34. StdOutputHandle : THandle = 0;
  35. StdErrorHandle : THandle = 0;
  36. System_exception_frame : PEXCEPTION_FRAME =nil;
  37. FileNameCaseSensitive : boolean = false;
  38. FileNameCasePreserving: boolean = true;
  39. CtrlZMarksEOF: boolean = true; (* #26 is considered as end of file *)
  40. sLineBreak = LineEnding;
  41. DefaultTextLineBreakStyle : TTextLineBreakStyle = tlbsCRLF;
  42. var
  43. { C compatible arguments }
  44. { CmdLine and argv are always in the current ANSI encoding set in Windows }
  45. argc : longint;
  46. argv : PPAnsiChar;
  47. { Win32 Info }
  48. startupinfo : tstartupinfo deprecated; // Delphi does not have one in interface
  49. StartupConsoleMode : dword;
  50. cmdshow : longint;
  51. DLLreason : dword;
  52. DLLparam : PtrInt;
  53. const
  54. hprevinst: qword=0;
  55. type
  56. TDLL_Entry_Hook = procedure (dllparam : PtrInt);
  57. const
  58. Dll_Process_Detach_Hook : TDLL_Entry_Hook = nil;
  59. Dll_Thread_Attach_Hook : TDLL_Entry_Hook = nil;
  60. Dll_Thread_Detach_Hook : TDLL_Entry_Hook = nil;
  61. Const
  62. { it can be discussed whether fmShareDenyNone means read and write or read, write and delete, see
  63. also http://bugs.freepascal.org/view.php?id=8898, this allows users to configure the used
  64. value
  65. }
  66. fmShareDenyNoneFlags : DWord = 3;