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.

58 lines
932 B

  1. class FAR CNWCOMPATJobCollectionEnum : public CNWCOMPATEnumVariant
  2. {
  3. public:
  4. CNWCOMPATJobCollectionEnum();
  5. ~CNWCOMPATJobCollectionEnum();
  6. static
  7. HRESULT
  8. CNWCOMPATJobCollectionEnum::Create(
  9. CNWCOMPATJobCollectionEnum FAR* FAR* ppEnumVariant,
  10. BSTR PrinterName,
  11. CCredentials &Credentials
  12. );
  13. private:
  14. BSTR _PrinterName;
  15. HANDLE _hPrinter;
  16. LPBYTE _pBuffer;
  17. DWORD _dwReturned;
  18. DWORD _dwCurrentObject;
  19. CCredentials _Credentials;
  20. NWCONN_HANDLE _hConn;
  21. HRESULT
  22. CNWCOMPATJobCollectionEnum::GetJobObject(
  23. IDispatch ** ppDispatch
  24. );
  25. HRESULT
  26. CNWCOMPATJobCollectionEnum::EnumJobMembers(
  27. ULONG cElements,
  28. VARIANT FAR* pvar,
  29. ULONG FAR* pcElementFetched
  30. );
  31. STDMETHOD(Next)(
  32. ULONG cElements,
  33. VARIANT FAR* pvar,
  34. ULONG FAR* pcElementFetched
  35. );
  36. };