Progress! As in, nearly everything almost works, except for marshalIn for the return value.