windows-nt/Source/XPSP1/NT/base/fs/rdr2/rdbss/proxy.mrx/mrxglbl.h
2020-09-26 16:20:57 +08:00

63 lines
1.9 KiB
C
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*++
Copyright (c) 1989 Microsoft Corporation
Module Name:
mrxglbl.h
Abstract:
The global include file for PROXY mini redirector
Author:
Balan Sethu Raman (SethuR) - Created 2-March-95
Revision History:
--*/
#ifndef _MRXGLBL_H_
#define _MRXGLBL_H_
#define ProxyCeLog(x) \
RxLog(x)
#define RxNetNameTable (*(*___MINIRDR_IMPORTS_NAME).pRxNetNameTable)
//we turn away async operations that are not wait by posting. if we can wait
//then we turn off the sync flag so that things will just act synchronous
#define TURN_BACK_ASYNCHRONOUS_OPERATIONS() { \
if (FlagOn(RxContext->Flags,RX_CONTEXT_FLAG_ASYNC_OPERATION)) { \
if (FlagOn(RxContext->Flags,RX_CONTEXT_FLAG_WAIT)) { \
ClearFlag(RxContext->Flags,RX_CONTEXT_FLAG_ASYNC_OPERATION) \
} else { \
RxContext->PostRequest = TRUE; \
return STATUS_PENDING; \
} \
} \
}
extern RX_SPIN_LOCK MRxProxyGlobalSpinLock;
extern KIRQL MRxProxyGlobalSpinLockSavedIrql;
extern BOOLEAN MRxProxyGlobalSpinLockAcquired;
#define ProxyAcquireGlobalSpinLock() \
KeAcquireSpinLock(&MRxProxyGlobalSpinLock,&MRxProxyGlobalSpinLockSavedIrql); \
MRxProxyGlobalSpinLockAcquired = TRUE
#define ProxyReleaseGlobalSpinLock() \
MRxProxyGlobalSpinLockAcquired = FALSE; \
KeReleaseSpinLock(&MRxProxyGlobalSpinLock,MRxProxyGlobalSpinLockSavedIrql)
#define ProxyGlobalSpinLockAcquired() \
(MRxProxyGlobalSpinLockAcquired == TRUE)
//extern
//NTSTATUS
//GetProxyResponseNtStatus(PPROXY_HEADER pProxyHeader);
#endif _MRXGLBL_H_