flat assembler
Message board for the users of flat assembler.
Index
> Windows > URLDownloadToFile :/ |
Author |
|
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. |
|||
02 Jan 2004, 19:00 |
|
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 _________________ I'm duax. |
|||
02 Jan 2004, 19:03 |
|
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. |
|||
02 Jan 2004, 19:45 |
|
duax 03 Jan 2004, 07:38
OK. Thanks alot for the help!
_________________ I'm duax. |
|||
03 Jan 2004, 07:38 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.