Source code of Windows XP (NT5)
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.

38 lines
588 B

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