Link to home
Start Free TrialLog in
Avatar of puff
puff

asked on

How do I check if the DLC protocol is installed on the system?

Im working on a program that uses the DLC protocol to
communicate with an external device. This works fine
both on WinNT and Win95.

However if I remove the DLC protocol from Win95,
and try running the code, Win95 responds to an
LLC_DIR_OPEN_ADAPTER with:

"First-Chance Exception in <executable> (DLCAPI.DLL):
0xC00000005: Access Violation"

on WinNT, ACSLAN returns ACS_LAN_CBB_IN_ERROR.
In the CCB the uchDlcStatus field is set to
0x5e -> "Requested adapter is not installed"


The conclution must be that MSDLC32 is erroneous, when it
comes to detecting whether the adapter is accessible or not.

Questions:
How do I detect if the DLC protocol is installed?

How do I detect the number of adapters installed in
the computer?

How do I check if the adapters have bindings to the  DLC protocol?


NOTE:
 Win95 requires a special version of the DLC protocol called
 MSDLC32. It is available for download at Microsoft. MSDLC32
 needs a patch called DLC32UPD.
Avatar of Ikon
Ikon

Don't know but I'm not sure if you are aware that the error you are getting is an NT error (don't ask me how). The 0xC00000005:access violation is when an app tries to access memory belonging to something else, NT detects it & kills the app.
Are you using Win95 compliant calls?
Don't Know but I would check the microsoft knowledge base for the error codes and see what that tells you
ASKER CERTIFIED SOLUTION
Avatar of jhance
jhance

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial