win_util.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. // This file is part of BOINC.
  2. // http://boinc.berkeley.edu
  3. // Copyright (C) 2008 University of California
  4. //
  5. // BOINC is free software; you can redistribute it and/or modify it
  6. // under the terms of the GNU Lesser General Public License
  7. // as published by the Free Software Foundation,
  8. // either version 3 of the License, or (at your option) any later version.
  9. //
  10. // BOINC is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. // See the GNU Lesser General Public License for more details.
  14. //
  15. // You should have received a copy of the GNU Lesser General Public License
  16. // along with BOINC. If not, see <http://www.gnu.org/licenses/>.
  17. #ifndef BOINC_WIN_UTIL_H
  18. #define BOINC_WIN_UTIL_H
  19. extern BOOL TerminateProcessById(DWORD dwProcessId);
  20. extern void chdir_to_data_dir();
  21. extern std::wstring boinc_ascii_to_wide(const std::string& str);
  22. extern std::string boinc_wide_to_ascii(const std::wstring& str);
  23. extern char* windows_format_error_string(
  24. unsigned long dwError, char* pszBuf, int iSize
  25. );
  26. #endif