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

Detection of requests #10

Open
ci70 opened this issue Jan 30, 2015 · 2 comments
Open

Detection of requests #10

ci70 opened this issue Jan 30, 2015 · 2 comments

Comments

@ci70
Copy link

ci70 commented Jan 30, 2015

Hello!

I have a couple of questions. I patch VTABLE of IInternetProtocolEx ie StartEx. Works great to see whats going through the pipe. However how do you reliably detect which window is sending such requests?

Sometimes StartEx is launched on the main thread sometimes not and so a map won't exactly work 100%. Even Switch / Continue trick doesn't always work for all file types.

One idea would be to force it to run on the main thread all the time but I don't know how exactly to do that.

Are there other solutions for this problem out there? :)

@IUnknown68
Copy link

Joe,
there is in deed no way to detect this - at least we didn't find any. The only hint we had was, that the first request on the document (main) thread was always for the top frame.
But in case you want to dig deeper you might try this: Get other interfaces from the protocol sink via IServiceProvider and see if any of them can deliver you any of the window specific interfaces. We tried this also, but didn't find a reliable way to get what we need, so we gave up after a while. Maybe you have more luck!
Arne

@ci70
Copy link
Author

ci70 commented Jan 31, 2015

Could be possible by hooking something in URLMON. That's the only way to get it I see.

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