missing ordinals in avifil32

Francois Gouget fgouget at free.fr
Fri Sep 12 03:59:38 CDT 2003


On Thu, 11 Sep 2003, Dave Miller wrote:
[...]
> Is it true then that the ordinal does not need to be specified
> any time n = n+1?  This sounds like a rule that will only apply
> sometimes.  Specifically, in cases where windows seems to assign at
> least some ordinals in alphabetical order.

Let's say you are developping a Windows dll. If you don't specify
ordinals, then the linker is going to sort your functions and then
assign them ordinals starting from some configurable start value, I
believe starting with 100 by default.

So that will result in something like:

100 A
101 B
102 C
103 D
etc.

So if that's not what we see in the dll, then it means that
algorithm was not used or something interfered with it. The only
explanation I know of is that the user specified ordinals for some of
the APIs.

So then it's up to us to find out which APIs had ordinals assigned to
them which the algorithm I described should be able to do reasonably
well. Only testing it will tell for sure but it could be worth it...

-- 
Francois Gouget         fgouget at free.fr        http://fgouget.free.fr/
                            1 + e ^ ( i * pi ) = 0




More information about the wine-devel mailing list