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.

82 lines
1.7 KiB

  1. // WmdmLog.idl : IDL source for WmdmLog.dll
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (WmdmLog.tlb) and marshalling code.
  5. import "oaidl.idl";
  6. import "ocidl.idl";
  7. import "unknwn.idl";
  8. import "wtypes.idl";
  9. cpp_quote( "#define WMDM_LOG_SEV_INFO 0x00000001 ")
  10. cpp_quote( "#define WMDM_LOG_SEV_WARN 0x00000002 ")
  11. cpp_quote( "#define WMDM_LOG_SEV_ERROR 0x00000004 ")
  12. cpp_quote( "#define WMDM_LOG_NOTIMESTAMP 0x00000010 ")
  13. // IWMDMLogger
  14. [
  15. object,
  16. uuid(110A3200-5A79-11d3-8D78-444553540000),
  17. pointer_default(unique)
  18. ]
  19. interface IWMDMLogger : IUnknown
  20. {
  21. HRESULT IsEnabled(
  22. [out] BOOL *pfEnabled
  23. );
  24. HRESULT Enable(
  25. [in] BOOL fEnable
  26. );
  27. HRESULT GetLogFileName(
  28. [out,string,size_is(nMaxChars)] LPSTR pszFilename,
  29. [in] UINT nMaxChars
  30. );
  31. HRESULT SetLogFileName(
  32. [in,string] LPSTR pszFilename
  33. );
  34. HRESULT LogString(
  35. [in] DWORD dwFlags,
  36. [in,string] LPSTR pszSrcName,
  37. [in,string] LPSTR pszLog
  38. );
  39. HRESULT LogDword(
  40. [in] DWORD dwFlags,
  41. [in,string] LPSTR pszSrcName,
  42. [in,string] LPSTR pszLogFormat,
  43. [in] DWORD dwLog
  44. );
  45. HRESULT Reset(
  46. void
  47. );
  48. HRESULT GetSizeParams(
  49. [out] LPDWORD pdwMaxSize,
  50. [out] LPDWORD pdwShrinkToSize
  51. );
  52. HRESULT SetSizeParams(
  53. [in] DWORD dwMaxSize,
  54. [in] DWORD dwShrinkToSize
  55. );
  56. };
  57. [
  58. uuid(110A3201-5A79-11d3-8D78-444553540000),
  59. version(1.0),
  60. helpstring("WmdmLog 1.0 Type Library")
  61. ]
  62. library WMDMLogLib
  63. {
  64. importlib("stdole32.tlb");
  65. importlib("stdole2.tlb");
  66. [
  67. uuid(110A3202-5A79-11d3-8D78-444553540000),
  68. helpstring("WMDMLogger Class")
  69. ]
  70. coclass WMDMLogger
  71. {
  72. [default] interface IWMDMLogger;
  73. };
  74. };