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.
52 lines
1.5 KiB
52 lines
1.5 KiB
|
|
// prturl.h : Declaration of the Cprturl
|
|
|
|
#ifndef __PRTURL_H_
|
|
#define __PRTURL_H_
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// Cprturl
|
|
class ATL_NO_VTABLE Cprturl :
|
|
public CComObjectRootEx<CComMultiThreadModel>,
|
|
public CComCoClass<Cprturl, &CLSID_prturl>,
|
|
public ISupportErrorInfoImpl<&IID_Iprturl>,
|
|
public IDispatchImpl<Iprturl, &IID_Iprturl, &LIBID_OLEPRNLib>
|
|
{
|
|
public:
|
|
Cprturl()
|
|
{
|
|
}
|
|
|
|
public:
|
|
|
|
DECLARE_REGISTRY_RESOURCEID(IDR_PRTURL)
|
|
//DECLARE_GET_CONTROLLING_UNKNOWN()
|
|
|
|
BEGIN_COM_MAP(Cprturl)
|
|
COM_INTERFACE_ENTRY(Iprturl)
|
|
COM_INTERFACE_ENTRY(IDispatch)
|
|
COM_INTERFACE_ENTRY(ISupportErrorInfo)
|
|
END_COM_MAP()
|
|
|
|
// Iprturl
|
|
|
|
private:
|
|
HRESULT PrivateGetPrinterData(LPTSTR strPrnName, LPTSTR pszKey, LPTSTR pszValueName, BSTR * pVal);
|
|
HRESULT PrivateGetSupportValue (LPTSTR pValueName, BSTR * pVal);
|
|
|
|
public:
|
|
STDMETHOD(get_SupportLinkName)(/*[out, retval]*/ BSTR *pVal);
|
|
STDMETHOD(get_SupportLink)(/*[out, retval]*/ BSTR *pVal);
|
|
STDMETHOD(put_PrinterName)(/* [in] */ BSTR newVal);
|
|
STDMETHOD(get_PrinterWebURL)(/*[out, retval]*/ BSTR *pVal);
|
|
STDMETHOD(get_PrinterOemURL)(/*[out, retval]*/ BSTR *pVal);
|
|
STDMETHOD(get_PrinterOemName)(/*[out, retval]*/ BSTR *pVal);
|
|
STDMETHOD(get_ClientInfo)(/*[out, retval]*/ long *lpdwInfo);
|
|
|
|
private:
|
|
CAutoPtrBSTR m_spbstrPrinterWebURL;
|
|
CAutoPtrBSTR m_spbstrPrinterOemURL;
|
|
CAutoPtrBSTR m_spbstrPrinterOemName;
|
|
};
|
|
|
|
#endif //__PRTURL_H_
|