From WikiChip
Editing mirc/dynamic-link library
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.
Latest revision | Your text | ||
Line 44: | Line 44: | ||
* '''nopause''' - This Bool value is TRUE if mIRC is in a critical routine, meaning that you must not stop the processing in mIRC (long while loop for example). | * '''nopause''' - This Bool value is TRUE if mIRC is in a critical routine, meaning that you must not stop the processing in mIRC (long while loop for example). | ||
+ | Both 'data' and 'params' are allocated with the Line Length Limit of mIRC, you can pass exactly $maxlenl+100 characters, 10340 characters as of mIRC 7.72, meaning the double in term of bytes because of utf16. | ||
− | If you call a non unicode dll with mIRC being unicode, mIRC must call the prototype with a char * and will convert | + | If you call a non unicode dll with mIRC being unicode, mIRC must call the prototype with a char * and will convert the utf16 to utf8 but 'data' and 'parms' will still be allocated with ($maxlenl+100)*2 bytes. |
− | |||
These functions must use the [[stdcall calling convention]]. (This is also the standard calling convention for all other [[Microsoft]] [[Win32 API]] functions.) | These functions must use the [[stdcall calling convention]]. (This is also the standard calling convention for all other [[Microsoft]] [[Win32 API]] functions.) | ||
Line 101: | Line 101: | ||
* '''mHwnd''' - Contains the window handle to the main mIRC window. | * '''mHwnd''' - Contains the window handle to the main mIRC window. | ||
* '''mKeep''' - Is set to TRUE by default, indicating that mIRC will keep the DLL loaded after the call. You can set mKeep to FALSE to make mIRC unload the DLL after the call | * '''mKeep''' - Is set to TRUE by default, indicating that mIRC will keep the DLL loaded after the call. You can set mKeep to FALSE to make mIRC unload the DLL after the call | ||
− | * '''mUnicode''' - If set to true, indicates that the dll is using unicode as opposed to ansi (default). This means the data passed from/to the dll is in UTF16 (see above with TCHAR type | + | * '''mUnicode''' - If set to true, indicates that the dll is using unicode as opposed to ansi (default). This means the data passed from/to the dll is in UTF16 (see above with TCHAR type instad of CHAR). If set to false, mIRC will convert utf16 to utf8 to comply with the CHAR type prototype of the function |
* '''mBeta''' - contains the mIRC $beta version number, for public betas. | * '''mBeta''' - contains the mIRC $beta version number, for public betas. | ||
* '''mBytes''' - as of v7.64 contains the max safe byte length that can be placed into the 'data' and 'parms' buffers. This is always the double of the line length limit even when converting to utf8 with non unicode dll. | * '''mBytes''' - as of v7.64 contains the max safe byte length that can be placed into the 'data' and 'parms' buffers. This is always the double of the line length limit even when converting to utf8 with non unicode dll. |