win32ras: pyd built for win98 to fix phonebook methods

Les Schaffer schaffer at optonline.net
Sat Jul 7 10:40:56 EDT 2001


Hi:

i needed to have win32ras phonebook functionality working on a win98 system,
so i grabbed the cvs sources for win32all from active state and recompiled
the win32ras module with WINVER set to 0x400. after installing the new
version of win32ras.pyd, along with a new PyWinTypes22.dll, the phonebook
methods now work, whereas before they were failing like so:

>>> from win32ras import *
>>> EnumConnections()
Traceback (most recent call last):
  File "<interactive input>", line 1, in ?
api_error: (610, 'RasEnumConnections(NULL)', 'The buffer is invalid.')


but now:

>>> from win32ras import *
>>> EnumConnections()
[]
>
>> EnumEntries()
[('GiantISP',), ('CooperLED',)]
>>> 

i'd like to bang on this a little bit before i post the pyd/dll to my web
site. if anyone else is trying to use phonebook stuff on winXX < 2000 and
wants to try out the recompiled extensions first, let me know and i will
email them (they are small -- 25 and 56 kB respectively).

les schaffer



More information about the Python-list mailing list