Completed

Hook the CreateProcess call

We would like to hook the create process call.

The aim of this should be that when we double click a Word, Excel, PowerPoint or Visio file it will spawn the the application (I assume using the CreateProcess).

Now, we need to hook this and intercept it so we can modify the options passed into the CreateProcess allowing us to modify the options on the call to allow us to modify the file it is opening.

PreReq

1. Microsoft 365 licence (trial is fine) with OneDrive and MS Office

2. Ensure Office is installed and signed in with the user from point 1

This project will be broken down into 3 milestones

1. Create a base solution that is fully debuggable that will allow us to write to a log file (ideally allowing us to breakpoint too) whenever CreateProcess is being called and the Application is winword.exe. We should ensure this is being called when we double click a docx file and when you open word manually, go to File > Open and select the document from there. The log file should print all properties of the create process

2. We should then, if the file is a word document and if it matches a hard coded name ([login to view URL]) then we should replace the document it is opening with a document from O365 (for example): [login to view URL] This should then open up the "online" document rather than one the we double clicked. You will know this because AutoSave in the top left is enabled and when you click Share it will not ask you to save to OneDrive and instead show you a link. This should be working both by double clicking the file and by opening up Word, clicking File > Open and selecting the file from the disk.

3. With this working, we now want to create GRPC using named pipes to a second application. When the CreateProcess is called, it should send the path of the file over GRPC named pipes to the second application. The second application should then respond with the URL for the file. We should then get an example working for Word (.docx), Excel (.xlsx), Powerpoint (.pptx), Visio (.vsdx).

The full flow should be that when i open a document from either File Explorer (double clicking) or from within Word,Excel,Powerpoint or Visio (File>Open).

It should call CreateProcess, we should check the following:

1. Is the application Word/Excel/Powerpoint or Visio

2. Is it opening a file on the drive letter we care about (hardcoded to C:\ for now using a variable)

3. Is the file it is opening a FileType of (.docx, .xlsx, .pptx, vsdx)

4. check over GRPC to a second application if the filename is in a list

If none of the above is true, the CreateProcess should continue as normal, if however the second application over GRPC accepts the filename it should return the path of the "online" version of the file. With this we will modify the CreateProcess to open up the online file not the local file.

The hook application can be any language (C/C++/C#). The second application should be C#.

Skills: Windows API, C++ Programming

About the Employer:
( 10 reviews ) Paignton, United Kingdom

Project ID: #32720677

Awarded to:

leonidmetelskyi1

Hi, Adam C. It's Leonid Metelskyi for your project. ............................. ............................................

$1500 USD in 7 days
(2 Reviews)
3.4

5 freelancers are bidding on average $1275 for this job

sergeypetrachen

Hi there. I just read your posting. Hook program is what I specialize in. If you hire me you will be satisfied. Let me know if you need my help , and we can set up a time to talk. thanks Best regards

$1500 USD in 7 days
(3 Reviews)
3.9
ivanovatale

I’m an IOI/APIO (International Olympiad in Informatics, Asia Pacific Olympiad in Informatics) medalist and ICPC (International Collegiate Programming Contest) semifinalist. I have 2 years experience in coaching informa More

$750 USD in 7 days
(4 Reviews)
3.9
Matveytrofa

How are you! I am interested in your project and it's my top skill. I 've already decided to do this task, so you do better consult me. If you do good use of this chance, you will have perfect project and your own new More

$1125 USD in 7 days
(2 Reviews)
1.8
expertwinnie

HELLO DEAR EMPLOYER, First receive warm greetings, and hoping you are good, i welcome you to the home of Amazing services and quality. I'M AN EXPERT IN NAMED SKILLS, OVER 18 YEARS OF EXPERIENCE, After KEENLY reading y More

$1500 USD in 7 days
(0 Reviews)
0.0