AIT_RegisterWindowMessage

Description

Defines a new window message particular to the system. You can use this message value to post or send a message.

Typically, this function is used to register a message to be applied to communication between two cooperating applications.

Format

integer AIT_RegisterWindowMessage  (
 string strMessageString     // Message character string
);

Parameters

strMessageString (input)

Specify a message you want to register.

Return values

The return value is a message value (message ID) ranging from 49152 to 65535 if the message has been registered normally.

The return value is 0 if the function has not been processed successfully. You can use AIT_GetLastError to acquire an extended error code.

The following gives the error codes that AIT_GetLastError might return:

Extended error numberError code
8ERROR_NOT_ENOUGH_MEMORY
14ERROR_OUTOFMEMORY
87ERROR_INVALID_PARAMETER