c++ instead of windows types
dummy error handling