Handle is an abstraction of a resource or a reference to an entity. It can have different implementations: a pointer, an index in a table etc.
Questions tagged [handle]
1348 questions
-2
votes
2 answers
Get type of wincontrol - c#
I need to get the type of a wincontrol in a window using the mouse icon position.
Now I can identify the class but not the type. How can I get it?
[DllImport("user32.dll")]
public static extern IntPtr WindowFromPoint(int xPoint, int…

Sammy Davis
- 117
- 4
- 13
-2
votes
1 answer
SWIG/Python: Passing pointer into function
I basically want to do exactly this:
swig: how to pass void* into generic function
I seem to be able to get a value that Python can hold, but when I pass it back in, it is deemed null and causes a fail. So I'm thinking I need some kind of PyObject…

Jiminion
- 5,080
- 1
- 31
- 54
-2
votes
1 answer
Having problems while doing window Handle
While doing handle windows in selenium - Java, in Java it shows one 1 window open and if i tried with C# it shows 2 . I am not able to get the window handle of second window opened(Actually it is a message dialog box, i need to click on ok button…

Hussain
- 1
- 1
-2
votes
1 answer
MapViewOfFile failes with errorCode 6 (Invalid Handle)
Im trying to map the file to the memory and use MapViewOfFile(), but it failes with error code 6. I tried just about anything, I also read about big files being the problem, but the problem happens also with a 1kb file.
my code:
HANDLE hFile =…

johnny bravo
- 21
- 5
-2
votes
1 answer
Cant create a handle, or handle is invalid - WinAPI (CreateFile)
This is a piece of my code:
#include
#include
#include
#include
#include
#include
int main(int argc, char * agrv[]) {
//Convert argument 2 to…

johnny bravo
- 21
- 5
-2
votes
1 answer
Having trouble requesting input in python
i have troubling handling input in python. I have a program that request from the user the number of recommendations to be calculated.He can enter any positive integer and blank(""). I tried using the "try: , except: " commands,but then i leave out…

Nick
- 825
- 1
- 8
- 20
-2
votes
2 answers
C++ Why Sendmessage doesnt work?
In C#, this SendMessage function raise up volume successfull:
[DllImport("user32.dll")]
public static extern IntPtr SendMessage(IntPtr hWnd, int Msg, int wParam, int lParam);
SendMessage(Handle, 0x319, (int)Handle, APPCOMMAND_VOLUME_UP);
But in…

NoName
- 7,940
- 13
- 56
- 108
-3
votes
1 answer
why openprocess function return different handle each time?
I want to get the process and thread handles about some games to inject dll, and I used OpenProcess() and OpenThread() to obtain these handles. But I found that I just get different handles each time I use these functions. And they are useless for…

李恺航
- 1
- 2
-3
votes
2 answers
Dialog box Handle in MFC
I am creating a dialog box for my Credential Provider.
For that I am creating a MFC CDialog box with three edit text labels for:
old password,
new password,
confirm password.
After creating dialog box I got an .exe file and its works fine, but I…

BIJAY
- 13
- 5
-3
votes
3 answers
What does this matlab statement do
I have a statement in my MATLAB program:
f = @(A)DistanceGauss(A,x_axis,Y_target,Y_initial,numOf,modus);
I understood that f is defined as the function handle to the function distancegauss which contains the parameters/arg list present inside the…

Ramanan
- 79
- 1
- 9
-4
votes
1 answer
"0x0000006 The handle is invalid" error coming in multi-threaded environment
I have created an ASP 3.5 web service which performs thumbnail generation using some Windows APIs. These APIs use Windows HANDLE orHFILE for processing. I am using Asynchronous AJAX in JavaScript to call the web-service.
Server: ASP 3.5 Web…

Amber Beriwal
- 1,568
- 16
- 30
-6
votes
2 answers
Symfony2 best practice for complex forms
I have a complex database schema in my Symfony2 application, with a lot of entities linked to each others.
Consequently, my forms are also complicated : I can have many linked forms ; for example a "Cinema" can have an Address, but can also be…

Pete_Gore
- 594
- 1
- 5
- 20