Replace BOOL -> bool, LPCSTR -> const char*.