Click here to Skip to main content
15,915,164 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
AnswerRe: Monitor screen become yellow Pin
Michael Dunn2-Jan-09 14:20
sitebuilderMichael Dunn2-Jan-09 14:20 
AnswerRe: Monitor screen become yellow Pin
Bharat Jain5-Jan-09 21:32
Bharat Jain5-Jan-09 21:32 
QuestionSend Buffer from driver to Application Pin
dereck78_zg17-Dec-08 22:15
dereck78_zg17-Dec-08 22:15 
AnswerRe: Send Buffer from driver to Application Pin
fat_boy19-Dec-08 21:32
fat_boy19-Dec-08 21:32 
AnswerRe: Send Buffer from driver to Application Pin
Randor 20-Dec-08 11:01
professional Randor 20-Dec-08 11:01 
AnswerRe: Send Buffer from driver to Application Pin
fat_boy21-Dec-08 21:15
fat_boy21-Dec-08 21:15 
QuestionEncryption and Decryption in Minifilter Driver Pin
noobDriverDev17-Dec-08 14:39
noobDriverDev17-Dec-08 14:39 
AnswerRe: Encryption and Decryption in Minifilter Driver Pin
Randor 19-Dec-08 8:18
professional Randor 19-Dec-08 8:18 
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
AnswerRe: Encryption and Decryption in Minifilter Driver Pin
Vinamrata21-Dec-08 23:12
Vinamrata21-Dec-08 23:12 
QuestionPrinter driver querry Pin
Deepu Antony17-Dec-08 2:42
Deepu Antony17-Dec-08 2:42 
QuestionUMDF USB driver: application stream into USB frames Pin
Dee Veloper15-Dec-08 22:13
Dee Veloper15-Dec-08 22:13 
AnswerRe: UMDF USB driver: application stream into USB frames Pin
fat_boy19-Dec-08 21:45
fat_boy19-Dec-08 21:45 
QuestionHardware requirement? Pin
dec8211-Dec-08 14:16
dec8211-Dec-08 14:16 
AnswerRe: Hardware requirement? Pin
Dave Kreskowiak11-Dec-08 15:51
mveDave Kreskowiak11-Dec-08 15:51 
GeneralRe: Hardware requirement? Pin
dec8211-Dec-08 18:21
dec8211-Dec-08 18:21 
GeneralRe: Hardware requirement? Pin
Dave Kreskowiak11-Dec-08 21:25
mveDave Kreskowiak11-Dec-08 21:25 
GeneralRe: Hardware requirement? Pin
sajjy22-Dec-08 8:55
sajjy22-Dec-08 8:55 
QuestionCommunication between Driver an aplplication Pin
dereck78_zg11-Dec-08 3:05
dereck78_zg11-Dec-08 3:05 
QuestionArtificially creating a plug and play instance of a printer Pin
ArjunMK10-Dec-08 8:39
ArjunMK10-Dec-08 8:39 
AnswerRe: Artificially creating a plug and play instance of a printer Pin
Dave Kreskowiak11-Dec-08 15:50
mveDave Kreskowiak11-Dec-08 15:50 
GeneralRe: Artificially creating a plug and play instance of a printer Pin
ArjunMK14-Dec-08 5:54
ArjunMK14-Dec-08 5:54 
GeneralRe: Artificially creating a plug and play instance of a printer Pin
ArjunMK23-Dec-08 8:41
ArjunMK23-Dec-08 8:41 
GeneralRe: Artificially creating a plug and play instance of a printer Pin
Dave Kreskowiak23-Dec-08 9:42
mveDave Kreskowiak23-Dec-08 9:42 
GeneralRe: Artificially creating a plug and play instance of a printer Pin
ArjunMK28-Dec-08 9:18
ArjunMK28-Dec-08 9:18 
GeneralRe: Artificially creating a plug and play instance of a printer Pin
Dave Kreskowiak28-Dec-08 19:33
mveDave Kreskowiak28-Dec-08 19:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.