win32err.pp 916 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {
  2. $Id$
  3. This file is part of the Free Pascal test suite.
  4. Copyright (c) 1999-2002 by the Free Pascal development team.
  5. Used to avoid getting pop up windows
  6. under Windows Operation Systems for critical errors
  7. See the file COPYING.FPC, included in this distribution,
  8. for details about the copyright.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. **********************************************************************}
  13. unit win32err;
  14. interface
  15. implementation
  16. {$ifdef win32}
  17. uses
  18. windows;
  19. {$endif win32}
  20. begin
  21. {$ifdef win32}
  22. SetErrorMode(
  23. SEM_FAILCRITICALERRORS or
  24. SEM_NOGPFAULTERRORBOX or
  25. SEM_NOOPENFILEERRORBOX);
  26. {$endif win32}
  27. end.
  28. {
  29. $Log$
  30. Revision 1.1 2003-04-29 21:12:17 pierre
  31. * win32 specific unit added
  32. }