Source code of Windows XP (NT5)
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.

47 lines
1.0 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996-1998
  5. //
  6. // File: common.h
  7. //
  8. // Contents:
  9. //
  10. // History: 12-09-97 HueiWang Modified from MSDN RPC Service Sample
  11. //
  12. //---------------------------------------------------------------------------
  13. #ifndef _LS_COMMON_H
  14. #define _LS_COMMON_H
  15. #include <windows.h>
  16. #include <wincrypt.h>
  17. #include <ole2.h>
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21. HRESULT LogEvent(LPTSTR lpszSource,
  22. DWORD dwEventType,
  23. WORD wCatalog,
  24. DWORD dwIdEvent,
  25. WORD cStrings,
  26. TCHAR **apwszStrings);
  27. LPTSTR GetLastErrorText( LPTSTR lpszBuf, DWORD dwSize );
  28. BOOL
  29. ConvertWszToBstr( OUT BSTR *pbstr,
  30. IN WCHAR const *pwc,
  31. IN LONG cb);
  32. BOOL
  33. ConvertBstrToWsz(IN BSTR pbstr,
  34. OUT LPWSTR * pWsz);
  35. #ifdef __cplusplus
  36. }
  37. #endif
  38. #endif