Add IP resolution to STDAPI

Adds IP resolution to STDAPI.

My WinSDK is fudged so cant compile and text x64.

Compiles in linux but falls over on core_loadlib?

Dont laught too much at my awful C!