Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
The ACX_REQUEST_PARAMETERS_INIT_METHOD function initializes an ACX_REQUEST_PARAMETERS struct with ACX method parameters.
Syntax
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
);
Parameters
Params
A pointer to ACX_REQUEST_PARAMETERS structure that is used to store method parameters.
Set
A method Set ID (GUID).
Id
A method ID (ULONG) within the method Set ID.
Verb
The ACX method verb to send as defined by the ACX_METHOD_VERB enumeration.
ItemType
The ACX_ITEM_TYPE type of item being sent, for example AcxItemTypeCircuit.
ItemId
The item ID of the ItemType, for example the pin ID if the ItemType is a pin.
Args
An optional Args buffer holding additional parameters for the specified method. Set to null if not present.
ArgsCb
The count in bytes (size) of the Args buffer. Set to 0 if Args field is not used.
Result
An 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.
ResultCb
The count in bytes (size) of the Result buffer. Set to 0 if Result is not used.
Return value
None
Remarks
Example
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
);
ACX requirements
Minimum ACX version: 1.0
For more information about ACX versions, see ACX version overview.
Requirements
| Requirement | Value |
|---|---|
| Header | acxrequest.h |