
Re: GetBlackboxPath - Why is it different?
Somebody deliberatly chose to make GetBlackboxPath (and only GetBlackboxPath) use a different calling convention. This has nothing to do with the name itself, it is the WINAPI prefix that is placed before it that causes the change.
I'm not asking why it has different results under Mingw and VC, I want to know why WINAPI was added to GetBlackboxPath in the first place, which has nothing to do with either compiler/
I'm wondering why that was done to that function specifically, because it just seems utterly random. There are several functions taing similar types of parameters in the api which haven't been altered in this way.
Using the def file under Mingw is the result, but I want to know the cause.
GetBlackboxPath has been defined as
Code:
__declspec(dllexport) bool WINAPI GetBlackboxPath(LPSTR, int);
or similar since the first version of BBApi.h was imported into CVS. It's quite possible that this has been there since azahoth originally started the project.
But why add WINAPI?Maybe qwilk knows, and he can answer if he sees this, but its quite possible that nobody know anymore.