Export the function for the Windows build