| mode | Specify whether to register or delete. Specify wrmRegister to register. Specifying wrmUnregister will delete the registration. Constants starting with wrm are defined in tp_stub.h. |
| func | Specify the message receiving function. The message receiving function must be of the form bool __stdcall func(void *userdata, tTVPWindowMessage *Message), and when passing to this method, the function pointer must be cast to an integer type and passed. The structure tTVPWindowMessage is defined in tp_stub.h. If this function returns true, Kirikiri will not be aware of the window message. |
| userdata | Specify a data pointer to be passed to the userdata argument of the receiving function specified by the func argument. When passing to this method, it is necessary to cast the pointer to an integer type and pass it. This argument is ignored if the mode argument is not wrmRegister. |