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.

53 lines
1.2 KiB

  1. // NCEDefs.h
  2. #ifndef _NCEDEFS_H
  3. #define _NCEDEFS_H
  4. #include <comdef.h>
  5. #define WMI_INIT_EVENT_NAME L"WBEM_ESS_OPEN_FOR_BUSINESS"
  6. #define OBJNAME_EVENT_READY L"EVENT_READY"
  7. #define OBJNAME_NAMED_PIPE L"PIPE_EVENT"
  8. #define MAX_MSG_SIZE 0x8000
  9. #define PIPE_TIMEOUT 32000
  10. #define NC_SRVMSG_CLIENT_INFO 0
  11. #define NC_SRVMSG_EVENT_LAYOUT 1
  12. #define NC_SRVMSG_PREPPED_EVENT 2
  13. #define NC_SRVMSG_BLOB_EVENT 3
  14. #define NC_SRVMSG_RESTRICTED_SINK 4
  15. #ifdef USE_SD
  16. #define NC_SRVMSG_SET_SINK_SD 5
  17. #define NC_SRVMSG_SET_EVENT_SD 6
  18. #endif
  19. #define NC_SRVMSG_ACCESS_CHECK_REPLY 10
  20. #define NC_SRVMSG_NEW_QUERY_REPLY 11
  21. #define NC_SRVMSG_CANCEL_QUERY_REPLY 12
  22. #define NC_CLIMSG_ACCESS_CHECK_REQ 10
  23. #define NC_CLIMSG_NEW_QUERY_REQ 11
  24. #define NC_CLIMSG_CANCEL_QUERY_REQ 12
  25. #define NC_CLIMSG_PROVIDER_UNLOADING 13
  26. struct NC_SRVMSG_REPLY
  27. {
  28. DWORD dwMsg;
  29. HRESULT hrRet;
  30. DWORD_PTR dwMsgCookie;
  31. };
  32. class IPostBuffer
  33. {
  34. public:
  35. virtual ULONG AddRef() = 0;
  36. virtual ULONG Release() = 0;
  37. virtual HRESULT PostBuffer(LPBYTE pData, DWORD dwSize) = 0;
  38. };
  39. #endif