Windows API: Strange behaviour after calling GetModuleFileNameExA
Tobias Wassermann
mail at tobias-wassermann.de
Wed Nov 28 22:02:20 PST 2007
How could this be done? I never made an alias via a def-file before ;)
> > On the other side: extern (C) within D is the only possibility to use
> for
> > this two functions, if I use extern (Windows) I'll get linker errors
> (linker
> > can not find symbols _EnumProcesses at 12 and _GetModuleFileNameExA at 16).
> >
> > With extern (Windows) it seems to be correct - remember: EnumProcesses()
> > works fine, only GetModuleFileNameExA() causes the problem.
> >
> > Additional note: GetProcessImageFileNameA() (which could be an
> alternative to
> > GetModuleFileNameExA()) causes the same problem.
> >
>
> You could use a .def file to alias _EnumProcesses at 12 to EnumProcesses.
>
More information about the Digitalmars-d
mailing list