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.

55 lines
1.0 KiB

  1. /*++
  2. Copyright (C) 1997-2001 Microsoft Corporation
  3. Module Name:
  4. MOFUTILS.H
  5. Abstract:
  6. Declares the MOFUTILS functions.
  7. History:
  8. a-davj 13-July-97 Created.
  9. --*/
  10. #ifndef __MOFUTILS__H_
  11. #define __MOFUTILS__H_
  12. int Trace(bool bError, DWORD dwID, ...);
  13. void PrintUsage();
  14. BOOL GetVerInfo(TCHAR * pResStringName, TCHAR * pRes, DWORD dwResSize);
  15. BOOL bGetString(char * pIn, WCHAR * pOut);
  16. bool ValidFlags(bool bClass, long lFlags);
  17. class IntString
  18. {
  19. TCHAR *m_pString;
  20. public:
  21. IntString(DWORD dwID);
  22. ~IntString();
  23. operator TCHAR *() { return m_pString; }
  24. };
  25. HRESULT ExtractFromResource(
  26. IMofCompiler * pCompiler,
  27. LPWSTR pwsResourceName,
  28. LPWSTR FileName,
  29. LPWSTR ServerAndNamespace,
  30. LPWSTR User,
  31. LPWSTR Authority,
  32. LPWSTR Password,
  33. LONG lOptionFlags, // autocomp, check, etc
  34. LONG lClassFlags,
  35. LONG lInstanceFlags,
  36. WBEM_COMPILE_STATUS_INFO * pInfo,
  37. BOOL bUseLocale,
  38. WORD wLocaleId
  39. );
  40. #endif