Page 1 of 1

IA10->IA18 porting problem with CallDLLfunction

Posted: Fri Mar 28, 2014 1:06 am
by jweksej
Hello,
during porting installer from IA10 to IA18 I've found strange behavior using 'Call DLL function'. I call kernel32->GetDriveType. Installer build with IA10 returnd DRIVE_FIXED (3) what is right, but installer build with IA18 returns DRIVE_NO_ROOT_DIR (1) what is wrong.
Do someone have idea what is going on?

Jarek

Re: IA10->IA18 porting problem with CallDLLfunction

Posted: Fri Mar 28, 2014 12:30 pm
by FrancescoT
Dear Jarek,

Are you calling "GetDriveTypeA" or "GetDriveTypeW" (depending if you want to use the ANSI or the UNICODE function version)?

... it seems you are using a wrong function name.

Regards

Re: IA10->IA18 porting problem with CallDLLfunction

Posted: Mon Mar 31, 2014 5:33 am
by jweksej
I've called GetDriveType - with IA10 it returned ANSI info. I've changed it to GetDriveTypeA and works fine with IA10 and IA18.
Great thanks for help
Jarek

Re: IA10->IA18 porting problem with CallDLLfunction

Posted: Mon Mar 31, 2014 11:22 am
by FrancescoT
:D