English 中文(简体)
h 防止重弹
原标题:prevent hook dll loading

Is there a way to way set process security permissions or some other way to disable Windows from loading global window hook dlls? I don t want to disable SetWindowsHookEx, I just want to disable the hook dll from loading in my process.

问题回答

您也许能够通过安装自己的 h子,而不是从你的头目中打上<条码>。 要想正确做到这一点,你就希望确保你们的ook将首先被称作.。

所谓“hoo”的命令似乎有文件记载,但很容易通过审判和错误加以检查。 只是安装了来自不同过程的几条hoo子,首先需要看。 最常见的案件

  • The first hook that s installed is the first being called. This is the easy option. Just make sure to install your hook as soon as possible.
  • The first hook called is the only installed last. This one is more tricky. You ll have to make sure at all times that your s is the last hook that was installed. a hackish way to do this is to create a thread that every second or so removes the hook and adds it again.

这种办法远非完美无缺,而且,鉴于该命令没有文件记载,它可能在未来某个时候发生可想象的变化。 也可以完全随意打断职业秩序,在这种情况下,这种解决办法不会使你受益。





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签