Does this code shows the methods from a dll?
from ctypes import *
x = cdll.LoadLibrary("olari.dll")
dir(x)
if not, how can we see the .dll methods in python?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, it doesn’t. But It can cache when you call, and will show in
dirafter that.You could take a look this SO Thread, even in Win32, seems like need to parse PE Header. I think python need to do similar way.
UPDATE:
I found pefile read/write module written in python, there you can find exported entries.
imp.namewill be the one you are looking for. You could use that name in ctypes like