Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.1 KiB

  1. /*****************************************************************/
  2. /** Microsoft LAN Manager **/
  3. /** Copyright(c) Microsoft Corp., 1991 **/
  4. /*****************************************************************/
  5. /*
  6. * NOTE. To use the STACK_LOCK class, use the LOCK_SS() macro!
  7. * Simply put this macro as the first statement within the Winnet API
  8. * entry points. The stack segment will then be locked. It will be
  9. * unlock on exit from the function.
  10. *
  11. * The STACK_LOCK class only locks the stack segment in real mode.
  12. * In protect mode, LOCK_SS() is virtually a no-op.
  13. *
  14. * The LOCK_SS() macro is only needed for Winnet entry points which
  15. * will bring up a BLT dialog, or otherwise store far pointers to
  16. * objects on the stack and giving away control to Windows.
  17. *
  18. *
  19. * History:
  20. * rustanl 06-Feb-1991 Created
  21. */
  22. #ifndef _LOCKSTK_HXX_
  23. #define _LOCKSTK_HXX_
  24. #define LOCK_SS() STACK_LOCK _stacklock
  25. class STACK_LOCK
  26. {
  27. private:
  28. USHORT _ss;
  29. public:
  30. STACK_LOCK( void );
  31. ~STACK_LOCK();
  32. }; // class STACK_LOCK
  33. #endif // _LOCKSTK_HXX_