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.5 KiB

  1. //==============================================================;
  2. //
  3. // This source code is only intended as a supplement to
  4. // existing Microsoft documentation.
  5. //
  6. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  7. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  8. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  9. // PURPOSE.
  10. //
  11. // Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  12. //
  13. //==============================================================;
  14. #include "stdafx.h"
  15. #include "logsrvc.h"
  16. #include "Comp.h"
  17. #include "CompData.h"
  18. #include "DataObj.h"
  19. const GUID CLogService::thisGuid = { 0x72248fa5, 0x1fa1, 0x4742, { 0xa4, 0xb2, 0x10, 0x9a, 0xf2, 0x5, 0x1d, 0x6c } };
  20. //==============================================================
  21. //
  22. // CLogService implementation
  23. //
  24. //
  25. const _TCHAR *CLogService::GetDisplayName(int nCol)
  26. {
  27. /* _TCHAR buf[128];
  28. wsprintf(buf, _T("Bicycle"));
  29. _TCHAR *pszCol =
  30. static_cast<_TCHAR *>(CoTaskMemAlloc((_tcslen(buf) + 1) * sizeof(WCHAR)));
  31. _tcscpy(pszCol, buf);
  32. return pszCol;
  33. */
  34. static _TCHAR szDisplayName[256] = {0};
  35. LoadString(g_hinst, IDS_LOGSERVICENODE, szDisplayName, sizeof(szDisplayName)/sizeof(szDisplayName[0]));
  36. /*
  37. _tcscat(szDisplayName, _T(" ("));
  38. _tcscat(szDisplayName, snapInData.m_host);
  39. _tcscat(szDisplayName, _T(")"));
  40. */
  41. return szDisplayName;
  42. }