Microsoft KB Archive/231246

= SMS: Custom DLL Function Not Defined As CALLBACK Causes SMS Installer to Stop Responding =

Article ID: 231246

Article Last Modified on 10/27/2006

-

APPLIES TO


 * Microsoft Systems Management Server 2.0 Service Pack 5

-



This article was previously published under Q231246



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: kbbug kbconfig kbinterop kbprb kbsmsutil KB231246

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.