flat assembler
Message board for the users of flat assembler.

Index > Windows > URLDownloadToFile :/

Author
Thread Post new topic Reply to topic
duax



Joined: 02 Jan 2004
Posts: 3
duax 02 Jan 2004, 18:41
Hey everyone. I recantly started using fasm (actually today) i'm using masm32 usually.

Anyway. What should i do to be able to use URLDownloadToFile in my projects? I know i need urlmon.inc but where do i get it? i tried using the one masm uses but it doesnt work Embarassed

any help is welcome, thx in advance.

_________________
I'm duax.
Post 02 Jan 2004, 18:41
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 02 Jan 2004, 19:00
Well, the FASM syntax is slightly different, so you can't use MASM inc files without editing.

In the most cases you need to change "equ" with '=' for the equates, but if there are some structures the things are little bit more complex.

If the inc file is not very big, post it here, I will check it.

Regards.
Post 02 Jan 2004, 19:00
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
duax



Joined: 02 Jan 2004
Posts: 3
duax 02 Jan 2004, 19:03
Sorry if this is a bit big:

Code:
  ; ===========================================
  ; urlmon.inc copyright MASM32 1998 - 2003
  ; ===========================================

BindAsyncMoniker PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
CoGetClassObjectFromURL PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
CoInternetCombineUrl PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
CoInternetCompareUrl PROTO :DWORD,:DWORD,:DWORD
CoInternetCreateSecurityManager PROTO :DWORD,:DWORD,:DWORD
CoInternetCreateZoneManager PROTO :DWORD,:DWORD,:DWORD
CoInternetGetProtocolFlags PROTO :DWORD,:DWORD,:DWORD
CoInternetGetSecurityUrl PROTO :DWORD,:DWORD,:DWORD,:DWORD
CoInternetGetSession PROTO :DWORD,:DWORD,:DWORD
CoInternetParseUrl PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
CoInternetQueryInfo PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
CopyBindInfo PROTO :DWORD,:DWORD
CopyStgMedium PROTO :DWORD,:DWORD
CreateAsyncBindCtx PROTO :DWORD,:DWORD,:DWORD,:DWORD
CreateAsyncBindCtxEx PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
CreateFormatEnumerator PROTO :DWORD,:DWORD,:DWORD
CreateURLMoniker PROTO :DWORD,:DWORD,:DWORD
Extract PROTO :DWORD,:DWORD
FaultInIEFeature PROTO :DWORD,:DWORD,:DWORD,:DWORD
FindMediaType PROTO :DWORD,:DWORD
FindMediaTypeClass PROTO :DWORD,:DWORD,:DWORD,:DWORD
FindMimeFromData PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
GetClassFileOrMime PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
GetClassURL PROTO :DWORD,:DWORD
GetComponentIDFromCLSSPEC PROTO :DWORD,:DWORD
GetSoftwareUpdateInfo PROTO :DWORD,:DWORD
HlinkGoBack PROTO :DWORD
HlinkGoForward PROTO :DWORD
HlinkNavigateMoniker PROTO :DWORD,:DWORD
HlinkNavigateString PROTO :DWORD,:DWORD
HlinkSimpleNavigateToMoniker PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
HlinkSimpleNavigateToString PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
IsAsyncMoniker PROTO :DWORD
IsLoggingEnabledA PROTO :DWORD
IsLoggingEnabled equ <IsLoggingEnabledA>

IsLoggingEnabledW PROTO :DWORD
IsValidURL PROTO :DWORD,:DWORD,:DWORD
MkParseDisplayNameEx PROTO :DWORD,:DWORD,:DWORD,:DWORD
ObtainUserAgentString PROTO :DWORD,:DWORD,:DWORD
RegisterBindStatusCallback PROTO :DWORD,:DWORD,:DWORD,:DWORD
RegisterFormatEnumerator PROTO :DWORD,:DWORD,:DWORD
RegisterMediaTypeClass PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
RegisterMediaTypes PROTO :DWORD,:DWORD,:DWORD
ReleaseBindInfo PROTO :DWORD
RevokeBindStatusCallback PROTO :DWORD,:DWORD
RevokeFormatEnumerator PROTO :DWORD,:DWORD
SetSoftwareUpdateAdvertisementState PROTO :DWORD,:DWORD,:DWORD,:DWORD
URLDownloadA PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
URLDownload equ <URLDownloadA>

URLDownloadToCacheFileA PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
URLDownloadToCacheFile equ <URLDownloadToCacheFileA>

URLDownloadToCacheFileW PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
URLDownloadToFileA PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
URLDownloadToFile equ <URLDownloadToFileA>

URLDownloadToFileW PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
URLDownloadW PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
URLOpenBlockingStreamA PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
URLOpenBlockingStream equ <URLOpenBlockingStreamA>

URLOpenBlockingStreamW PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
URLOpenPullStreamA PROTO :DWORD,:DWORD,:DWORD,:DWORD
URLOpenPullStream equ <URLOpenPullStreamA>

URLOpenPullStreamW PROTO :DWORD,:DWORD,:DWORD,:DWORD
URLOpenStreamA PROTO :DWORD,:DWORD,:DWORD,:DWORD
URLOpenStream equ <URLOpenStreamA>

URLOpenStreamW PROTO :DWORD,:DWORD,:DWORD,:DWORD
UrlMkBuildVersion PROTO 
UrlMkGetSessionOption PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
UrlMkSetSessionOption PROTO :DWORD,:DWORD,:DWORD,:DWORD
WriteHitLogging PROTO :DWORD
    


I was told that i have to import every api by hand...oh well i guess i'll learn the syntax sometime Very Happy

_________________
I'm duax.
Post 02 Jan 2004, 19:03
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 02 Jan 2004, 19:45
Ah, I see now.
Look, this is header file for some MASM .lib file. You can use the libraries in FASM only one way: Compile your program to COFF of MS COFF format and link with some external linker.
Unfortunately I can't provide any help, because I don't use the linker at all and even don't know how you can use it. Simply read the manuals for FASM and the Linker you prefer.

If such .lib file is wrapper for some system DLL (many of them are), you can simply use the DLL API and not bother for linking, because FASM will create directly exe file for you.

Regards.
Post 02 Jan 2004, 19:45
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
duax



Joined: 02 Jan 2004
Posts: 3
duax 03 Jan 2004, 07:38
OK. Thanks alot for the help!

_________________
I'm duax.
Post 03 Jan 2004, 07:38
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.