Revert this file to as it was previously - these are low-level hooks around OS functions so c-strings are required.