Questions tagged [user32]

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.

547 questions
-2
votes
1 answer

How to properly capture user's keystrokes in C#, i.e. respecting SHIFT key etc

I have written the following C# program to capture the user's keystrokes. It works perfectly, except that all keys are logged as lower-case without taking the SHIFT key into account (see below). I have read all of the Win32 API's documentation.…
Shuzheng
  • 11,288
  • 20
  • 88
  • 186
-2
votes
1 answer

Catching closing event of a window in WinApi

Basically, I want to do something after user clicks X (closes) a specific window. This is my approach: HWND handle; LRESULT WINAPI procedure(int code, WPARAM wParam, LPARAM, lParam){ CWPSTRUCT* j = (CWPSTRUCT*) lParam; WPSTRUCT* w =…
Crabzmatic
  • 115
  • 9
-2
votes
1 answer

Difference between PostMessage on windows 7 and windows 8

I developed application that use PostMessage to simulate mouse click in another app. I have screenshots of second app, i have coordinates for mouse click and i am simulate mouse click for second app. That all work fine on windows 7, but when i run…
galakt
  • 1,374
  • 13
  • 22
-3
votes
4 answers

win32 very low level assembly - application startup issue

I am busy programming a win32 program in assembly with a form and buttons... The problem is windows modify my variables in ram. The place were a store my hInstance and hwnd variables. I have found a workaround, but it is not an elegant solution. I…
andre
  • 3
  • 3
-4
votes
1 answer

Windows SendMessage() msg codes

I use this code: [DllImport( "User32.dll", EntryPoint = "SendMessage" )] private static extern int SendMessage( IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam ); This code sends a message to a specific HWND. But I cannot find a list of "msg"…
-7
votes
1 answer

Will a Win32 application run on window 7 and windows 8/8.1 as well?

I want to develop a window application that will have capability to read properties of another window application eg. text boxes, options, buttons, title bar and more. My application would use multithreading as separate thread is always required to…
-10
votes
1 answer

Get list of all runing processes (with processName+ProcessPath+ProcessTitle)

what i'am trying to do: get list of all runing processes with: processName(without .exe) ProcessFullFilePath ProcessMainWindowTitle something like: process1 c:\p1.exe TheprocessTitle .............. Very important: i need working code that will…
user3163233
1 2 3
36
37