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.

54 lines
893 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. );
  12. private:
  13. BSTR _PrinterName;
  14. HANDLE _hPrinter;
  15. LPBYTE _pBuffer;
  16. DWORD _dwReturned;
  17. DWORD _dwCurrentObject;
  18. HRESULT
  19. CNWCOMPATJobCollectionEnum::GetJobObject(
  20. IDispatch ** ppDispatch
  21. );
  22. HRESULT
  23. CNWCOMPATJobCollectionEnum::EnumJobMembers(
  24. ULONG cElements,
  25. VARIANT FAR* pvar,
  26. ULONG FAR* pcElementFetched
  27. );
  28. STDMETHOD(Next)(
  29. ULONG cElements,
  30. VARIANT FAR* pvar,
  31. ULONG FAR* pcElementFetched
  32. );
  33. };