handle

In Windbg, how do I determine if a ManualResetEvent is signaled or not?

浪子不回头ぞ 提交于 2020-01-23 08:26:31
问题 I took a memory dump of a process using .dump /ma c:\mydump.dmp I would like to figure out if a specific ManualResetEvent handle is set or waiting. I've tried 0:181> !handle 2db0 f Event Handle 0000000000002db0 Type Event Attributes 0 GrantedAccess 0x1f0003: Delete,ReadControl,WriteDac,WriteOwner,Synch QueryState,ModifyState HandleCount 2 PointerCount 524289 Name <none> Object specific information I have discovered that someone got more information using the same command somewhere on the

In Windbg, how do I determine if a ManualResetEvent is signaled or not?

非 Y 不嫁゛ 提交于 2020-01-23 08:26:09
问题 I took a memory dump of a process using .dump /ma c:\mydump.dmp I would like to figure out if a specific ManualResetEvent handle is set or waiting. I've tried 0:181> !handle 2db0 f Event Handle 0000000000002db0 Type Event Attributes 0 GrantedAccess 0x1f0003: Delete,ReadControl,WriteDac,WriteOwner,Synch QueryState,ModifyState HandleCount 2 PointerCount 524289 Name <none> Object specific information I have discovered that someone got more information using the same command somewhere on the

Unable to create navigation drawer with handle

被刻印的时光 ゝ 提交于 2020-01-17 03:29:10
问题 I know that this question has been already asked here and here but still I am unable to create the navigation drawer with handle. I have used the class as mentioned below :: DrawerHandle :: @TargetApi(Build.VERSION_CODES.HONEYCOMB_MR1) public class DrawerHandle implements DrawerLayout.DrawerListener { public static final String TAG = "DrawerHandle"; private ViewGroup mRootView; private DrawerLayout mDrawerLayout; private View mHandle; private View mDrawer; private float mVerticalOffset;

C# Set Window Behind Desktop Icons

夙愿已清 提交于 2020-01-13 04:26:11
问题 Assume i have an empty form 100px by 100px at 0,0 coordinates on the screen. It has no border style. Is there any way to have this positioned BEHIND the desktop icons? I would assume this would involve the process Progman because thats what contains the desktop icons. But no matter what i try... getting window handles and changing parents etc, i cant seem to get the window to appear behind the icons. Any ideas? 回答1: Essentially you want to draw on the desktop wallpaper . The desktop hierarchy

Why does GetWindowText hang with a “closed” handle but not with a random one

与世无争的帅哥 提交于 2020-01-11 09:21:07
问题 Using the following code [DllImport("user32.dll", EntryPoint = "GetWindowText", ExactSpelling = false, CharSet = CharSet.Auto, SetLastError = true)] private static extern int GetWindowText(IntPtr hWnd, StringBuilder lpWindowText, int nMaxCount); public static String GetWindowText(IntPtr hWnd) { StringBuilder title = new StringBuilder(MAX_TITLE_LENGTH); int titleLength = WinAPI.GetWindowText(hWnd, title, title.Capacity + 1); title.Length = titleLength; return title.ToString(); } GetWindowText

erase an object from canvas

…衆ロ難τιáo~ 提交于 2020-01-07 04:58:06
问题 I am trying to develop an application and i want the sprites to erase once they reach the end. I am using arraylist to handle my sprites on a canvas. I want the sprites to erase themselves from the canvas and from the arraylist once their x<0 (outside of the canvas) Please help me asap. Thanks This is my code so far for the erase command: for(Sprite sprite : rockSprites){ sprite.x -=10; if (Rect.intersects(sprite.dst, die)) { rockSprites.remove(this); currentAmountOfSprites--; try { Thread

Autohotkey - Trigger script when a certain button was clicked in a window

江枫思渺然 提交于 2020-01-06 18:08:20
问题 I know the actual button's handle. What I would like to check if that button was clicked and if so that would trigger an autohotkey script. Thanks in advance! 回答1: You are right. You can use this instead of ImgSearch. ControlGetPos, x, y, w, h, button1, ahk_class CalcFrame MsgBox, %x% %y% %w% %h% return So you would have to run the ControlGetPos after each mouse click (only when the target window title is active) and then compare the actual mouse coordinates with the button click area. Here

Autohotkey - Trigger script when a certain button was clicked in a window

北战南征 提交于 2020-01-06 18:08:07
问题 I know the actual button's handle. What I would like to check if that button was clicked and if so that would trigger an autohotkey script. Thanks in advance! 回答1: You are right. You can use this instead of ImgSearch. ControlGetPos, x, y, w, h, button1, ahk_class CalcFrame MsgBox, %x% %y% %w% %h% return So you would have to run the ControlGetPos after each mouse click (only when the target window title is active) and then compare the actual mouse coordinates with the button click area. Here

Android Tab Button: handle tap/click event

好久不见. 提交于 2020-01-06 00:02:29
问题 Please see the follow code fragment: // Create an Intent to launch an Activity for the tab (to be reused) intent = new Intent().setClass(this, HomeTabActivity.class); // Initialize a TabSpec for each tab and add it to the TabHost spec = tabHost.newTabSpec("home").setIndicator("Home", res.getDrawable(R.drawable.ic_tab_home)).setContent(intent); tabHost.addTab(spec); Now when I click on an tab button, it shows corresponding activity, but then I click the button again, I want to also detect this

Get handle of Object in AutoCAD 2015 from vb.net

℡╲_俬逩灬. 提交于 2020-01-04 02:59:10
问题 I have managed to link my Visual Studio to my AutoCAD 2015, but I am struggling to get a handle on a text object within my AutoCAD project from vb. I was wondering if anyone had any suggestions or tips as to how I could get a handle on an AutoCAD object from my vb code. Ultimately I want to be able to change the text of this object from my vb code. Any help or suggestions are appreciated.. Thank You in adavance 回答1: I would suggest you start with My First Plugin tutorial then this AutoCAD