Tbsi_Physical_Presence_Command function (tbs.h)
Passes a physical presence ACPI command through TBS to the driver.
Syntax
TBS_RESULT Tbsi_Physical_Presence_Command(
[in] TBS_HCONTEXT hContext,
[in] PCBYTE pabInput,
[in] UINT32 cbInput,
[out] PBYTE pabOutput,
[in, out] PUINT32 pcbOutput
);
Parameters
[in] hContext
The context of the ACPI command.
[in] pabInput
A pointer to a buffer that contains the input to the ACPI command.
The input to the ACPI command is defined in the TCG Physical Presence Interface Specification at https://www.trustedcomputinggroup.org. The buffer should contain Arg2 and Arg3 values as defined in this document. The values for Arg0 and Arg1 are static and automatically added. For example, if this method is used for Get Physical Presence Interface Version, then Arg2 is the integer value 1 and Arg3 is empty, so the buffer should just contain an integer value of 1. If this method is used for "Submit TPM Operation Request to Pre-OS Environment", then Arg2 is the integer value 2 and Arg3 will be the integer for the specified operation, such as 1 for enable or 2 for disable.
[in] cbInput
The length, in bytes, of the input buffer.
[out] pabOutput
A pointer to a buffer to contain the output of the ACPI command.
The buffer will contain the return value from the command as defined in the TCG Physical Presence Interface Specification.
[in, out] pcbOutput
A pointer to an unsigned long integer that, on input, specifies the size, in bytes, of the output buffer. If the function succeeds, this parameter, on output, receives the size, in bytes, of the data pointed to by pabOutput. If the function fails, this parameter does not receive a value.
Return value
If the function succeeds, the function returns TBS_SUCCESS.
If the function fails, it returns a TBS return code that indicates the error.
Return code/value | Description |
---|---|
|
The function was successful. |
|
One or more parameter values are not valid. |
|
An internal software error occurred. |
|
A context parameter that is not valid was passed when attempting to create a TBS context. |
|
A specified output pointer is not valid. |
Remarks
For more information, see TCG Physical Presence Interface Specification.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | tbs.h |
Library | Tbs.lib |
DLL | Tbs.dll |