Cancelled

Get Open Files's File Handle and PID

Hi. Everyone.

I want following C functions...

1. Get Open Files's File Handle and process-Id.

When FileName is given, and If file is opened, return True, and return File Handle and Process-ID as variable.

If File is not opened, return FALSE

BOOL GetOpenFileHandle(wchar *FileName, long *FileHandle, long *ProcessID)

ex) GetOpenFileHandle("C:\\[url removed, login to view]", &FileHandle, &ProcessID)

if C:\[url removed, login to view] is opened, get C:\[url removed, login to view]'s Open FileHandle and related ProcessID.

and return TRUE

if C:\[url removed, login to view] is not opened, set Open File Handle=NULL, related ProcessID = NULL

and return FALSE

2. Currently Opened file, folder is saved to given dataFile..

BOOL GetListOpenFile(wchar *DataFileName)

When above function is called, Currently open file/folder list is saved DataFileName..

Structure of DataFile

1. Open File or Folder

2. Open File Handle

3. Is Folder or File : F=File or D=Folder

3. Process Name

4. Process ID

* and seperator is TAB

* Open File/Folder is include Network File.

example

C:\TEST\[url removed, login to view] + {TAB} + 0x937F + {TAB} + F + {TAB} + [url removed, login to view] + {TAB} + 0x123A

C:\TEST\[url removed, login to view] + {TAB} + 0x127F + {TAB} + F + {TAB} + [url removed, login to view] + {TAB} + 0x223B

C:\TEST + {TAB} + 0x127F + {TAB} + D + {TAB} + [url removed, login to view] + {TAB} + 0x223B

\\192.168.1.4\DATA\[url removed, login to view] + {TAB} + 0x127F + F + {TAB} + {TAB} + [url removed, login to view] + {TAB} + 0x223B

Skills: C Programming, C++ Programming

See more: file handle pid, process file handle, handle opened file, pid file handle, process open file, process opened files, file handle, bool getopenfilehandle, handle open files, file handle open, file open process, list open files, files handle pid, handle open file, open files process, open handle pid, file handle process, pid open file, file process, open files pid, s programming, programming variable, programming data structure, pid programming, network data structure

About the Employer:
( 22 reviews ) Seoul, Korea, Republic of

Project ID: #1102759

1 freelancer is bidding on average $500 for this job

simonchen

hello, i'm here. let me know..

$500 USD in 3 days
(52 Reviews)
6.5
JamesBond49

It is very easy problem. let me know

$300 USD in 3 days
(5 Reviews)
4.7