RegisterWindowMessage
Syntax
Quelltext
1: 2: 3:
| RegisterWindowMessage( lpString: PChar {a pointer to a message string} ): UINT; {returns a unique message identifier} |
Description
This function generates a new message identifier that is unique throughout the system. This new message identifier can be used by any of the PostMessage or SendMessage functions, and is typically used to provide a means of communication between two applications. If two different applications register the same message string, each application will receive an identical unique message identifier. This identifier remains valid until the current Windows session terminates.
Parameters
lpString: A pointer to a null-terminated string containing the message to be registered.
Return Value
If the function succeeds, it returns a unique message identifier in the range of $C000 through $FFFF. If the function fails, it returns zero.
Beispiel
{register the user defined message}
UserMessage := RegisterWindowMessage('System Wide User Defined Message');