Files
mpc-hc/include/FilterInterfaces.h
T
2019-10-19 16:17:24 +02:00

58 lines
2.5 KiB
C

/*
* (C) 2019 see Authors.txt
*
* This file is part of MPC-HC.
*
* MPC-HC is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* MPC-HC is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#pragma once
interface __declspec(uuid("3F56FEBC-633C-4C76-8455-0787FC62C8F8")) IExFilterInfo : public IUnknown
{
// The memory for strings and binary data is allocated by the callee
// by using LocalAlloc. It is the caller's responsibility to release the
// memory by calling LocalFree.
STDMETHOD(GetPropertyInt )(LPCSTR field, int *value) PURE;
STDMETHOD(GetPropertyString)(LPCSTR field, LPWSTR *value, unsigned *chars) PURE;
STDMETHOD(GetPropertyBin )(LPCSTR field, LPVOID *value, unsigned *size ) PURE;
};
// return values:
// E_NOTIMPL - method not implemented, any parameters will be ignored.
// E_POINTER - invalid pointer
// E_INVALIDARG - wrong name or type of field
// E_ABORT - field is correct, but the value is undefined
// S_OK - operation successful
interface __declspec(uuid("37CBDF10-D65E-4E5A-8F37-40E0C8EA1695")) IExFilterConfig : public IUnknown
{
// The memory for strings and binary data is allocated by the callee
// by using LocalAlloc. It is the caller's responsibility to release the
// memory by calling LocalFree.
STDMETHOD(GetBool )(LPCSTR field, bool *value) PURE;
STDMETHOD(GetInt )(LPCSTR field, int *value) PURE;
STDMETHOD(GetInt64 )(LPCSTR field, __int64 *value) PURE;
STDMETHOD(GetDouble)(LPCSTR field, double *value) PURE;
STDMETHOD(GetString)(LPCSTR field, LPWSTR *value, unsigned *chars) PURE;
STDMETHOD(GetBin )(LPCSTR field, LPVOID *value, unsigned *size ) PURE;
STDMETHOD(SetBool )(LPCSTR field, bool value) PURE;
STDMETHOD(SetInt )(LPCSTR field, int value) PURE;
STDMETHOD(SetInt64 )(LPCSTR field, __int64 value) PURE;
STDMETHOD(SetDouble)(LPCSTR field, double value) PURE;
STDMETHOD(SetString)(LPCSTR field, LPWSTR value, int chars) PURE;
STDMETHOD(SetBin )(LPCSTR field, LPVOID value, int size ) PURE;
};