user32.dll implements the Windows USER component that creates and manipulates the standard elements of the Windows user interface, such as the desktop, windows, and menus.
Questions tagged [user32]
547 questions
0
votes
0 answers
Using user32.dll to automate some things or any alternative way
I recently tried those 2 functions:
[DllImport("user32.dll")]
public static extern IntPtr FindWindow(string lpClassName,string lpWindowName);
[DllImport("user32.dll")]
public static extern IntPtr FindWindowEx(int hwndParent,int…

jovanMeshkov
- 757
- 5
- 12
- 29
0
votes
1 answer
Selectively disable Process features
I've been trying to create a WPF application which will be a proactive filter trying to limit user activity. I've controlled mouse and keyboard through Win32 API. Now another requirement is to let the user open every other application/file through…

naqvitalha
- 793
- 5
- 9
0
votes
0 answers
SendMessage BM_CLICK on application button
Hey all im a little confused as the effect of this BM_CLICK issue.
Here is my code:
Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Integer, ByVal Msg As Integer, ByVal wParam As Integer,…

StealthRT
- 10,108
- 40
- 183
- 342
0
votes
1 answer
Call of BroadcastSystemMessage never finish
I'm calling BroadcastSystemMessage method from User32.dll. On one PC (Windows8 Pro) the method is called, but the call never finishes. Application is waiting, but the result (nor exception) is never returned. I tried it on several Windows8 computers…

TcKs
- 25,849
- 11
- 66
- 104
0
votes
3 answers
Get a windows title by it's process name without main window
I have a problem I'm trying to get a window's title by it's process name and I can't do it here s what I tried :
Process[] p = Process.GetProcessesByName("Acrobat");
Console.WriteLine(p[0].MainWindowTitle);
Console.ReadLine();
But the problem is…

Mehdy Amazigh
- 31
- 1
- 6
0
votes
2 answers
System Wide Shell Hook from .NET using Unmanaged DLL
I have used the code supplied in the following CodeProject article in the past with success, but it only seems to partially work on Vista/7 (I'm guessing because of UAC). It works for the current thread, but it doesn't pick up system wide activity.…

Lusid
- 4,518
- 1
- 24
- 24
0
votes
1 answer
User32.dll!NtUserWindowFromPoint getting corrupt when loaded by Mumble on Windows RT
I'm working on porting Mumble over to Windows RT (using the jailbreak), and I've hit an issue where this one function is getting corrupted when Mumble loads.
Mumble (Corrupt function):
0:000> dq user32.dll+0x023918
77a63918 47c3004244696841…

Nathan Ladwig
- 21
- 7
0
votes
1 answer
Enable a control of another application with User32 (vb .net)
I was wondering if there was a function in user32 that could enable a hwnd control if it is disabled (grayed out) If I know the handle then can I do this? Also, if it is a menuitem, can it be done too?
Thanks

jmasterx
- 52,639
- 96
- 311
- 557
0
votes
1 answer
Where does .NET framework code calls to draw a window (native C++)?
If I use the System.Windows.Forms.MessageBox class' show function to draw a message box, a window pops up. I would like to know where the actual code to draw this window is? Is it in some Win32 API or user32.dll etc.? Through reflector I am unable…

Varun Sharma
- 2,591
- 8
- 45
- 63
0
votes
2 answers
Using User32.dll SendMessage To Send Keys With ALT Modifier
Possible Duplicate:
C# and SendMessage (keys) is not working
I am writing an application that sends keystrokes to another application using the SendMessage function defined in user32.dll. I have figured out how to send a single keystroke but I am…

Jan Tacci
- 3,131
- 16
- 63
- 83
0
votes
2 answers
How to get quick launch bar size in Windows XP?
I want to get quick launch bar size, but my code returns false, where is the problem?
REBARBANDINFOW prbi;
memset(&prbi, 0, sizeof(REBARBANDINFOW));
prbi.cbSize = sizeof(REBARBANDINFOW);
prbi.fMask = 892;
HWND hWndTray =…

user1805887
- 9
- 3
0
votes
1 answer
How do I hide the titlebar and lock the position on an exe (unmanaged code) that I have moved inside a panel in a c# form?
I have to "embed" an .exe within a panel in a .net windows form.
I am doing this using user32.dll SetParent to set the launched app's parent to the forms Panel handle.
Once this is done, I would like to
Hide the title bar of the .exe
lock the exe…

cabgef
- 1,398
- 3
- 19
- 35
0
votes
2 answers
Size option disable from the system menu in c# application
I have a c# windows base application.Now I want that the in the system menu the size option should be disable.
To add the option in system menu I am using user32.dll.
I am using windows form.

jiten
- 5,128
- 4
- 44
- 73
0
votes
1 answer
is there a Mono Alternitive to user.dll setparent and SetWindowPos?
I am trying to embed an application inside another one so the user can use the application in it. I have this working correctly inside of a windows only applications but i don't want to limit it to windows so im going to convert all the normal C#…

Shredder2500
- 1,065
- 2
- 11
- 26
0
votes
1 answer
How do I call the DialogBox() function in the user32.dll?
I'm trying to call the WinAPI function DialogBox(). On the Microsoft website this function is specified to be in the user32.dll. However, when tried to import this function by declaring it as function to import from a dll, the linker told me it…

Ralph Tandetzky
- 22,780
- 11
- 73
- 120