// Created by Microsoft (R) C/C++ Compiler Version 12.00.8964.0 (2ea56c11).
//
// \\nt3\development\_distribution\swprint3\release\TTPMonitor.tli
//
// Wrapper implementations for Win32 type library C:\Projects\Driver\Monitor\TTPMonitor1\TTPMonitor.tlb
// compiler-generated file created 11/04/05 at 16:32:32 - DO NOT EDIT!

#pragma once

//
// interface ITTPMonitor wrapper method implementations
//

inline void ITTPMonitor::PutCurrentPrinter ( _bstr_t _arg1 ) {
    HRESULT _hr = put_CurrentPrinter(_arg1);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t ITTPMonitor::GetGetPrinterName ( ) {
    BSTR _result;
    HRESULT _hr = get_GetPrinterName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t ITTPMonitor::getPrinterData ( long id ) {
    BSTR _result;
    HRESULT _hr = raw_getPrinterData(id, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline int ITTPMonitor::HexStrToI ( _bstr_t bsHex ) {
    int _result;
    HRESULT _hr = raw_HexStrToI(bsHex, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline int ITTPMonitor::GetENQ1 ( ) {
    int _result;
    HRESULT _hr = raw_GetENQ1(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline int ITTPMonitor::GetENQ6 ( ) {
    int _result;
    HRESULT _hr = raw_GetENQ6(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface ITTPStatus wrapper method implementations
//

inline _bstr_t ITTPStatus::GetErrorEventName ( ) {
    BSTR _result;
    HRESULT _hr = get_ErrorEventName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t ITTPStatus::GetStatusEventName ( ) {
    BSTR _result;
    HRESULT _hr = get_StatusEventName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline HRESULT ITTPStatus::WaitForStatus ( long dwMillisecond, long * dwReturn, long * dwResult ) {
    HRESULT _hr = raw_WaitForStatus(dwMillisecond, dwReturn, dwResult);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}
