Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug code consultation #2

Open
GuBuChang opened this issue May 18, 2024 · 2 comments
Open

Debug code consultation #2

GuBuChang opened this issue May 18, 2024 · 2 comments

Comments

@GuBuChang
Copy link

GuBuChang commented May 18, 2024

i am use VS2022 debug current project.
but i find filefakeclient.dll can not be load.
so connectnamedpipe return false.
if i run from local the filefakeclient.dll can be load correctly. and i can debug filefakeclient.dll code by attach to notepad.exe
so how to do debug current project by VS2022

and another question

image i just find code

extern HANDLE(*CreateFileA_Original)(LPCSTR, DWORD, DWORD, LPSECURITY_ATTRIBUTES, DWORD, DWORD, HANDLE);
is declare
it do not have implement.

image

but i find this function call. why? can we call a function without implement?
image

Thank you very much for your reply。

@Danleb
Copy link
Owner

Danleb commented May 20, 2024

@GuBuChang
Regarding #1, I don't have enough info to reproduce it. Please provide more detailed steps to reproduce this issue.

Regarding #2, those are not function declarations. That are variables, pointers to functions. That are just pointers which store addresses of the original I/O functions before that are hooked.

@GuBuChang
Copy link
Author

regarding #1 i maybe find why.
image
use GetFullPathName in debug model can not fetch full path of FileFakerClient.dll correctly.
GetFullPath use dir is VS project dir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants