The Win32 API is the core set of application programming interfaces (APIs) available in the Microsoft Windows operating systems. This tag is for questions about developing native Windows applications using the Win32 API.
0
votes
0answers
9 views
C Windows Add Default Search path for files (fopen…)
I have written a little interpreter which can run scripts.
For convenience, I associated the file type (.apol) with my interpreter located in "C:\Apol\Interpeter.exe" so whenever I double click a ...
0
votes
0answers
7 views
SendInput not working after attaching thread input to a target process
I'm making an application that needs to work with the UI of a program which doesn't seem to implement UI Automation elements (Inspect.Exe only shows the main pane and no children).
So I researched ...
0
votes
0answers
11 views
Disable NotifyIconOverflowWindow autohide
I have done flyout window similar to win7 battery meter. It is behaving just like built in one except when it is shown via notify icon who is locatet on NotifyAreaOverflowWindow the window autohides ...
0
votes
1answer
10 views
CreateWindowEx isn't return NULL but GetLastError returns 126 (Error:126)
Before calling CreateWindowEx(..) there isn't any error. And CreateWindowEx isn't return NULL. And interestingly window is show up after calling ShowWindow.
In code as you can see there is 2 ...
0
votes
1answer
14 views
System.OverflowException in CallWindowProc for 64 bit configuration when called from C# code
We have the following piece of C# code in our application:
private IntPtr _DefaultWndProc = IntPtr.Zero;
[DllImport("user32")]
private static extern IntPtr SetWindowLongPtr(IntPtr hwnd, int index,
...
0
votes
0answers
6 views
Why a form is needed for a SetWinEventHook callback?
Currently, I'm using the powerful SetWinEventHook() function to catch some user-interface's actions like minimizing and maximizing from other window runned by programs on the computer.
So I inspired ...
1
vote
1answer
50 views
Delphi API Hooks behave oddly
I'm trying to implement an API Hooking mechanism.
What I have so far, is a DLL injected into other processes via a SetWindowsHookEx call, and some code to implement the hooks themselves.
For ...
-1
votes
0answers
30 views
How to get window title from it's process path
I have a path of a process, I would like to get it's window title in C++.
Let's assume that this process has only one window.
So for example my process path is :
C:\Program Files\My ...
0
votes
1answer
8 views
Android BluetoothPAN to create TCP/IP network between Android device and Windows7 PC
Question 1) I'm trying to create a TCP/IP connection between Android device and a Windows 7 PC. For this purpose, I'm using Android's hidden BlutoothPan class using Java reflection API. Here is the ...
-1
votes
0answers
32 views
How to skin winapi completly
I know that there is a ton of sections about this subject.
but I wanted to ask you guys really specific one.
I would like to know how programs like SharePod:
...
0
votes
1answer
32 views
What is the safest way to verify loaded DLLs have valid certificates?
I have a binary 'api.dll' which uses another binary 'helper.dll'. I want to validate the authenticity of each DLL using digital signatures, but I'm not sure the correct way to go about it. For ...
3
votes
1answer
104 views
C++ Integer to pointer conversion
So recently I've been dealing with WinAPI's WriteProcessMemory and ReadProcessMemory which both take LPVOID as their second argument which is the actual address in the memory of another process we ...
0
votes
1answer
29 views
C++ Winapi Including DLL in the .exe file
I'm using MYSQL library, and libmysql.lib /.dll.
My program cannot be working without the libmysql.dll
When I'm trying to run my project without the dll I'm getting that error message.
What I'm ...
2
votes
1answer
36 views
Message boxes with Windows 7 look-and-feel
I reared this MSDN article about customizing design of message boxes:
User Interface Text
and native message boxes looks like this:
but my messagebox looks like this:
and here is what I want:
...
0
votes
1answer
34 views
Get current sound volume windows 8
The result of the sound level is always 0, wether i have the sound muted or at max volume.
What is wrong ?
[DllImport("winmm.dll")]
private static extern int waveOutGetVolume(IntPtr hwo, out uint ...