Questions tagged [windows-messages]

Questions about various messages in a Windows system.

Windows is an event driven operating system basically only responding to messages.

Message-identifier values are used as follows:

  • The system reserves message-identifier values in the range 0x0000 through 0x03FF (the value of WM_USER – 1) for system-defined messages. Applications cannot use these values for private messages.

  • Values in the range 0x0400 (the value of WM_USER) through 0x7FFF are available for message identifiers for private window classes.

  • If your application is marked version 4.0, you can use message-identifier values in the range 0x8000 (WM_APP) through 0xBFFF for private messages.

  • The system returns a message identifier in the range 0xC000 through 0xFFFF when an application calls the RegisterWindowMessage function to register a message. The message identifier returned by this function is guaranteed to be unique throughout the system. Use of this function prevents conflicts that can arise if other applications use the same message identifier for different purposes.

312 questions
0
votes
1 answer

RegisterWindowMessage Possible values

Maybe I am just missing some silly link on the MSDN, but I cannot seem to find the list of possible values RegisterWindowMessage() can take The only one I can find is "WM_HTML_GETOBJECT". I found this on pinvoke.net. This however, I believe this…
Alexander Ryan Baggett
  • 2,347
  • 4
  • 34
  • 61
0
votes
1 answer

Spy with extended WM_CHAR messages

Some years back I was able to easily catch with Spy++ to detect any keyboard presses that were sent to a window. Now with spyxx_amd64.exe, the output looks differently: I'm missing the parameters like which keycode was sent. All the sweet little…
tmighty
  • 10,734
  • 21
  • 104
  • 218
0
votes
1 answer

WM_COPYDATA messages are not being handled

I'm trying to communicate between two C# / .NET 3.5 applications using Windows Messages, but the messages I send appear to be received some of the time (but not all of the time) - why is this happening, and how do I ensure that the messages are…
Andrew
  • 3
  • 2
0
votes
3 answers

What's a good way of connecting a Windows service with an interactive window (HWND)?

I have two pieces of Windows technology which I'd like to plumb together: a TSP (a TAPI service provider) and an API wrapped around some hardware. The API accepts requests synchronously but returns success/fail/status result asynchronously by…
0
votes
2 answers

Message passing with parent handle not reaching

In a new project, I created a MainForm with 2 panels, and a Form with a button. I added this code on the MainForm: interface type TForm1 = class(TForm) Panel1: TPanel; Panel2: TPanel; procedure FormCreate(Sender: TObject); private …
none
  • 4,669
  • 14
  • 62
  • 102
0
votes
3 answers

Problems with IPC SendMessage

Hi I'm having problems with my SendMessage. It seams like the message never reaches my form (I'm using Winspector Spy to see which messages that are registered in my form), which is strange because I'm shure I'm sending to the correct Handle for…
Roise
  • 364
  • 5
  • 22
0
votes
2 answers

MAPILogonEx(...) returns NULL while calling from MAPILogOn(...)

I am creating default mail application like thunderbird and outlook but with some of the features only. So now problem is only with the word 2007 and excel 2007 while sending file from fileMenu -> send -> E-mail and application gets crashed after…
Ujjaval Moradiya
  • 222
  • 1
  • 12
0
votes
1 answer

Window Message to Send and recover Boolean and Integer

How can I Post a Windows message that contains a boolean and an integer. I do understand how to Post and Recover strings. This is my code for strings. procedure TForm5.Button1Click(Sender: TObject); var LParam: string; WParam: string; …
Seti Net
  • 693
  • 1
  • 7
  • 24
0
votes
0 answers

Why don't background windows receive mouse events when I drag off the foreground window?

When I click on a non-reactive area of a win32 window in the foreground (for example, a blank space on a menu bar) and drag the mouse off, background windows do not receive mouse events. Buttons don't got into hover state, the cursor doesn't…
Paul Accisano
  • 1,416
  • 1
  • 14
  • 25
0
votes
0 answers

Windows Messaging

My question is about windows messaging. I have 2 apps, communicating through WM_COPYDATA messages. Also in the first app, there are some application defined messages. The thing is, when WM_COPDATA message processed, also app defined message is send,…
ilkerpyci
  • 99
  • 1
  • 9
0
votes
0 answers

Detecting a button/context menu pressed in another application

I have a 3rd party application that make changes to a 3rd party component that my application interacts with. This component cannot send me any information, but can be changed by my application as well. I'd like to know when a user presses a button…
Idov
  • 5,006
  • 17
  • 69
  • 106
0
votes
2 answers

Stick Window to Other Window

I want to develop Windows program who can stick into other window. I searching fastest-way to do this. I can get by WinAPI all information about target window and move my window into good location and after it Sniffing Windows Messages of target…
Svisstack
  • 16,203
  • 6
  • 66
  • 100
0
votes
0 answers

Receive windows message inside DLL load in some process

I have one application that send custom windows message and i am trying to receive this custom windows message inside a Dll which is loaded into some other process. Is it possible?
Rahul Bajaj
  • 135
  • 2
  • 14
0
votes
0 answers

Communication between two separate Dlls

I have a dll that is loaded by an application "A" and this dll export few functions. I have another application "B" that loads another Dll. I want to call function of DLL A from DLL B. Is there any way to achieve this via windows messages, ipc etc.
Rahul Bajaj
  • 135
  • 2
  • 14
0
votes
2 answers

Proper way of handling WM_ENDSESSION?

What is the proper way to 'quit' an application after final clean-up tasks have been done, in response to the WM_ENDSESSION message? Once my application, a service-like executable responding to external input, receives this message and wParam ==…
MicroVirus
  • 5,324
  • 2
  • 28
  • 53