Call a DLL function whenever a file is accessed on Windows 7

Closed Posted Oct 30, 2010 Paid on delivery
Closed Paid on delivery

I want an application that hooks to the Windows 7 kernel and calls a function in a DLL file whenever a file is accessed.

The function should be informed of: file name, file access mode, PID of accessing application.

## Deliverables

I will write a DLL file which will contain one function, in the following form:

`int accessTrigger(pchar fileName, int accessMode, int PID)<br />`This function will return either 0 or 1, letting the caller know whether to allow the application to access the file (return code 0) or deny access to the file (return code 1). I need an application that will call this function and will take action as instructed by this function. The application should call this function whenever it finds a new (fileName, accessMode, PID) triplet.

The application should run on both Windows XP SP2 32-bit and Windows 7 32-bit or there should be two applications for each of them. The DLL should reside in the same directory as the application(s) and should be named "[url removed, login to view]". The application(s) should not depend on any other external resources, except for the standard Windows XP SP2 32-bit system files and the standard Windows 7 32-bit system files (this means: no .NET or Java or other similar programming languages).

Please keep the source code concise. The resulting application(s) should be small (I would prefer something less than 200KB (each)).

Engineering Microsoft Project Management Script Install Shell Script Software Architecture Software Testing Windows Desktop

Project ID: #3824772

About the project

5 proposals Remote project Active Nov 21, 2010

5 freelancers are bidding on average $309 for this job

AlexNaumov

See private message.

$170 USD in 14 days
(89 Reviews)
6.2
marktwen

See private message.

$680 USD in 14 days
(20 Reviews)
5.9
codenesia

See private message.

$255 USD in 14 days
(15 Reviews)
4.0
kibora

See private message.

$680 USD in 14 days
(8 Reviews)
3.6
codenesiatech

See private message.

$170 USD in 14 days
(2 Reviews)
1.1
erpoojasharma

See private message.

$272 USD in 14 days
(1 Review)
0.0