flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
a1ss
hi! may be anybody write this .inc file selfhanding or see that in the network? i ca'n find wininet.inc =(
|
|||
![]() |
|
kohlrak
Wait, are you asking for how to include functions for internet API in windows?
|
|||
![]() |
|
a1ss
kohlrak, exactly!
|
|||
![]() |
|
LocoDelAssembly
There is no real need for winsocks, wininet provides access to HTTP and FTP protocols (among I don't remember how many others). For maximun control you can use sockets but you'll need to implement the protocols yourself so perhaps wininet is fine if your program does not demand special requirements.
I did use wininet before to do an IP address detector but I formatted the HD of the computer where I developed it and also accidentaly erased the backup. Yes I was very happy for my own stupidity!! I even couldn't blame physical media failures this time ![]() Anyway, I did it as kohlrak says, creating the import table by hand and picking the required constants and types from somewhere else (I looked inside the include files of the MASM package if I remember right). |
|||
![]() |
|
kohlrak
I didn't know there was a wininet, i thought he ment random internet operations which would be winsocks. XD
|
|||
![]() |
|
f0dder
wininet is pretty fine for basic operation indeed, but it's unsuitable for more advanced operations - like, afaik, not being able to override the default max # of per-server connections, unless you change a registry setting (bad!).
|
|||
![]() |
|
a1ss
hmm.. i need just one function InternetOpenURL.. i solve this problem with LoadLibrary, GetProcAddress.. (sorry about my endlish)
|
|||
![]() |
|
kohlrak
It'd probably be easier to just use the import table. Especially because it's the same names you use for getprocaddress, only you have to import a whole extra function just to import a function. If you ask me, it's easier just to import it in the import table.
Quote: wininet is pretty fine for basic operation indeed, but it's unsuitable for more advanced operations - like, afaik, not being able to override the default max # of per-server connections, unless you change a registry setting (bad!). I can only imagin that there are restrictions on what kind of data you can send as well along with maybe making protocols of your own? I think i recall seeing a library in windows that did all the HTTP work for you. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.