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.

28 lines
814 B

  1. // Utilities.h: interface for the CUtilities class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_UTILITIES_H__C37E8DD0_ED3E_11D2_804A_009027345EE2__INCLUDED_)
  5. #define AFX_UTILITIES_H__C37E8DD0_ED3E_11D2_804A_009027345EE2__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. TCHAR *NewTCHAR(const TCHAR *ptcToCopy);
  10. LPSTR NewLPSTR(LPCWSTR lpwstrToCopy);
  11. LPWSTR NewLPWSTR(LPCSTR lpstrToCopy);
  12. LPTSTR DecodeStatus(IN ULONG Status);
  13. int GetFileList(LPTSTR lptstrPath, LPTSTR lptstrFileType, list<t_string> &rList);
  14. BOOL IsAdmin(); // From Q118626
  15. LPTSTR LPTSTRFromGuid(GUID Guid);
  16. t_string ULONGVarToTString(ULONG ul, bool bHex);
  17. #endif // !defined(AFX_UTILITIES_H__C37E8DD0_ED3E_11D2_804A_009027345EE2__INCLUDED_)