News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Ntdll api question

Started by ragdog, October 10, 2008, 07:05:44 PM

Previous topic - Next topic

ragdog

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

evlncrn8

well the getprocaddress api doesn't handle unicode, so i'd think its a bit strange if the ldr code does too...