-
April 15th, 2011, 11:37 PM
#1
Retriving RtlIpv4StringToAddress fails
Code:
HMODULE hMod=LoadLibrary("ntdll.dll")
if(hMod!=NULL)
{
ret=(RTLIP4TOSTRING)GetProcAddress(hMod,"RtlIpv4StringToAddress");
if(ret==NULL)
{
//error
}
}
Could someone tell me why I always get "ret" as NULL ? I am using Vista SP1. Thank you
-
April 17th, 2011, 11:26 AM
#2
Re: Retriving RtlIpv4StringToAddress fails
It always returns NULL because there is no "RtlIpv4StringToAddress" exported by ntdll.dll. Not even in Windows Vista or Windows 7.
Instead, use "RtlIpv4StringToAddressA" or "RtlIpv4StringToAddressW" if you want the ANSI or UNICODE version, respectively.
Last edited by ovidiucucu; April 17th, 2011 at 11:31 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|