Windows 95 DUN - Major SMM PROBLEM

Windows 95 DUN - Major SMM PROBLEM

Post by Huseyin Caglaya » Sat, 20 Sep 1997 04:00:00



hi,

I am writing this SMM module that will run a custom scripting when the DUN
user connects to an ISP. I looked at the sample from Windows 95 DDK OK. But
simply I could not get the

 // Get the communication port from TAPI

section working. It returns LINEERR_OPERATIONUNAVAIL for the lineGetID
function. So I cannot open the comms port and can't do nothing.

Has anyone come across a similar problem???

Please Help

Cheers.
Somewhere in RnaSessInitialize
 dpi.dwSize = sizeof(dpi);
 dwRet = RnaGetDevicePort (pCon->hConn, &dpi);
 if (dwRet != ERROR_SUCCESS) // This one works OK!
   {
    OUTMF1("RnaGetDevicePort FAILED:%d", dwRet);
    RnaGetDeviceInfo(NULL, NULL);
    goto handle_error;
   }

 OUTMI1("szDeviceClass:%s", dpi.szDeviceClass);

 // Get the communication port from TAPI
 memset(&varstring, 0, sizeof(varstring));
 varstring.dwTotalSize = sizeof(VARSTRING);
 dwRet = lineGetID(dpi.hLine,
                   dpi.dwAddressID, dpi.hCall,
                   LINECALLSELECT_LINE,
                   &varstring,
                   "data/modem");
 /// FAILS
  if (dwRet != ERROR_SUCCESS)
    {
     OUTMF1("lineGetID I FAILED: %X", dwRet);
     goto handle_error;
    }

--
The team that created 'Always Imagine'

 
 
 

1. Windows 95 freezes, Stackdump on Windows 95 - help debug!

Hi,
This is stack dump I get on Windows 95 (OSR2.5, OEM B) and the whole machine
freezes.
//=====================================================
Exception code: C0000005 ACCESS_VIOLATION
Fault address:  BFF78840 02:00000840 C:\WINDOWS\SYSTEM\KERNEL32.DLL

Registers:
EAX:81E00E08
EBX:81DE3000
ECX:00000188
EDX:4A5F3000
ESI:81DF3000
EDI:8E745107
CS:EIP:0157:BFF78840
SS:ESP:015F:00602DF4  EBP:00602DF8
DS:015F  ES:015F  FS:4CB7  GS:0000
Flags:00000203

Call stack:
Address   Frame     Logical addr  Module
BFF78840  00602DF8  0002:00000840 C:\WINDOWS\SYSTEM\KERNEL32.DLL
BFF798FB  00602E1C  0002:000018FB C:\WINDOWS\SYSTEM\KERNEL32.DLL
BFF74568  00602E44  0001:00003568 C:\WINDOWS\SYSTEM\KERNEL32.DLL
BFF91ED0  00602E58  0002:00019ED0 C:\WINDOWS\SYSTEM\KERNEL32.DLL

I did install Soft/Ice and it shows the exact same stack and exception and
basically the GDI freezes.  The network is accessible but the mouse,
keyboard etc are dead.  (With Soft/Ice you can always do CTRL-D).  I am no
windows 95 kernel expert nor am I a Soft/Ice Expert.  I have tried running
Bounds Checker on the code but haven't discovered anything.  No overflows,
no pointer errors etc.  Used Mutek's Bug Trapper but without success, as
when the problem occurs, it is not able to flush the log and if connected
remotely cannot talk to the remote agent.  Purify hasn't revealed anything
too (but that works on NT only).
I have no problems on Windows NT or Windows 2000.  I did install the debug
checked build of Windows NT (SP 6a) hoping that it might show up something.
I do see some messages like
Invalid Menu handle - I understand this
but what is this?
HmgLock: Bad GDI Handle
cj too big for GetObject

I know the stack is toast.  It is a Win32 app, no 16 bit component.
Problems only on 95 and non on Windows NT.  Haven't tried Windows 98 as yet.

ANY IDEAS, POINTERS AS TO HOW TO START TACKLING THIS PROBLEM WILL BE GREATLY
APPRECIATED.

Thanks
Aman

PS: Ideas on how to use Soft/Ice more effectively to nail this ...

2. Making a transaction.

3. Windows 95 B, Setup Wizard Issues Setup.EXE on Windows 95 A

4. Soon.exe why can't get it to work

5. Printing problems with Windows 95 (with a Windows 3.1 application)

6. Does Easy CD pro really convert .WAV files ?

7. Problem: Help Compiling Problem with WHAT6 in Windows 95

8. Maintain versioning of documents

9. There are problems in Sound Blaster programming under Windows and Windows'95

10. Maximizing MDI Child Window and CS_NOCLOSE problem under Windows 95

11. Tapi error and Win'95 DUN

12. Physical Disk IO under Windows 95/95 (Please Help)

13. Row Major versus Column Major Initialization