News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Prototype suggestions.

Started by hutch--, July 26, 2007, 02:23:54 AM

Previous topic - Next topic

hutch--

While the vast majority of Windows API prototypes for win32 are all integer DWORD items, there are some here and there that use floating point or QWORD sized arguments. Greg suggest one that made sense and has been added, if anyone has any documented API function prototypes that do not fit into integer DWORD arguments, what I need is the prototype AND the name of the DLL that it comes out of.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

evlncrn8

i guess supporting 64 bit where FARPROC = ULONGLONG etc isnt on the cards?

MichaelW

Searching the PSDK for "double" turned up 500+ matches, but skimming over them, and ignoring the oddball APIs, I found no instances of a double as a (direct) parameter, or as a return value. Searching for "float" turned up 330 matches, and in them I found only:

SetMiterLimit

AngleArc

The existing prototypes for both of these use DWORDs.
eschew obfuscation

Biterider

Hi
Here is one, but I think that there are other prototypes in the same file that need a revision

VarBstrFromDate PROTO :REAL8,:DWORD,:DWORD,:DWORD

from OleAut32.inc

Regards,

Biterider

GregL

Another one I am aware of is VariantTimeToDosDateTime (I never use that one). It's in oleaut32.dll.

It looks like all the VarXXXFromDate functions in oleaut32.dll use a DATE which is a double.

And all the VarXXXFromR8, VarXXXFromI8, VarXXXFromUI8 and VarXXXFromCy (A Currency is 8 bytes) functions in oleaut32.dll.

Then there are the VarXXXFromDec functions, not sure how you would handle a Decimal (14 bytes).

If I run into any more I'll holler.