[RDBSS] Start defining the RxCapture* macros and start using them (to be continued)

This commit is contained in:
Pierre Schweitzer 2017-11-01 11:45:43 +01:00
parent b840f65362
commit 2511ba8f8f
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B
2 changed files with 53 additions and 41 deletions

View file

@ -6,6 +6,22 @@
#define INVALID_HANDLE_VALUE ((HANDLE)-1)
#endif
#ifndef MINIRDR__NAME
#define RxCaptureFcb PFCB __C_Fcb = (PFCB)(RxContext->pFcb)
#define RxCaptureFobx PFOBX __C_Fobx = (PFOBX)(RxContext->pFobx)
#else
#define RxCaptureFcb PMRX_FCB __C_Fcb = (RxContext->pFcb)
#define RxCaptureFobx PMRX_FOBX __C_Fobx = (RxContext->pFobx)
#endif
#define RxCaptureParamBlock PIO_STACK_LOCATION __C_IrpSp = RxContext->CurrentIrpSp
#define RxCaptureFileObject PFILE_OBJECT __C_FileObject = __C_IrpSp-> FileObject
#define capFcb __C_Fcb
#define capFobx __C_Fobx
#define capPARAMS __C_IrpSp
#define capFileObject __C_FileObject
#define RxAllocatePoolWithTag ExAllocatePoolWithTag
#define RxFreePool ExFreePool