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.
 
 
 
 
 
 

45 lines
724 B

#ifndef _UTILS_H_
#define _UTILS_H_
HRESULT
GetErrorMessage(
IN DWORD i_dwError,
OUT CString& cstrErrorMsg
);
void
GetDisplayMessage(
OUT CString& cstrMsg,
IN DWORD dwErr,
IN UINT iStringId,
...);
int
DisplayMessageBox(
IN HWND hwndParent,
IN UINT uType,
IN DWORD dwErr,
IN UINT iStringId,
...);
BOOL IsLocalComputer(IN LPCTSTR lpszComputer);
void GetFullPath(
IN LPCTSTR lpszServer,
IN LPCTSTR lpszDir,
OUT CString& cstrPath
);
HRESULT
VerifyDriveLetter(
IN LPCTSTR lpszServer,
IN LPCTSTR lpszDrive
);
HRESULT
IsAdminShare(
IN LPCTSTR lpszServer,
IN LPCTSTR lpszDrive
);
#endif // _UTILS_H_