Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging

The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.

Check out The OSR Learning Library at:

corruption in Save as tif LZW image file to jpeg file

m_sldm_sld Member - All Emails Posts: 25
edited August 2019 in NTFSD

I want to save as a tif LZW file to jpg file via mspaint application. In case we have small image file or tiff file without LZW compress method, there isn't any problem.
I use STATUS_REPARSE in my driver code to create reparsed file per sensitive original file(sensitive file detected via it's signature) and when i get SetRenameInformation request over reparsed file, I get ACCESS_DENIED. Then save as result is a dialog with error message ("Paint cannot save this file. Save was interrupted.")
In fact when i load my driver in file system, save as tif lzw to jpg, creates multiple .TMP files in Temp location of windows, then try to rename between them and rename to reparsed file(reparsed file is a fake file of original file that created by irp-create on original file. fake file has a handle of original file).
without driver there is only one .TMP file in temp of windows.

what's your solution about this bug?

there is two flags in FILE_RENAME_INFORMATION structure:
that covers this problem in win10:

there is same solution for windows 8.1 x64?

Post edited by m_sld on
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Kernel Debugging 30 Mar 2020 OSR Seminar Space
Developing Minifilters 15 Jun 2020 LIVE ONLINE
Writing WDF Drivers 22 June 2020 LIVE ONLINE
Internals & Software Drivers 28 Sept 2020 Dulles, VA