Jump to content
Sign in to follow this  
DUNGYEUANH

Help me with Dllcall

Recommended Posts

DUNGYEUANH

I found a way to change the user agent value here, but I do not know how to use it, someone can help me ?

Edited by DUNGYEUANH

Share this post


Link to post
Share on other sites
JohnOne

Func userAgent($agent)
    $agentLen = StringLen($agent)
    Dim $tBuff = DllStructCreate("char["&$agentLen&"]")
    DllStructSetData($tBuff, 1, $agent)
    $chk_UrlMkSetSessionOption = DllCall("urlmon.dll", "long", "UrlMkSetSessionOption", "dword", 0x10000001, "ptr", DllStructGetPtr($tBuff), "dword", $agentLen, "dword", 0)
EndFunc

http://autoitscript.com/forum/topic/1229...p-using-urlmondll-please/page_

EDIT:

But don't forget HttpSetUserAgent()

Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites
DUNGYEUANH

Thanks for the help but it did not work for me.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×