2
0

win32err.pp 889 B

123456789101112131415161718192021222324252627282930313233343536
  1. {
  2. This file is part of the Free Pascal test suite.
  3. Copyright (c) 1999-2002 by the Free Pascal development team.
  4. Used to avoid getting pop up windows
  5. under Windows Operation Systems for critical errors
  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. unit win32err;
  13. interface
  14. implementation
  15. { mswindows is defined for win32 and win64 targets }
  16. {$ifdef mswindows}
  17. uses
  18. windows;
  19. {$endif mswindows}
  20. begin
  21. {$ifdef mswindows}
  22. SetErrorMode(
  23. SEM_FAILCRITICALERRORS or
  24. SEM_NOGPFAULTERRORBOX or
  25. SEM_NOOPENFILEERRORBOX);
  26. {$endif mswindows}
  27. end.