Windows API: Strange behaviour after calling GetModuleFileNameExA
Carlos Santander
csantander619 at gmail.com
Thu Nov 29 14:26:03 PST 2007
Tobias Wassermann escribió:
> 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.
>>
Check http://www.digitalmars.com/ctg/ctgDefFiles.html#exports
--
Carlos Santander Bernal
More information about the Digitalmars-d
mailing list