Questions tagged [handle]

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.

1348 questions
-1
votes
1 answer

Custom Keyboard Input

How can I read custom keyboard input on c# ? (prefer wpf) My keyboard has extra buttons (like main , volume up-down,mute). How can I read when some of them are pressed ? Also if it is possible I want to be able to read them without my app to have…
Mitcoc
  • 31
  • 1
  • 9
-1
votes
2 answers

Access to Windows data though Windows Handles

I am programming in Win32 with FPC IDE I create Windows objects (like Windows, Pen, Brush, etc) and Windows returns me Handles. I want to directly access to the objects' data though those Handles. Is it possible ? If yes, how?
-1
votes
1 answer

What does `@(x) myfun(x, F_index)` means in Matlab?

What does @(x) myfun(x, F_index) means in MATLAB? What does it call and return? For example in this application: fmincon(@(x) myfun(x, F_index), ...) Please provide more examples and explain them if possible.
Masan
  • 347
  • 1
  • 4
  • 17
-1
votes
1 answer

Execute a subroutine before exiting the application

I am designing a client-server application, where the client requests various data and the server retrieves it from the local SQL server. I need to execute a function when the application exits in order to tell associated services that the server is…
AStopher
  • 4,207
  • 11
  • 50
  • 75
-1
votes
1 answer

Get the HMONITOR handle of the current active monitor

I have a multi monitor setup. Right is primary monitor, left is secondary monitor. I want to identify in which monitor,my window is invoked, so that i can create and show my window in that monitor. I'm having problem getting the handle of the…
user2338040
  • 101
  • 11
-1
votes
2 answers

Prevent exceptions in Rubygem that cannot communicate with its associated web service?

I am using a RubyGem (DeathByCaptcha) that makes HTTP calls to deathbycaptcha.com. Every so often the HTTP request times out or fails for some other unknown reason, and my Ruby scripts exits with an exception. I am trying to automate repeated…
Rick
  • 61
  • 1
  • 6
-1
votes
2 answers

Delphi: TreeView elements vs. Form position changing

We have found something is seems to be a bug(?), and cause bug in our code. Delphi XE3, Win32. Two forms, the main have button: procedure TForm4.Button1Click(Sender: TObject); begin with TForm1.Create(Application) do begin …
durumdara
  • 3,411
  • 4
  • 43
  • 71
-1
votes
5 answers

How to add one line before the last line in C

Hi I am working in C on Unix platform. Please tell me how to append one line before the last line in C. I have used fopen in appending mode but I cant add one line before the last line. I just want to write to the second last line in the file.
Sachin
  • 20,805
  • 32
  • 86
  • 99
-1
votes
2 answers

how to disable Notification bar throughout the application?

The user can launch other installed applications from my application and back to my activity when exiting launched application.I want to disable notification bar(showed status of wifi,gps,bluetooth etc...) or pulling down of notification bar…
Devu Soman
  • 2,246
  • 13
  • 36
  • 57
-1
votes
2 answers

Is there way to check whether a Form has a Form Border? (by handle)

I want to check whether a form has a Form Border by its handle. And, the handle is from the another Application. How can I handle this? Please help me.. Thanks!
jn4kim
  • 399
  • 1
  • 3
  • 10
-2
votes
2 answers

How can I handle filenames with Arabic text in Windows?

I got this source code from somewhere on the Net. It searches for files on the hard disk and prints out the path of the files: #include #include #include #include #include int…
pourjour
  • 1,186
  • 2
  • 13
  • 28
-2
votes
2 answers

How to use typedef void* Handle to dereference a variable?

I have the following code : #include typedef void* myHandle; int main() { int a = 1; myHandle Handle = &a; printf("%d\n",*Handle); return 0; } Question 1: usually, if I have a pointer of type integer, I can…
John Sall
  • 1,027
  • 1
  • 12
  • 25
-2
votes
1 answer

Multiply exectuion, jobs and WinAPI

everyone! I have some issue, which I don't know how to solve: When I sent the value to function by pointer, TerminateJobObject doesn't work. I don't know, how to kill not all job, only selected. There is my code: #define…
hunterlan
  • 315
  • 1
  • 6
-2
votes
1 answer

How to run an .exe file downloaded with InternetOpenFile() in Winapi

I have a C app written using Winapi and an .exe file that I need to download and execute. My code so far is: if (NULL == (hRequest = HttpOpenRequest(hHTTP, "GET", "/~alexandru.antochi/exe_1.exe", NULL, NULL, rgpszAcceptTypes, NULL,…
Alexandru Antochi
  • 1,295
  • 3
  • 18
  • 42
-2
votes
1 answer

Trying to grab, duplicate and protect a handle with NTDLL

So I am trying to basically loop trough the processes, find the process id of my process (which works), then open a process with that pid (which also works) and then duplicate it with NtDuplicateObject and protect it with NtSetInformationObject. The…
Shaggy Doo
  • 15
  • 4
1 2 3
89
90