|
I want to obtain the current number of window handles and the system-wide window handle limit in C#. How do I go about this?
Started by Roel Vlemmings on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
As Raymond Chen put it some time ago, if you're thinking about window handle limits, you're.
|
|
Hi,
How to get the handle of a ListBox control in VB.NET 2005?
I am using
Dim i_Handle As ListBox i_Handle = ListBox1.Handle
But this is not working
Started by JPro on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Instead of ListBox you must use IntPtr :
Dim i_Handle As IntPtr i_Handle.
You're creating a new ListBox) // You'll see numbers.
Hi,
Handle is an IntPrt (A handle is just a 32-bit integer).
|
|
Given a handle of type HWND is it possible to confirm that the handle represents a real window?
Started by John Richardson on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
By the time you've got confirmation that a Window is valid another process/thread ... .
Generally no.
BOOL isRealHandle = IsWindow(unknwodnHandle);
Look at this link for more information .
There is a function IsWindow which does exactly what you asked for .
|
Ask your Facebook Friends
|
I need to determine whether a handle that my code did not create, for which GetFileType()==FILE_TYPE_PIPE , is a socket or not. There does not seem to be an API for this.
I have tried the following. The general idea is to use a socket-specific function...
Answer Snippets (Read the full thread at stackoverflow):
If the call succeeds you know that the handle is a pipe handle, otherwise it must be a socket..
I'm thinking that perhaps you could attempt to call GetNamedPipeInfo() on your handle.
A named pipe...
|
|
I have a C++ RAII class for managing Win32 HANDLEs using boost::shared_ptr<> that looks a bit like this:
namespace detail { struct NoDelete { void operator()( void* ) {}; }; }; // namespace detail template< typename HANDLE_TYPE, typename HANDLE...
Started by PaulH on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Why? Because it is a waitable handle concept, including the Win32 Event, Mutex, Auto reset kinds, Thread, all of it apart from critical_section (which also has a backing handle deep within for:
typedef CHandleT< HANDLE &....
|
|
Hi,
I'm running an exe through which I get a handle of a control in another exe. Now what I want to do is send messages to the particular handle from my exe.
Started by RV on
, 3 posts
by 2 people.
Answer Snippets (Read the full thread at stackoverflow):
Static extern int SendMessage( int hWnd, // handle to destination window uint Msg, // message long wParam.
|
|
What is a "Handle" when discussing resources in Windows? How do they work?
Started by Al C on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Resolving a handle into a pointer locks the memory, and releasing the handle invalidates pointer may be given as the handle when....
In Windows, (and generally in computing) a handle is an abstraction which hides a real memory.
|
|
Gtk.Paned contains a style property called 'handle-size' which i assume will change the size of the handle, it's read only, so how do i change it?(in PyGtk)
Started by spearfire on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
GtkPaned *paned; gtk_init(&argc, &argv); gtk_rc_parse_string("style 'my_style' {\n" " GtkPaned::handle.
|
|
Windows forms had a property win1.Handle which, if I recall, returns the handle of the main window handle?
Is there an equivalent way to get the handle of a WPF Window?
I found the following code online,
IntPtr windowHandle = new WindowInteropHelper(Application...
Started by Evan on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
IntPtr windowHandle = new WindowInteropHelper(myWindow).Handle;
Right now, you're asking pass a reference to whichever window it is you want: new WindowInteropHelper(this).Handle and so on..
Instance...
|
|
What's the easiest way to get the filename associated with an open HANDLE in Win32?
Started by Max Caceres on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Into the filesystem, each of the names are equivalent, so once you've got just the open handle it wouldn't misled you too badly :)
Cheers,
Taylor
MSDN Article: Obtaining a File Name From a File Handle
FWIW ctypes :
from ctypes import ....
|