|
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.
|
|
|
|
|
I have no idea what you're ultimately trying to do. "trying to create an instance" means what?? Are you trying to preinstall a printer without actually having the printer?
|
|
|
|
|
^^ Thats what I am trying to get. Installing a printer driver without actually connecting the printer to the pc.
|
|
|
|
|
Sorry for making a late reply.
Actually I am in a project to create a install situation for a given printer device without actually connecting the printer to the pc.
I am there to simulate the situations that happens when we connect a given a printer to the pc.
Lets take our pc is running win xp, and I connect a printer via an usb cable. What happens that the 'found new hardware wizard' launches asking the user to make the next step for installation.
I am there to simulate this situation without actually connecting the printer, and I know the pnp-id and vendor-id of the given printer.
Please help.
|
|
|
|
|
Hi, I have a printer HP LaserJet 3005dn and I'm sure that my printer could print on both side based on the manual which is came with the printer. But when I successfully install the driver and i try to print both side, the printer just print on one site. There is no error message display. The printing run as normal but it just not print on both side whether i already select print on both side option. If anyone know the solution to fix the problem with please let me know. Thank in advance!!!
|
|
|
|
|
IF it's like the printers I use at work you need to set it on the client. Most Apps-File-Print-Properties-Look for duplex
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
Yes, this printer is attached to the client machine and I already set its software on the client machine. And that client machine could not print on both side whether he already selected the print on both side option. Any idea? Thank for your comment!!!
|
|
|
|