|
This is generally due the loose connection , behind your CPU , where you attach the cable of your monitor that cable is loose , please make sure that it is properly fixed , also make sure that the screw that fix it is also tight.
Hope this helps
-Regards
Bharat Jain
Phisys Software Solutions Pvt. Ltd.
bharat.jain.nagpur@gmail.com
|
|
|
|
|
Hi
I don't know how I can to pass a read buffer from driver to my application, I know how I can do this with DeviceIoControl, but it's possible to send something that driver reads without deviceiocontrol?
Thaks a lot
|
|
|
|
|
The only way of passing data from a driver to an app is for the app to have an outstanding read IRP with the driver, either IRP_MJ_READ or an IOCTL with a read buffer.
To send data to the driver you can of course use IRP_MJ_WRITE.
(With ndis you could use sockets to acchieve this, but I am assuming you arent. Anyway, sockets actually go over the IOmanager as IRPs anyway so its the same process.)
Morality is indistinguishable from social proscription
|
|
|
|
|
dereck78_zg wrote: but it's possible to send something that driver reads without deviceiocontrol?
Yes, it is possible but why would you want to do that? You could probably use named memory objects for both the locks and the shared memory. It would work something like this.
1.) Usermode application uses CreateFileMapping[^]/OpenFileMapping [^]and creates/opens the named section and writes its data.
2.) Driver uses ZwOpenSection/ZwMapViewOfSection to open the named section. The driver would probe/lock the buffer and use MmGetSystemAddressForMdlSafe[^] to obtain the address and read the shared memory.
I left out the most difficult part locks/synchronization and signalization. This method has alot of problems at a raised IRQL, your better off using an IOCTL with METHOD_IN_DIRECT/METHOD_OUT_DIRECT.
Here are some guidelines to follow for ring3/ring0 interactions.
User-Mode Interactions: Guidelines for Kernel-Mode Drivers[^]
Best Wishes,
-David Delaune
|
|
|
|
|
Of course the benefit of using an IOCTL to pass data back and forwards rather than a READ or WRITE is that you can set the security thus permitting access to the device from user rights code.
Morality is indistinguishable from social proscription
|
|
|
|
|
I am developing a minifilter driver that has encryption and decryption mechanism for files that are to be copied and/or read from/to a specific destination/folder but currently i have no idea HOW can i be able to implement tha later.
To help me understand and be able to know the KNOW-HOW of the implementation, the following are my question:
1. How can i encrypt a file/files for copy from a location A to B?
2. From no. 2, how can i decrypt the encrypted file/files to be copied?
3. And also applies in encrypttion and/or decryption for reading of file/files from a certain location?
Can you give me an idea HOW are these possible and if you have sample snippets can you show it to me?
Any help is greatly appreciated.
Thanks in advance.
Best regards,
taDo
|
|
|
|
|
noobDriverDev wrote: 1. How can i encrypt a file/files for copy from a location A to B?
A minifilter is certainly the best way to do this. You could also create a SSDT hook for ZwWriteFile[^] and ZwReadFile[^] but this is not recommended nor supported by Microsoft. I would say that you are on the right track by looking at a filter driver.
noobDriverDev wrote: 2. From no. 2, how can i decrypt the encrypted file/files to be copied?
3. And also applies in encrypttion and/or decryption for reading of file/files from a certain location?
The Microsoft DDK samples are an absolute goldmine. You should probably start by modifying the sample located at:
C:\WINDDK\6001.18001\src\filesys\miniFilter\cdo
You will need to intercept some of the Fast I/O Dispatch Routines[^]. Much of the code has already been written for you in the sample driver. You should be able to simply modify the buffer returned from:
FastIoRead
FastIoWrite
FastIoReadCompressed
FastIoWriteCompressed
and such...
You should probably start with a simple XOR operation on the read/write buffer. As always, MSDN is a valuable source of information.
Writing IRP Dispatch Routines[^]
File System Filter Drivers[^]
You may also want to have a look at Installable File System Kit[^]
noobDriverDev wrote: Can you give me an idea HOW are these possible and if you have sample snippets can you show it to me?
Microsoft has provided a plethora of examples with the DDK install you can't get much better than that. The processes involved in your requirements are far too complex to be reduced into a small snippit.
Good Luck,
-David Delaune
|
|
|
|
|
|
I am writing a new printer driver in windows xp in X86 32 bit platform.
When using the add printer wizard to add printers,after copying the files to windows\system32\spool\drivers\w32X86\3 , the message box is displayed that printer driver is not installed operation could not be completed.
It was working before.But i dont know what had happend.Guess some files may be corrupted or setting maybe changed.but i am not able to find out
Things i have done so far
1.restarted print spooler service
2.deleted all the printers in the add printer folder in control settings
3.removed all printers from server properties\drivers tab in add printer folder
4.Deleted all files windows\system32\spool\drivers\w32X86\3 folder
5.renamed w32X86
6.Deleted OEMXXX.png files ,ntprint.pnf, printupg.pnf, infcache.1 in system32\inf folder
7.Deleted registry setings of the earlier printer driver installed
Still i am not able to install the printer driver.
please help me.
With regards
Deepu
|
|
|
|
|
Hi!
Currently I am writing data from my application via WriteFile to my UMDF USB driver and send the stuff over bulk endpoints. I'd like to send only single USB frames from my application to my device. Is there a way to break the data stream from the application into USB frames without applying an own transfer protocol (e.g. packet length, packet data...)? Since USB has such a protocol (framing) I think it is rather annoying to implement a new framing protocol on top of it just to make sure that my app. receives and sends only single USB frames.
Any ideas?
Thanks!
|
|
|
|
|
Just send the data in whatever size you have it. A couple of k at a time is OK.
Morality is indistinguishable from social proscription
|
|
|
|
|
Any one have a template/ jounal about hardware requirement ?
Thanks
|
|
|
|
|
With the information that you've provided, no, noone has anything like this. What EXACTLY are you looking for? A hardware requirement for what??
|
|
|
|
|
hardware requirement for my system , like interface, assumption, dependencies....
|
|
|
|
|
That's hardly clarification into what you're looking for. So, you want a Word template to write up a document the hardware and software in your own system??
|
|
|
|
|
I really dont get what he wants !!!
system requirements for what?!!
|
|
|
|
|
Hi
I have a problem with how to communicate with mi Application from Driver.
I detect when an interrupt happen, but I don't know how I can to communicate this to the application. I don't know how I can use an event to this.
Thank you so muchs
|
|
|
|
|
Hello all.
I want to artificially create the pnp instance of a given printer in a windows machine. Provided I know the vid and pid of it. Also I have the actual hardware and I can do the pnp job in my pc.
My requirement is to get the same pnp instance in a different machine without actually connecting the hardware.
|
|
|
|
|
Use a tool, like Total Uninstall, to watch the changes that are made to the machine. You take a snapshot of the machine, install the printer (for real!), then take another snapshot. TU will tell you what all the changes to the machine are, then you just need to duplicate those changes on the other machines. Warning! There will be a LOT of changes. You may want to capture the changes with something like InstallShield or InnoSetup.
|
|
|
|
|
I tried with Total Uninstall. Got the changes in the registry.
But I can't generate the found new hardware wizard that gets popped up when we attach a printer device. Is it possible to artificially generate that found new hardware wizard of windows ?
|
|
|
|
|
Since nobody is replying, I think its impossible.
What if I try an usb input device like a pen drive instead of printer.
Is it possible to force the vid and pid of a printer into an usb pen drive ?
|
|
|
|
|
That interface won't do you any good since you don't really have any driver to install in the proper way.
Like I said, you have to capture the changes that are made on the one machine, then replicate those changes, both file and registry, on the other machines. If you have to copy files and create registry entries, well, you really don't have a choice.
|
|
|
|
|
Yes I tried with Total Uninstall, both registry changes and file updates can be captured.
But I need to launch the 'found new hardware' wizard when a printer is plugged in the machina (via an usb port). So I have changed my plan.
What if I feed the required pid and vid of the printer in an usb pen drive and plug it in the machine.
Is it possible to write the printer's pid in a pen drive so then when we plugin the pen drive in the pc, the system recognises it as the printer itself. Is it possible ? Please answer.
|
|
|
|
|
No, it won't. It's a different device type. Unless you can completely make the pen drive look like that printers USB chip...
|
|
|
|
|
So is there any way to do the thing, pls advice.
|
|
|
|