taghi wrote:
I wrote this code in python 2.5:from ctypes import *
... snip ...
netapi32=cdll.LoadLibrary('netapi32.dll')
This is your problem: netapi32 is a windows
DLL and needs to be attached as such:
netapi32 = windll.LoadLibrary ("netapi32.dll")
or, more simply:
netapi32 = windll.net32api
But see my other post re this function in pywin32
TJG
--
http://mail.python.org/mailman/listinfo/python-list
