Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import string
- import os
- from ctypes import *
- # FIXME: continue in case of error.
- # Longterm fixme: try with 0 args, 1 arg, etc., until all are found
- for x in range(1,5378):
- # 76 causes a critical section timeout
- if x == 76:
- continue
- if x == 5025:
- continue
- #print 'Trying oridinal %d' % x
- try:
- s = windll.xlive[x](1,2,3,4,5,6,7,8,9,10,11,12,13)
- if s > 1:
- print "%d uses 13 args" % x
- except ValueError:
- print "invalid number of args for ordinal %d" % x
- except WindowsError:
- print "access violation or something...ordinal %d" % x
- except AttributeError:
- # FIXME: just ignore..
- print "ordinal %d probably not used" % x
- else:
- print 'error in number %d' % x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement