Generates unique class name and registers new class of plugin windows. If iconname is NULL, uses standard plugin icon (letter 'P'). On success, returns 0 and fills classname (at least 32 bytes long) with unique class name. If registration failed, returns -1. Windows belonging to registered class has 8 longwords of extra memory, plugin is free to use longwords 2..7 (offsets 8..28 in calls to GetWindowLong and SetWindowLong). ODBG_Plugininit is the best place to call this function.
int Registerpluginclass(char *classname,char *iconname,HINSTANCE dllinst,WNDPROC classproc);
Parameters:
classname - pointer to buffer of length at least 32 characters that will receive unique class name;
iconname - name of icon resource in plugin DLL;
dllinst - plugin's instance;
classproc - pointer to window procedure of new class.
See also: Unregisterpluginclass