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.

44 lines
1023 B

  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. #ifdef __cplusplus
  33. }
  34. #endif
  35. #endif