The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: ragdog on October 10, 2008, 07:05:44 PM

Title: Ntdll api question
Post by: ragdog on October 10, 2008, 07:05:44 PM
Hi

I have a little question to Native api

bt: LdrLoadDll and LdrGetProcedureAddress

Work this only with unicode and ansicode string?
and works this without?


invoke RtlInitUnicodeString, offset ahUnicode, offset unicodeDll
invoke LdrLoadDll, offset ansiDll , NULL, 0, offset hDll
             
invoke RtlInitAnsiString, offset ahAnsi, offset mBox
invoke LdrGetProcedureAddress, hDll, offset ahAnsi, NULL, offset pMessageBoxA
Title: Re: Ntdll api question
Post by: evlncrn8 on October 10, 2008, 09:22:28 PM
well the getprocaddress api doesn't handle unicode, so i'd think its a bit strange if the ldr code does too...