2009年9月21日 星期一

Interface Definition Language (IDL)

Interface definition language (IDL) files are a structured way to define interfaces and objects.

ex:
[
object,
uuid(),
helpstring("IWDFObject Interface"),
local,
restricted,
pointer_default(unique)
]
interface IWDFObject : IUnknown
{

HRESULT
DeleteWdfObject(
void
);

HRESULT
AssignContext(
[in, unique, annotation("__in_opt")] IObjectCleanup * pCleanupCallback,
[in, unique, annotation("__in_opt")] void * pContext
);

HRESULT
RetrieveContext(
[out, annotation("__out")] void ** ppvContext
);

void
AcquireLock(
void
);

void
ReleaseLock(
void
);
};

沒有留言:

張貼留言