Important
이 항목의 콘텐츠 및 샘플 코드는 오래되었으며 현재 지원되지 않습니다. 현재 드라이버 개발 도구 체인에서는 작동하지 않을 수 있습니다.
This topic contains code for a sample interface.idl that you can use to support Extension Units.
// IExtensionUnit interface
import "unknwn.idl";
[
object,
local,
uuid(yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy),
pointer_default(unique)
]
interface IExtensionUnit : IUnknown
{
HRESULT get_InfoSize(
[out] ULONG *pulSize);
HRESULT get_Info(
[in] ULONG ulSize,
[in, out, size_is(ulSize)] BYTE pInfo[]);
HRESULT get_PropertySize(
[in] ULONG PropertyId,
[out] ULONG *pulSize);
HRESULT get_Property(
[in] ULONG PropertyId,
[in] ULONG ulSize,
[in, out, size_is(ulSize)] BYTE pValue[]);
HRESULT put_Property(
[in] ULONG PropertyId,
[in] ULONG ulSize,
[in, out, size_is(ulSize)] BYTE pValue[]);
HRESULT get_PropertyRange(
[in] ULONG PropertyId,
[in] ULONG ulSize,
[in, out, size_is(ulSize)] BYTE pMin[],
[in, out, size_is(ulSize)] BYTE pMax[],
[in, out, size_is(ulSize)] BYTE pSteppingDelta[],
[in, out, size_is(ulSize)] BYTE pDefault[]);
};