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.

39 lines
1.2 KiB

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