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.

36 lines
1.3 KiB

  1. //******************************************************************************
  2. //
  3. // StringBlast.h: Microsoft LocStudio
  4. //
  5. // Copyright (C) 1996-1997 by Microsoft Corporation.
  6. // All rights reserved.
  7. //
  8. //******************************************************************************
  9. #if !defined(MITUTIL__StringBlast_h__INCLUDED)
  10. #define MITUTIL__StringBlast_h__INCLUDED
  11. //------------------------------------------------------------------------------
  12. struct LTAPIENTRY StringBlast
  13. {
  14. // Fast Win32 conversions
  15. static CLString MakeString(_bstr_t bstrSrc);
  16. static CLString MakeString(const CPascalString & pasSrc);
  17. static CLString MakeStringFromBStr(BSTR bstrSrc);
  18. static CLString MakeStringFromWide(const wchar_t * szwSrc);
  19. static _bstr_t MakeBStr(const char * szBuffer);
  20. static _bstr_t MakeBStrFromWide(const wchar_t * wszBuffer);
  21. static _bstr_t MakeBStr(const CLString & stSrc);
  22. static _bstr_t MakeBStrFromBStr(BSTR bstrSrc);
  23. static _bstr_t MakeBStr(const CPascalString & pasSrc);
  24. static _bstr_t MakeBStr(HINSTANCE hDll, UINT nStringID);
  25. // Use these functions when you need to get a raw BSTR
  26. static BSTR MakeDetachedBStr(const char * szBuffer);
  27. static BSTR MakeDetachedBStrFromWide(const wchar_t * wszBuffer);
  28. static BSTR MakeDetachedBStr(const CLString & stSrc);
  29. };
  30. #endif // MITUTIL__StringBlast_h__INCLUDED