Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
724 B

  1. #ifndef _UTILS_H_
  2. #define _UTILS_H_
  3. HRESULT
  4. GetErrorMessage(
  5. IN DWORD i_dwError,
  6. OUT CString& cstrErrorMsg
  7. );
  8. void
  9. GetDisplayMessage(
  10. OUT CString& cstrMsg,
  11. IN DWORD dwErr,
  12. IN UINT iStringId,
  13. ...);
  14. int
  15. DisplayMessageBox(
  16. IN HWND hwndParent,
  17. IN UINT uType,
  18. IN DWORD dwErr,
  19. IN UINT iStringId,
  20. ...);
  21. BOOL IsLocalComputer(IN LPCTSTR lpszComputer);
  22. void GetFullPath(
  23. IN LPCTSTR lpszServer,
  24. IN LPCTSTR lpszDir,
  25. OUT CString& cstrPath
  26. );
  27. HRESULT
  28. VerifyDriveLetter(
  29. IN LPCTSTR lpszServer,
  30. IN LPCTSTR lpszDrive
  31. );
  32. HRESULT
  33. IsAdminShare(
  34. IN LPCTSTR lpszServer,
  35. IN LPCTSTR lpszDrive
  36. );
  37. #endif // _UTILS_H_