Hi!
I'd like to use in a internal wine-dll(shell32) a function exported by an other dll(shlwapi) by ordinal. How can I do this in a clean way without use of GetProcAddress in a way it works with native dll's too?
juergen
On Thu, Jun 06, 2002 at 10:39:36AM +0000, juergen.schmied@debitel.net wrote:
Hi!
I'd like to use in a internal wine-dll(shell32) a function exported by an other dll(shlwapi) by ordinal. How can I do this in a clean way without use of GetProcAddress in a way it works with native dll's too?
Well, if a Wine DLL exports a function as ordinal only, then we can expect the Windows counterpart to do the very same thing (i.e. the same functionality at the *same* ordinal, and no name). Thus I think that a pFunc = GetProcAddress(hMod, "#<ordinal>"); should be ok.
juergen.schmied@debitel.net writes:
I'd like to use in a internal wine-dll(shell32) a function exported by an other dll(shlwapi) by ordinal. How can I do this in a clean way without use of GetProcAddress in a way it works with native dll's too?
You have to use GetProcAddress, there is no automatic import mechanism. That's a feature to discourage you from calling ordinal functions ;-)