DOCUMENT:Q231246 01-NOV-2000 [sms] TITLE :SMS: Custom DLL Causes SMS Installer to Stop Responding PRODUCT :Microsoft Systems Management Server PROD/VER::2.0 OPER/SYS: KEYWORDS:kbinterop kbConfig kbsms200 kbsms200bug kbsmsInst kbsmsUtil ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Systems Management Server Installer version 2.0 ------------------------------------------------------------------------------- SYMPTOMS ======== When you use the Call DLL Function feature in Microsoft Systems Management Server (SMS) Installer, which calls a certain function in a specified DLL, the script may fail or cause the SMS Installer to stop responding (hang). CAUSE ===== All DLL functions called by the SMS Installer script must be declared as CALLBACK functions; otherwise, the Setup program may stop responding. Previous versions of SMS Installer tolerated DLL functions that were not called as CALLBACK functions. Therefore, it is possible that DLL functions that worked correctly with previous versions of SMS Installer may not work correctly in the current version of SMS Installer. RESOLUTION ========== Declare all DLL calls as CALLBACK functions in the DLL code, as in the following sample: BOOL CALLBACK MyFunction(lpDllParams DLL32CALLPARAMS); Additional query words: prodsms ====================================================================== Keywords : kbinterop kbConfig kbsms200 kbsms200bug kbsmsInst kbsmsUtil Technology : kbSMSSearch kbSMSI200 Version : :2.0 Issue type : kbprb ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 2000.