From 6e1ec6fccdb7ba5c0054387101cce06b1ccf7f37 Mon Sep 17 00:00:00 2001 From: Rod Widdowson Date: Wed, 28 May 2025 16:39:21 +0100 Subject: [PATCH] Update ioctl-lmr-disable-local-buffering.md Start pulling a very long string. Despite the name, this is an FSCTL but of type FILE_DEVICE_NETWORK_FILE_SYSTEM. This means that if you call DeviceIoControl on it you will get a failure. You have to send it via NtfsControlFile --- desktop-src/DevNotes/ioctl-lmr-disable-local-buffering.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/desktop-src/DevNotes/ioctl-lmr-disable-local-buffering.md b/desktop-src/DevNotes/ioctl-lmr-disable-local-buffering.md index e3fc8beb276..bcc9c62b270 100644 --- a/desktop-src/DevNotes/ioctl-lmr-disable-local-buffering.md +++ b/desktop-src/DevNotes/ioctl-lmr-disable-local-buffering.md @@ -110,9 +110,7 @@ For overlapped operations, [**DeviceIoControl**](/windows/win32/api/ioapiset/nf- ## Return value -If the operation completes successfully, [**DeviceIoControl**](/windows/win32/api/ioapiset/nf-ioapiset-deviceiocontrol) returns a nonzero value. - -If the operation fails or is pending, [**DeviceIoControl**](/windows/win32/api/ioapiset/nf-ioapiset-deviceiocontrol) returns zero. To get extended error information, call [**GetLastError**](/windows/win32/api/errhandlingapi/nf-errhandlingapi-getlasterror). +As documented here, this ioctl will always return failure because (despite the name) this is a FSCTL and needs to be sent via NtfsControlFile ## Remarks