flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
a1ss 17 Nov 2007, 15:29
hi! may be anybody write this .inc file selfhanding or see that in the network? i ca'n find wininet.inc =(
|
|||
![]() |
|
kohlrak 18 Nov 2007, 01:25
Wait, are you asking for how to include functions for internet API in windows?
|
|||
![]() |
|
a1ss 18 Nov 2007, 02:25
kohlrak, exactly!
|
|||
![]() |
|
LocoDelAssembly 18 Nov 2007, 03:28
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 18 Nov 2007, 03:31
I didn't know there was a wininet, i thought he ment random internet operations which would be winsocks. XD
|
|||
![]() |
|
f0dder 18 Nov 2007, 04:03
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 18 Nov 2007, 10:21
hmm.. i need just one function InternetOpenURL.. i solve this problem with LoadLibrary, GetProcAddress.. (sorry about my endlish)
|
|||
![]() |
|
kohlrak 18 Nov 2007, 12:15
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.