[comp.windows.ms.programmer] Weird WINOLDAP problems

andyross@infopls.chi.il.us (Andrew Rossmann) (01/30/91)

  I was working on my INFOPLUS program the other day, adding in the
information you can get from the WINOLDAP functions available in Enhanced
mode. I was using the 'Get Device Capabilities' call (INT 2FH w/ AX=170Ah,
and DX=info index.) What was strange is that I often ended up with 0 being
returned instead of the data. It wasn't a programming problem, as it
sometimes worked, and sometimes didn't.
  Through trial and error, I found that if I do a call to 'End Critical
Section' immediately before making the 'Get ..Capab..' call, things worked
fine. I make no 'Set Critical Section' calls, and had tried placing the
code within a 'critical' block, with no effect.
  Does anyone know what's going on? Is there another way to get this
information? My programming is in Turbo Pascal, so using the SDK is out.
Assembly is OK.
---------------
Andrew Rossmann               | Sysop of Infoplus BBS, +1 708 537 0247
 andyross@infopls.chi.il.us   | Infoplus Support, latest version available
 uunet!ddsw1!infopls!andyross | by logging in as infoplus.