Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. import string
  2. import os
  3.  
  4. from ctypes import *
  5.  
  6. # FIXME: continue in case of error.
  7. # Longterm fixme: try with 0 args, 1 arg, etc., until all are found
  8.  
  9. for x in range(1,5378):
  10.  
  11. # 76 causes a critical section timeout
  12. if x == 76:
  13. continue
  14. if x == 5025:
  15. continue
  16.  
  17. #print 'Trying oridinal %d' % x
  18. try:
  19. s = windll.xlive[x](1,2,3,4,5,6,7,8,9,10,11,12,13)
  20. if s > 1:
  21. print "%d uses 13 args" % x
  22. except ValueError:
  23. print "invalid number of args for ordinal %d" % x
  24. except WindowsError:
  25. print "access violation or something...ordinal %d" % x
  26. except AttributeError:
  27. # FIXME: just ignore..
  28. print "ordinal %d probably not used" % x
  29. else:
  30. print 'error in number %d' % x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement