I am trying to hook a function to Notepad.exe, so that it will encrypt a file when saving. I have dis-assembled it with IDA. I want to place breakpoints on the saving subroutine which I have identified. When starting a Notepad process inside the IDA debugger, I can use notepad fine but when try to "Save As" from inside the Notepad the process crashes with the following error:
7FFE28C9565C: unknown exception code 6BA (exc.code 6ba, tid 10436)
What can I do to solve this?
A problem that might be related is that when I first dis-assemble notepad.exe I get a popup asking me to place the path of api-ms-win-shcore-path-l1-1-0.dll, which I can't find.