mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-23 00:43:00 -05:00
Major refactoring: IRP_MJ_CREATE
This commit is contained in:
parent
645dafa5c6
commit
d773e2f96a
@ -46,6 +46,7 @@ enum
|
|||||||
{
|
{
|
||||||
FspFsctlTransactUnknownKind = 0,
|
FspFsctlTransactUnknownKind = 0,
|
||||||
FspFsctlTransactCreateKind,
|
FspFsctlTransactCreateKind,
|
||||||
|
FspFsctlTransactCleanupKind,
|
||||||
FspFsctlTransactCloseKind,
|
FspFsctlTransactCloseKind,
|
||||||
FspFsctlTransactReadKind,
|
FspFsctlTransactReadKind,
|
||||||
FspFsctlTransactWriteKind,
|
FspFsctlTransactWriteKind,
|
||||||
@ -61,7 +62,6 @@ enum
|
|||||||
FspFsctlTransactDeviceControlKind,
|
FspFsctlTransactDeviceControlKind,
|
||||||
FspFsctlTransactShutdownKind,
|
FspFsctlTransactShutdownKind,
|
||||||
FspFsctlTransactLockControlKind,
|
FspFsctlTransactLockControlKind,
|
||||||
FspFsctlTransactCleanupKind,
|
|
||||||
FspFsctlTransactQuerySecurityKind,
|
FspFsctlTransactQuerySecurityKind,
|
||||||
FspFsctlTransactSetSecurityKind,
|
FspFsctlTransactSetSecurityKind,
|
||||||
FspFsctlTransactKindCount,
|
FspFsctlTransactKindCount,
|
||||||
|
@ -288,9 +288,9 @@ static NTSTATUS FspFsvolCreate(
|
|||||||
NTSTATUS FspFsvolCreatePrepare(
|
NTSTATUS FspFsvolCreatePrepare(
|
||||||
PIRP Irp, FSP_FSCTL_TRANSACT_REQ *Request)
|
PIRP Irp, FSP_FSCTL_TRANSACT_REQ *Request)
|
||||||
{
|
{
|
||||||
FSP_ENTER_IOP(PAGED_CODE());
|
PAGED_CODE();
|
||||||
|
|
||||||
FSP_LEAVE_IOP();
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID FspFsvolCreateComplete(
|
VOID FspFsvolCreateComplete(
|
||||||
|
@ -135,12 +135,6 @@ extern __declspec(selectany) int bpglobal = 1;
|
|||||||
FspIopCompleteIrpEx(Irp, Result, fsp_device_release);\
|
FspIopCompleteIrpEx(Irp, Result, fsp_device_release);\
|
||||||
); \
|
); \
|
||||||
return Result
|
return Result
|
||||||
#define FSP_ENTER_IOP(...) \
|
|
||||||
NTSTATUS Result = STATUS_SUCCESS; \
|
|
||||||
PIO_STACK_LOCATION IrpSp = IoGetCurrentIrpStackLocation(Irp); (VOID)IrpSp;\
|
|
||||||
FSP_ENTER_NOCRIT_(__VA_ARGS__)
|
|
||||||
#define FSP_LEAVE_IOP() \
|
|
||||||
FSP_LEAVE_NOCRIT_(); return Result
|
|
||||||
#define FSP_ENTER_IOC(...) \
|
#define FSP_ENTER_IOC(...) \
|
||||||
NTSTATUS Result = STATUS_SUCCESS; \
|
NTSTATUS Result = STATUS_SUCCESS; \
|
||||||
PIO_STACK_LOCATION IrpSp = IoGetCurrentIrpStackLocation(Irp); (VOID)IrpSp;\
|
PIO_STACK_LOCATION IrpSp = IoGetCurrentIrpStackLocation(Irp); (VOID)IrpSp;\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user