Hi there!
I am a beginner at DDK/WDM driver developing field.
I have a task which involves porting a virtual device driver from x86 to x64 (intel).
I got the source code, I modified it a bit and compiled it succesfuly with DDK (build environments). But when I tried to load it on a ia64 Windows7 machine it didn't want to load.
Then I tri...
Hi all,
My hardware has a problem, from time to time it's sending a "keydown" followed by a "keyup" event:
keydown: None LButton, OemClear 255
keyup: None LButton, OemClear 255
keydown: None LButton, OemClear 255
keyup: None LButton, OemClear 255
It goes like this, every 1 or 2 seconds, forever, in Windows.
In general it doesn't a...
I know how about the capture part in wireshark. Parsing and figuring out the data shouldn't be a problem. Links to where I can get more information, tutorials or forums on how to target and receive from the device, or related content would be most helpful.
...
When 2 or more processes request data from a device/network and block (put on a wait queue) and when the data arrives, how does the driver know which process to send it to (or which process to wake up)?
...
Hi! all,
We are developting a tool for live video streaming in which we want to broadcast the output of tv tuner on a network.Our project is at it's nascent stage.Our main concern at this moment is to how to capture the output of a tv tuner card.Plz guide us regarding this or provide a pointer where I can detail about the topic.
All help...
My windows driver has a .sys file and a .dll (which I'm guessing is the programming interface to the driver?) Anyway, I need to compile the driver to run on Windows 7 64-bit. I have downloaded the WinDDK and am able to compile everything, but my application still won't work with the new driver. My question is - if the application is a...
I'm using ddkbuild for building my driver.
And I use prefast also.
Prefast has /StackHogThreshold option.
The default value is 1024 Bytes.
I want to modify the value but I can't find a way.
How can I do that?
This is my input for 'Rebuild All Command Line'
C:\Windows\System32\cmd.exe /k "$(SolutionDir)..\..\ddkbuild.bat" -WIN7WLHA64 ...
When we command "net use" on command prompt, the result has four columns.
Status Local Remote Network
OK Z: \\10.x.x.x\Public Microsoft Windows Network
X: \\10.y.y.y\Public My Network Redirector
The Microsoft Windows Network(SMB)'s Status has OK value, but we don't. It's just empty.
...
EDIT:
If myinc_value is an N-digit integer, I get the first N/2 bytes of the msg buffer back in user space. So if myinc_value = 48, cat /dev/my_inc yields 4. If myinc_value = 489324, cat /dev/my_inc yields 489.
This behavior persists even after I added the following code directly after the while loop, to nul-terminate the user-space b...
SysInternals's WinObj can list all device objects.
I wonder how it can list the devices.
Is there any open source we can read?(or a code snippet)
What is the most significant function I should know?
...
The API defined in the ADL SDK manual reads:
int ADL_Display_ConnectedDisplays_Get(int iAdapterIndex, int* lpConnections)
They say that lpConnections is the pointer to the bit field indicating whether the output connectors on the specified adapter have devices physically attached to them. This information is exactly what I want but no...
I am working with a WinCE device which has a radio manager driver written for it in MFC. In the code for the Radio GUI, I can see the function Deviceiocontrol with a specific IOCTL being called. However, I'm unable to trace the particular piece of code called by this function. Can someone tell me how Deviceiocontrol works?
...
I'm trying to debug a memory leak in a printer driver. I'm pretty sure it's a resource leak, not just a plain memory leak because analyzing heap with !heap -s in windbg doesn't show any increase. How do I monitor other kinds of objects with windbg? Number of GDI objects and open handles is not growing either, so what could it be?
The...
When a volume is attached to file system, on Windows,
the Window explorer detects the volume and refreshes automatically.
I wonder the technique.
How do an program(include device driver) get the notification?
-Of course, it doesn’t mean a polling. I want to get an event(or a message).
I would like to get the notification when a network...
Hi there!
I'm trying to make my own ioctl driver command for calling it from an user-mode application dll. For now I just wanted to make sure the dll succesfuly calls that command on the driver code. So I defined my command (in the dll and in the driver's code) like this:
#define BUSENUM_IOCTL(_index_) \
CTL_CODE (FILE_DEVICE_BUS_E...
Hello,
Many Zw* functions that work with files (such as ZwCreateFile) need to be called at PASSIVE_LEVEL with APCs enabled: http://msdn.microsoft.com/en-us/library/ff566424%28VS.85%29.aspx. This is because, internally, I/O operations are asynchronously and the completion of an operation is delivered through an APC (correct me if I'm wro...
We wrote a Windows device driver to access our custom PCI card. The driver uses CreateFile to get a handle to the card.
We recently had trouble at one installation were the card appeared to stop working. We tried replacing the card (the replacement appeared not work either). The computer vendor replaced the motherboard and both cards...
Hello,
I want to get into windows driver development. I heard from the community that before diving into driver development one must be familiar with windows internals that means one must read "Windows Internals by Mark Russinovich.
I'm going to buy this book today. Which edtition should I buy? 4th edition covers Windows XP & Windows 2...
We have a usb device and the drivers (.inf, libusb.dll, libusb.sys) and can install it using Windows' Device Installation Wizard (by pointing to the .inf file). However, we need to install the drivers without using the wizard (passively, so the user doesn't need to do anything). Does anyone know how this can be achieved?
...
Somewhere I read that opening the same file twice has an undefined semantics and should be avoided. In my situation I would like to open my own device multiple times associating multiple file descriptors to it. The file operations of my device are all safe. Is there some part of Linux between the sys call open() and the point it calls th...