Stardock ObjectDock Docklet SDK v0.99a
Last Change: 8/21/2003
Note on exportable functions:
ObjectDock plugins use the __stdcall/.def linkage method rather than the __cdecl/EXPORTS method. To export functions in a DLL for use with ObjectDock, don't forget the 'CALLBACK' in the declaration of the function. You must also remember to maintain a .def file which contains a listing of functions exported by your DLL. Failure to do this will result in undefined behavior, including crashing or general unexpected behavior by the docklet or ObjectDock. Click here for more information
OnGetInformation One of only a few mandatory functions, this function is called when host is looking through a folder of docklet dlls and wants to retrieve information about this specific docklet dll. Fill in all information accordingly for accurate reporting. This function, unlike all the others that you can export, is not associated with any specific instance of a plugin.
void CALLBACK OnGetInformation( char *szName, char *szAuthor, int *lpiVersion, char *szNotes ); |
DOCKLET_DATA *CALLBACK OnCreate( HWND hwndDocklet, HINSTANCE hInstance, char *szIni, char *szIniGroup ); |
void CALLBACK OnSave( DOCKLET_DATA *lpData, char *szIni, char *szIniGroup, BOOL bIsForExport ); |
void CALLBACK OnDestroy( DOCKLET_DATA *lpData, HWND hwndDocklet ); |
BOOL CALLBACK OnExportFiles( DOCKLET_DATA *lpData, char *szFileRelativeOut, int iteration ); |
BOOL CALLBACK OnLeftButtonClick( DOCKLET_DATA *lpData, POINT *ptCursor, SIZE *sizeDocklet ); |
BOOL CALLBACK OnDoubleClick( DOCKLET_DATA *lpData, POINT *ptCursor, SIZE *sizeDocklet ); |
BOOL CALLBACK OnLeftButtonHeld( DOCKLET_DATA *lpData, POINT *ptCursor, SIZE *sizeDocklet ); |
BOOL CALLBACK OnRightButtonClick( DOCKLET_DATA *lpData, POINT *ptCursor, SIZE *sizeDocklet ); |
void OnConfigure( DOCKLET_DATA *lpData ); |
BOOL OnAcceptDropFiles( DOCKLET_DATA *lpData ); |
void OnDropFiles( DOCKLET_DATA *lpData, HDROP hDrop ); |
void CALLBACK OnProcessMessage( DOCKLET_DATA *lpData, HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam ); |
EXPORTS OnGetInformation OnCreate OnDestroy OnSave OnLeftButtonClick OnConfigure (etc etc, just list all exported functions) |
EXPORTS OnGetInformation=ODOnGetInformation OnCreate=ODOnCreate OnDestroy=ODOnDestroy OnSave=ODOnSave OnLeftButtonClick=ODOnLeftButtonClick OnConfigure=ODOnConfigure |