2
0

windows.pp 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. This unit contains the record definition for the Win32 API
  5. Copyright (c) 1993,97 by Florian KLaempfl,
  6. member of the Free Pascal development team.
  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 windows;
  14. {$define windows_include_files}
  15. interface
  16. {$define read_interface}
  17. {$undef read_implementation}
  18. {$message starting interface of windows unit }
  19. {$i base.pp}
  20. {$i errors.pp}
  21. {$i defines.pp}
  22. {$i messages.pp}
  23. {$i struct.pp}
  24. {$i redef.inc}
  25. {$i ascfun.pp}
  26. {$i unifun.pp}
  27. {$ifdef UNICODE}
  28. {$i unidef.pp}
  29. {$else not UNICODE}
  30. {$i ascdef.pp}
  31. {$endif UNICODE}
  32. {$i func.pp}
  33. implementation
  34. {$undef read_interface}
  35. {$define read_implementation}
  36. const External_library='kernel32';
  37. {$i base.pp}
  38. {$i errors.pp}
  39. {$i defines.pp}
  40. {$i messages.pp}
  41. {$i struct.pp}
  42. {$i ascfun.pp}
  43. {$i unifun.pp}
  44. {$ifdef UNICODE}
  45. {$i unidef.pp}
  46. {$else not UNICODE}
  47. {$i ascdef.pp}
  48. {$endif UNICODE}
  49. {$i func.pp}
  50. procedure InitializeCriticalSection(var CriticalSection : TRTLCriticalSection); external 'kernel32' name 'InitializeCriticalSection';
  51. procedure EnterCriticalSection(var CriticalSection : TRTLCriticalSection); external 'kernel32' name 'EnterCriticalSection';
  52. procedure LeaveCriticalSection(var CriticalSection : TRTLCriticalSection); external 'kernel32' name 'LeaveCriticalSection';
  53. procedure DeleteCriticalSection(var CriticalSection : TRTLCriticalSection); external 'kernel32' name 'DeleteCriticalSection';
  54. end.
  55. {
  56. $Log$
  57. Revision 1.3 1999-05-10 19:34:15 florian
  58. * moved all opengl32.dll stuff to a newly created opengl32 unit, so
  59. win32 programs should also run on Windows without opengl32.dll
  60. Revision 1.2 1999/01/09 07:29:51 florian
  61. * some updates to compile API units for win32
  62. Revision 1.1 1998/08/31 11:54:02 pierre
  63. * compilable windows.pp file
  64. still to do :
  65. - findout problems
  66. - findout the correct DLL for each call !!
  67. }