windows-nt/Source/XPSP1/NT/ds/adsi/nw312/cenumjob.hxx
2020-09-26 16:20:57 +08:00

55 lines
839 B
C++

class FAR CNWCOMPATJobCollectionEnum : public CNWCOMPATEnumVariant
{
public:
CNWCOMPATJobCollectionEnum();
~CNWCOMPATJobCollectionEnum();
static
HRESULT
CNWCOMPATJobCollectionEnum::Create(
CNWCOMPATJobCollectionEnum FAR* FAR* ppEnumVariant,
BSTR PrinterName
);
private:
BSTR _PrinterName;
HANDLE _hPrinter;
LPBYTE _pBuffer;
DWORD _dwReturned;
DWORD _dwCurrentObject;
HRESULT
CNWCOMPATJobCollectionEnum::GetJobObject(
IDispatch ** ppDispatch
);
HRESULT
CNWCOMPATJobCollectionEnum::EnumJobMembers(
ULONG cElements,
VARIANT FAR* pvar,
ULONG FAR* pcElementFetched
);
STDMETHOD(Next)(
ULONG cElements,
VARIANT FAR* pvar,
ULONG FAR* pcElementFetched
);
};