[MinGW-Users] How to request additions to w32api?

Back to archive index
Keith Marshall keith****@users*****
Fri Feb 12 05:05:07 JST 2021


On 11/02/2021 14:22, Eli Zaretskii wrote:
>>> (It is not clear to me whether the *.def files are maintained by hand
>>> or are produced by some tool.)
>> 
>> The initial .def file, for any given import library, is likely to have
>> been generated byt the "pexports" tool -- that's certainly what I use,
>> when I have access to the DLL.
>
> pexports doesn't produce the @NN part of the function's export, ...

It does, if you show it the prototypes:

  $ echo '#define _WIN32_WINNT  0x0A00' > foo.h
  $ echo '#include <windows.h>' >> foo.h
  $ alias pexports='pexports -p ~/mingw32/bin/mingw32-cpp'
  $ pexports -h ./foo.h $WINDRIVE/Windows/System32/kernel32.dll
  LIBRARY "KERNEL32.dll"
  EXPORTS
  AcquireSRWLockExclusive at 4 DATA
  AcquireSRWLockShared at 4 DATA
  ActivateActCtx at 8
  ActivateActCtxWorker
  AddAtomA at 4
  AddAtomW at 4
  AddConsoleAliasA at 12
  AddConsoleAliasW at 12
  ...

Of course, this is only effective for functions for which a prototype is
provided, in the set of header files passed through the "-h" argument,
and any others which this subsequently includes.

-- 
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://lists.osdn.me/mailman/archives/mingw-users/attachments/20210211/882899b9/attachment.sig>


More information about the MinGW-Users mailing list
Back to archive index