Привет, если надо из DOS в Windows то это поможет
static str oemToChar(str _text)
{
DLL dll = new DLL("user32.dll");
DLLFunction dllFunction = new DLLFunction(dll, "OemToCharA");
Binary result = new Binary(strlen(_text) + 1);
;
dllFunction.returns(ExtTypes:

Word);
dllFunction.arg(ExtTypes::String, ExtTypes::Pointer);
dllFunction.call(_text, result);
return result.string(0);
}