Source code of Windows XP (NT5)
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.

62 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. mrxglbl.h
  5. Abstract:
  6. The global include file for PROXY mini redirector
  7. Author:
  8. Balan Sethu Raman (SethuR) - Created 2-March-95
  9. Revision History:
  10. --*/
  11. #ifndef _MRXGLBL_H_
  12. #define _MRXGLBL_H_
  13. #define ProxyCeLog(x) \
  14. RxLog(x)
  15. #define RxNetNameTable (*(*___MINIRDR_IMPORTS_NAME).pRxNetNameTable)
  16. //we turn away async operations that are not wait by posting. if we can wait
  17. //then we turn off the sync flag so that things will just act synchronous
  18. #define TURN_BACK_ASYNCHRONOUS_OPERATIONS() { \
  19. if (FlagOn(RxContext->Flags,RX_CONTEXT_FLAG_ASYNC_OPERATION)) { \
  20. if (FlagOn(RxContext->Flags,RX_CONTEXT_FLAG_WAIT)) { \
  21. ClearFlag(RxContext->Flags,RX_CONTEXT_FLAG_ASYNC_OPERATION) \
  22. } else { \
  23. RxContext->PostRequest = TRUE; \
  24. return STATUS_PENDING; \
  25. } \
  26. } \
  27. }
  28. extern RX_SPIN_LOCK MRxProxyGlobalSpinLock;
  29. extern KIRQL MRxProxyGlobalSpinLockSavedIrql;
  30. extern BOOLEAN MRxProxyGlobalSpinLockAcquired;
  31. #define ProxyAcquireGlobalSpinLock() \
  32. KeAcquireSpinLock(&MRxProxyGlobalSpinLock,&MRxProxyGlobalSpinLockSavedIrql); \
  33. MRxProxyGlobalSpinLockAcquired = TRUE
  34. #define ProxyReleaseGlobalSpinLock() \
  35. MRxProxyGlobalSpinLockAcquired = FALSE; \
  36. KeReleaseSpinLock(&MRxProxyGlobalSpinLock,MRxProxyGlobalSpinLockSavedIrql)
  37. #define ProxyGlobalSpinLockAcquired() \
  38. (MRxProxyGlobalSpinLockAcquired == TRUE)
  39. //extern
  40. //NTSTATUS
  41. //GetProxyResponseNtStatus(PPROXY_HEADER pProxyHeader);
  42. #endif _MRXGLBL_H_
  43.