win32err.pp 820 B

1234567891011121314151617181920212223242526272829303132333435
  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. {$ifdef win32}
  16. uses
  17. windows;
  18. {$endif win32}
  19. begin
  20. {$ifdef win32}
  21. SetErrorMode(
  22. SEM_FAILCRITICALERRORS or
  23. SEM_NOGPFAULTERRORBOX or
  24. SEM_NOOPENFILEERRORBOX);
  25. {$endif win32}
  26. end.