I have three disk: disk0, disk1, disk2. Evtdeviceadd routine will be called 3 times for each of device. Now I want to catch read IRP and when it is from disk1 then I want to change the target from disk1 to disk2. So how Would I differentiate that the request I got it from disk1. For that if I am able to get device property then I can get to know or any other solution?
How to get the property of a device if I have wdfdevice and wdftarget in kmdf based filter driver?
635 Views Asked by ankit At
1
There are 1 best solutions below
Related Questions in WINDOWS
- how to play a sounds in c# forms?
- Echo behaviour of Microsoft Windows Telnet Client
- Getting error while running spark-shell on my system; pyspark is running fine
- DirectX 9 With No SDK Installed - How To Translate a D3DMATRIX?
- Gradle 8.7 cannot find installed JDK 22 in IntelliJ
- 'IOException: The cloud file provider is not running', when trying to delete 'cloud' folder
- Cannot load modules/mod_dav_svn.so into server
- Issue with launching application after updating ElectronJs to version 28.0.0 on Windows and Linux
- 32-bit applications do not display some files in Windows 10
- 'bun' is not recognized as an internal or external command
- mkssecreenshotmgr taking a screenshot
- Next js installation in windows 7 os
- Can't resize a partition using Mini Tool?
- Is there any way to set a printer as default according with Active Directory Policy Security Group and PC hostname?
- Electron Printing not working on Windows (Works on Mac)
Related Questions in FILTER
- Producing filtered random samples which can be replicated using the same seed
- Using uBlock to hide a parent element that includes a child element that contains a specific string
- How change product price in cart on woocommerce?
- How to use extracted path params in filters in warp / rust?
- Cpanel filter encoding utf-8?
- Google sheets formula based upon a unique identifier and a date match (in between two dates)
- Copy the result of a filter from 2nd line
- Filtering posts within a page that displays a single category php
- How do I add tags to HTML web pages and sort them with a filter?
- Loader / Spinner infinite | Filter Everything Pro
- Nextflow filter entire tuple based on one value
- Filter a CSV file that has text above column names that must be maintained after the filter process
- Filtering dataset with multiple conditions for monotherapy
- Autocomplete search filter not working for dynamically added input fields in angular
- How to type filtered list?
Related Questions in DISK
- I have unallocated space in my C drive. I want to make it primary partition but it is being created as logical partition
- An issue where memory peaks abnormally and then normalizes again
- Run python script with disk as RAM
- GetVolumeInformationA returns no value for local disk
- GCP Cloud Sql (Postgres) simple select queries exceed disk read quota
- Does a physical filesystem works only for a specific type of storage media?
- My USB's corrupted post creating Windows boot USB on Ubuntu. Can't format.?
- How do I get my VM to pip install dependencies on my attached disk?
- Tinymce upload images to google cloud
- Are there any ways to set disk size limit for each docker container?
- How do I find the EFI partition on a Dynamic disk using PowerShell?
- Can't delete VM "Error: 'Error accessing storage"
- GCP Python get disk infromation
- "$Bitmap size is smaller than expected" when shrinking a partition image with ntfsresize
- Is there a way to monitor computer memory for a file to be loaded and then execute a different process to act on the file?
Related Questions in DRIVERS
- Preventing usbhid from claiming device
- Run PHP unit test with multiple database drivers
- Keyboard emulator
- Read address from MSI Capability Structure
- OpenGL Driver Update Windows 10
- Angstrom Linux - stdio.h No Such File or Directory
- socketCAN vs manufacturer's drivers
- Starting KMDF driver service after stopping results in mysterious error
- Userspace Serial communication Library on Linux
- Get the currently "Active" driver for a device in C++
- Finding the source code for Ubuntu drivers
- How to find name of error ID for NVIDIA OpenGL drivers?
- Can't statically link with libnvcuvid.so
- c++ Is there any windows API for listing device drivers shown in the windows driver manager console?
- Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y
Related Questions in KMDF
- Pinned GCHandle of array corrupted only when Debugger is attached
- KMDF how to get sid by pid (Security IDentifier by Process IDentifier)?
- KMDF driver process protection
- Reading char data from shared memory in kernel mode driver is not successful
- Driver Verifier doesn't seem to catch a WDF driver memory object leak
- Windows KMDF self-signing
- Define a KMDF driver as Non-isolated
- How do I check whether my WDM/KMDF driver uses the retpoline fix?
- How can a Windows filter driver send IOCTL_HID_SET_FEATURE request to hidusb/HID minidriver?
- VS cannot find ntddk.h, wdf.h or fwpmk.h
- Reading a file with kernel APIs when a user application is locking the same
- link users pace static library to KMDF Windows
- code 1284 Class "Sample" is reserved for use by Microsoft; code 1293 Service "ECHO" is reserved
- Unloading a Windows Driver
- Installing the driver using devcon and pnputil
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
When you add these disks, in your device add routine create an extension structure and allocate a context WDF_OBJECT_ATTRIBUTES_INIT_CONTEXT_TYPE(&objectAttribs, XX_EXTENSION); WdfObjectAllocateContext( Device, &objectAttribs, NULL);
differentiate them by having an identifier in that structure.
You would be able to access the queue object in your request callback. From the queue object get the device object and from that your extension structure and hence the identifier.