syswinh.inc 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 char = ['\','/'];
  19. AllowDriveSeparators : set of char = [':'];
  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. argc : longint;
  45. argv : ppchar;
  46. { Win32 Info }
  47. startupinfo : tstartupinfo deprecated; // Delphi does not have one in interface
  48. StartupConsoleMode : dword;
  49. cmdshow : longint;
  50. DLLreason : dword;
  51. DLLparam : PtrInt;
  52. const
  53. hprevinst: qword=0;
  54. type
  55. TDLL_Entry_Hook = procedure (dllparam : PtrInt);
  56. const
  57. Dll_Process_Detach_Hook : TDLL_Entry_Hook = nil;
  58. Dll_Thread_Attach_Hook : TDLL_Entry_Hook = nil;
  59. Dll_Thread_Detach_Hook : TDLL_Entry_Hook = nil;
  60. Const
  61. { it can be discussed whether fmShareDenyNone means read and write or read, write and delete, see
  62. also http://bugs.freepascal.org/view.php?id=8898, this allows users to configure the used
  63. value
  64. }
  65. fmShareDenyNoneFlags : DWord = 3;