| mode | Specifies whether to register or unregister. Specifying wrmRegister performs registration. Specifying wrmUnregister performs unregistration. Constants starting with wrm are defined in tp_stub.h. |
| func | Specifies the message receiver function. The message receiver function must be in the form bool __stdcall func(void *userdata, tTVPWindowMessage *Message), and its function pointer must be cast to an integer type when passed to this method. The tTVPWindowMessage structure is defined in tp_stub.h. If this function returns true, the KiriKiri core will no longer handle that window message. |
| userdata | Specifies the data pointer to be passed to the userdata argument of the receiver function specified by the func argument. When passing to this method, the pointer must be cast to an integer type. This argument is ignored when the mode argument is not wrmRegister. |