Comments (5)
Hi, Hans,
I have received your email. I will close this issue after a resolution is achieved. I will also post the resolution here prior to closing (in addition to responding to your email of course).
from dmf.
In other words, where to best ask a question like:
The issue I have is that my driver works partially, but that I cannot open a connection to it to send ioctls to it - neither using a win32 CLI app nor using UWP with a
CustomCapability
.
The error I get isHRESULT: 0x8007001F
/A device attached to the system is not functioning
.
DeviceWatcher
correctly finds my driver device but the error is thrown when I callCustomDevice.FromIdAsync(Id, DeviceAccessMode.ReadWrite, DeviceSharingMode.Exclusive)
orCreateFile(...)
in the win32 app. Other functionality in the driver works, and Windows reports no other problems regarding the driver. The errors do not provide more details.
from dmf.
Hi, Hans,
For now, I think asking questions here is fine. But, if you want to send a question privately, please send it to [email protected]. That alias reaches several people including me. (If this ever becomes an issue, I will let you know.)
I can tell you that we have successfully used DMF with "DeviceWatcher". The first thing I would to diagnose your issue is see if you can access the IOCTLs using a native Win32 application. If that does not work, then nothing else will work. If that does work, then we know there is another issue. One way to debug the issue since you say you can see the device from the app but not send IOCTLs is to put a break point at this function: DmfContainerEvtDeviceIoControl(). That should get called when you send an ICOTL. If that gets called, then you can step through the code until it gets to your Module or find out why it does not get there. One more thing make sure you are not using "Internal" DeviceIoControl in the Module as that will only work for driver to driver communication.
Do not hesitate to contact privately at [email protected] and one of us will help you if we can. All the feedback we receive helps us to fix issues we did not see in our own usage of DMF.
from dmf.
Thank you very much, Sam! I sent a mail to [email protected] containing all details, a bug reproduction branch, test apps, repro steps.
The first thing I would to diagnose your issue is see if you can access the IOCTLs using a native Win32 application
The issue is that this does not work, even though I defined my IOCTLs and registered them using theDmf_IoctlHandler
module. There is a test app in the bug reproduction branch for this.
If any details are missing, please let me know.
from dmf.
The issue you encountered was because you are trying to send IOCTls to a device interface generated by a filter driver. This, however, is not allowed by underlying WDM. More information is here:
https://docs.microsoft.com/en-us/windows-hardware/drivers/wdf/using-control-device-objects
The solution is to use a Control Device (not possible in UMDF) or piggy back the communication using INPUT/OUTPUT/FEATURE reports.
from dmf.
Related Issues (20)
- Isn't it better to design DMF on C++ code base? HOT 3
- Unexpected behaviour of ScheduledTask module HOT 7
- [UMDF] DMF_VirtualHidMini fails WriteReport requests on descriptors without Report IDs HOT 2
- Latest code generates following linker errors in my project HOT 17
- Do not use Visual Studio 16.10.0 or 16.10.1 or 16.10.2 with DMF due to link regressions HOT 4
- Debugging assertion in DMF\Dmf\Modules.Library\Dmf_ScheduledTask.c HOT 12
- Question Regarding SoundWire bus support HOT 11
- Unused config param in DMF_VirtualHidKeyboard module HOT 4
- How can I disable WPP for the DMF driver ? HOT 5
- Duplicated lines HOT 2
- This repo is missing important files
- EyeGazeIoctl sample fails ApiValidator HOT 2
- Pdo_DevicePropertyTableWrite adds properties to parent device instead of PDO HOT 32
- Building with Windows 11, version 22H2 WDK (10.0.22621.0) supported? HOT 9
- Trying to use Dmf_IoctlHandler with Control Device Object, supported? HOT 15
- fatal error C1510: Cannot load language resource clui.dll HOT 12
- WDF Verifier (Handle Tracking) trips over FILEOJECT de-reference without using the right tag HOT 2
- Dmf_VirtualHidKeyboard work in User-mode? HOT 1
- Why are lib files added to linker manually? HOT 5
- Why is `EnableLookAside` a `ULONG` and not a `BOOLEAN`? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dmf.