mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 16:33:02 -05:00
sys: WIP
This commit is contained in:
parent
9045db1026
commit
28fd09e70f
@ -34,5 +34,19 @@ FspCreate(
|
||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||
Result = STATUS_INVALID_DEVICE_REQUEST;
|
||||
|
||||
FSP_LEAVE_MJ("", 0);
|
||||
FSP_LEAVE_MJ(
|
||||
"FileObject=%p:\"%wZ\", "
|
||||
"DesiredAccess=%#lx, "
|
||||
"ShareAccess=%#x, "
|
||||
"Options=%#lx, "
|
||||
"FileAttributes=%#x, "
|
||||
"AllocationSize=%#lx:%#lx, "
|
||||
"Ea=%p, EaLength=%ld",
|
||||
IrpSp->FileObject->RelatedFileObject, IrpSp->FileObject->FileName,
|
||||
IrpSp->Parameters.Create.SecurityContext->DesiredAccess,
|
||||
IrpSp->Parameters.Create.ShareAccess,
|
||||
IrpSp->Parameters.Create.Options,
|
||||
IrpSp->Parameters.Create.FileAttributes,
|
||||
Irp->Overlay.AllocationSize.HighPart, Irp->Overlay.AllocationSize.LowPart,
|
||||
Irp->AssociatedIrp.SystemBuffer, IrpSp->Parameters.Create.EaLength);
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ static ANSI_STRING DbgBreakPointInc = RTL_CONSTANT_STRING("Fsp*");
|
||||
BOOLEAN HasDbgBreakPoint(const char *Function)
|
||||
{
|
||||
/* poor man's breakpoints; work around 32 breakpoints kernel limit */
|
||||
if (KeGetCurrentIrql() > APC_LEVEL)
|
||||
if (KeGetCurrentIrql() > APC_LEVEL) /* FsRtlIsDbcsInExpression restriction */
|
||||
return TRUE;
|
||||
ANSI_STRING Name;
|
||||
RtlInitAnsiString(&Name, Function);
|
||||
|
@ -62,9 +62,10 @@
|
||||
FSP_ENTER_(__VA_ARGS__)
|
||||
#define FSP_LEAVE_MJ(fmt, ...) \
|
||||
FSP_LEAVE_(" = %s", NtStatusSym(Result),\
|
||||
"'%c', %s%s, Flags=%x, " \
|
||||
"%c%c, %s%s, IrpSp->Flags=%x, " \
|
||||
fmt, \
|
||||
FspDeviceExtension(DeviceObject)->Kind,\
|
||||
Irp->RequestorMode == KernelMode ? 'K' : 'U',\
|
||||
IrpMajorFunctionSym(IrpSp->MajorFunction),\
|
||||
IrpMinorFunctionSym(IrpSp->MajorFunction, IrpSp->MajorFunction),\
|
||||
IrpSp->Flags, \
|
||||
|
Loading…
x
Reference in New Issue
Block a user