Calling CMSPTR over Thunking DLLs Causes Access Violation

ID: Q162511


The information in this article applies to:
  • Microsoft SNA Server, versions 2.11, 2.11 SP1


SYMPTOMS

When a 16-bit CPI-C application calls uses the Set_Prepare_To_Receive_Type(cmsptr) application programming interface (API) while running over the 16-bit-to-32-bit CPIC thunking interface, the application terminates abnormally with an application error.


RESOLUTION

Apply the fix referenced below.


STATUS

Microsoft has confirmed this to be a problem in SNA Server 2.11, 2.11 Service Pack 1 (SP1). A supported fix is now available for 2.11 SP1, but has not been fully regression-tested and should be applied only to systems experiencing this specific problem. Unless you are severely impacted by this specific problem, Microsoft recommends that you wait for the next Service Pack that contains this fix. Contact Microsoft Technical Support for more information.


CAUSE

The CPIC thunking interface was not handling this call correctly. In the thunking code, The Set_Prepare_To_Receive_Type(cmsptr) function is defined as:


CallProcEx32W(4,0xF,(DWORD)lpfn32, (DWORD)pConvID,<BR/>
(DWORD)pPTRType, (DWORD)pRetCode); 
The function should be:

CallProcEx32W(3,0xF,(DWORD)lpfn32, (DWORD)pConvID,<BR/>
(DWORD)pPTRType, (DWORD)pRetCode);&lt; 

Additional query words:

Keywords : kbnetwork snacpic kbbug2.11 kbbug2.11.sp1 kbfix2.11.sp2
Version : WINDOWS:2.11,2.11 SP1
Platform : WINDOWS
Issue type :


Last Reviewed: November 20, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.