// acxrequest.h
VOID ACX_REQUEST_PARAMETERS_INIT_METHOD(
PACX_REQUEST_PARAMETERS Params,
const GUID Set,
ULONG Id,
ACX_METHOD_VERB Verb,
ACX_ITEM_TYPE ItemType,
ULONG ItemId,
PVOID Args,
ULONG ArgsCb,
PVOID Result,
ULONG ResultCb
);
View the official Windows Driver Kit DDI referenceNo description available.
The ACX_REQUEST_PARAMETERS_INIT_METHOD function initializes an ACX_REQUEST_PARAMETERS struct with ACX method parameters.
ParamsA pointer to ACX_REQUEST_PARAMETERS structure that is used to store method parameters.
SetA method Set ID (GUID).
IdA method ID (ULONG) within the method Set ID.
VerbThe ACX method verb to send as defined by the ACX_METHOD_VERB enumeration.
ItemTypeThe ACX_ITEM_TYPE type of item being sent, for example AcxItemTypeCircuit.
ItemIdThe item ID of the ItemType, for example the pin ID if the ItemType is a pin.
ArgsAn optional Args buffer holding additional parameters for the specified method. Set to null if not present.
ArgsCbThe count in bytes (size) of the Args buffer. Set to 0 if Args field is not used.
ResultAn optional Result buffer to old the result of the operation. Set to null if not present or if *SendMethod needs to allocate it when ResultCb is not zero. Caller is responsible for freeing the allocated buffer.
ResultCbThe count in bytes (size) of the Result buffer. Set to 0 if Result is not used.
Example usage is shown below.
arg = circuitArg;
result = 0;
//
// Format and send the request.
//
ACX_REQUEST_PARAMETERS_INIT_METHOD(
¶ms,
methodsTests[i].MethodSet,
methodsTests[i].MethodId,
AcxMethodVerbSend,
AcxItemTypeCircuit,
AcxItemIdNone,
&arg, sizeof(arg), // Args & size
&result, sizeof(result) // Result & size
);
Minimum ACX version: 1.0
For more information about ACX versions, see ACX version overview.