Files
marlersoft-win32json/api/System.TpmBaseServices.json
T
Jonathan Marler ceca95edd3 15.0.1-preview
2021-11-09 11:19:10 -07:00

514 lines
15 KiB
JSON

{
"Constants":[
{
"Name":"TBS_CONTEXT_VERSION_ONE"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":1
,"Attrs":[]
}
,{
"Name":"TBS_SUCCESS"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":0
,"Attrs":[]
}
,{
"Name":"TBS_OWNERAUTH_TYPE_FULL"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":1
,"Attrs":[]
}
,{
"Name":"TBS_OWNERAUTH_TYPE_ADMIN"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":2
,"Attrs":[]
}
,{
"Name":"TBS_OWNERAUTH_TYPE_USER"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":3
,"Attrs":[]
}
,{
"Name":"TBS_OWNERAUTH_TYPE_ENDORSEMENT"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":4
,"Attrs":[]
}
,{
"Name":"TBS_OWNERAUTH_TYPE_ENDORSEMENT_20"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":12
,"Attrs":[]
}
,{
"Name":"TBS_OWNERAUTH_TYPE_STORAGE_20"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":13
,"Attrs":[]
}
,{
"Name":"TBS_CONTEXT_VERSION_TWO"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":2
,"Attrs":[]
}
,{
"Name":"TPM_WNF_INFO_CLEAR_SUCCESSFUL"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":1
,"Attrs":[]
}
,{
"Name":"TPM_WNF_INFO_OWNERSHIP_SUCCESSFUL"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":2
,"Attrs":[]
}
,{
"Name":"TPM_WNF_INFO_NO_REBOOT_REQUIRED"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":1
,"Attrs":[]
}
,{
"Name":"TPM_VERSION_UNKNOWN"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":0
,"Attrs":[]
}
,{
"Name":"TPM_VERSION_12"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":1
,"Attrs":[]
}
,{
"Name":"TPM_VERSION_20"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":2
,"Attrs":[]
}
,{
"Name":"TPM_IFTYPE_UNKNOWN"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":0
,"Attrs":[]
}
,{
"Name":"TPM_IFTYPE_1"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":1
,"Attrs":[]
}
,{
"Name":"TPM_IFTYPE_TRUSTZONE"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":2
,"Attrs":[]
}
,{
"Name":"TPM_IFTYPE_HW"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":3
,"Attrs":[]
}
,{
"Name":"TPM_IFTYPE_EMULATOR"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":4
,"Attrs":[]
}
,{
"Name":"TPM_IFTYPE_SPB"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":5
,"Attrs":[]
}
,{
"Name":"TBS_TCGLOG_SRTM_CURRENT"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":0
,"Attrs":[]
}
,{
"Name":"TBS_TCGLOG_DRTM_CURRENT"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":1
,"Attrs":[]
}
,{
"Name":"TBS_TCGLOG_SRTM_BOOT"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":2
,"Attrs":[]
}
,{
"Name":"TBS_TCGLOG_SRTM_RESUME"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":3
,"Attrs":[]
}
,{
"Name":"TBS_TCGLOG_DRTM_BOOT"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":4
,"Attrs":[]
}
,{
"Name":"TBS_TCGLOG_DRTM_RESUME"
,"Type":{"Kind":"Native","Name":"UInt32"}
,"ValueType":"UInt32"
,"Value":5
,"Attrs":[]
}
]
,"Types":[
{
"Name":"TBS_COMMAND_PRIORITY"
,"Architectures":[]
,"Platform":null
,"Kind":"Enum"
,"Flags":false
,"Scoped":false
,"Values":[
{"Name":"TBS_COMMAND_PRIORITY_LOW","Value":100}
,{"Name":"TBS_COMMAND_PRIORITY_NORMAL","Value":200}
,{"Name":"TBS_COMMAND_PRIORITY_SYSTEM","Value":400}
,{"Name":"TBS_COMMAND_PRIORITY_HIGH","Value":300}
,{"Name":"TBS_COMMAND_PRIORITY_MAX","Value":2147483648}
]
,"IntegerBase":"UInt32"
}
,{
"Name":"TBS_COMMAND_LOCALITY"
,"Architectures":[]
,"Platform":null
,"Kind":"Enum"
,"Flags":false
,"Scoped":false
,"Values":[
{"Name":"TBS_COMMAND_LOCALITY_ZERO","Value":0}
,{"Name":"TBS_COMMAND_LOCALITY_ONE","Value":1}
,{"Name":"TBS_COMMAND_LOCALITY_TWO","Value":2}
,{"Name":"TBS_COMMAND_LOCALITY_THREE","Value":3}
,{"Name":"TBS_COMMAND_LOCALITY_FOUR","Value":4}
]
,"IntegerBase":"UInt32"
}
,{
"Name":"TBS_CONTEXT_PARAMS"
,"Architectures":[]
,"Platform":null
,"Kind":"Struct"
,"Size":0
,"PackingSize":0
,"Fields":[
{"Name":"version","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]}
]
,"NestedTypes":[
]
}
,{
"Name":"TBS_CONTEXT_PARAMS2"
,"Architectures":[]
,"Platform":null
,"Kind":"Struct"
,"Size":0
,"PackingSize":0
,"Fields":[
{"Name":"version","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]}
,{"Name":"Anonymous","Type":{"Kind":"ApiRef","Name":"_Anonymous_e__Union","TargetKind":"Default","Api":"System.TpmBaseServices","Parents":[]},"Attrs":[]}
]
,"NestedTypes":[
{
"Name":"_Anonymous_e__Union"
,"Architectures":[]
,"Platform":null
,"Kind":"Union"
,"Size":0
,"PackingSize":0
,"Fields":[
{"Name":"Anonymous","Type":{"Kind":"ApiRef","Name":"_Anonymous_e__Struct","TargetKind":"Default","Api":"System.TpmBaseServices","Parents":["_Anonymous_e__Union"]},"Attrs":[]}
,{"Name":"asUINT32","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]}
]
,"NestedTypes":[
{
"Name":"_Anonymous_e__Struct"
,"Architectures":[]
,"Platform":null
,"Kind":"Struct"
,"Size":0
,"PackingSize":0
,"Fields":[
{"Name":"_bitfield","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]}
]
,"NestedTypes":[
]
}
]
}
]
}
,{
"Name":"tdTPM_WNF_PROVISIONING"
,"Architectures":[]
,"Platform":null
,"Kind":"Struct"
,"Size":0
,"PackingSize":0
,"Fields":[
{"Name":"status","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]}
,{"Name":"message","Type":{"Kind":"Array","Shape":{"Size":28},"Child":{"Kind":"Native","Name":"Byte"}},"Attrs":[]}
]
,"NestedTypes":[
]
}
,{
"Name":"TPM_DEVICE_INFO"
,"Architectures":[]
,"Platform":null
,"Kind":"Struct"
,"Size":0
,"PackingSize":0
,"Fields":[
{"Name":"structVersion","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]}
,{"Name":"tpmVersion","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]}
,{"Name":"tpmInterfaceType","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]}
,{"Name":"tpmImpRevision","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]}
]
,"NestedTypes":[
]
}
]
,"Functions":[
{
"Name":"Tbsi_Context_Create"
,"SetLastError":false
,"DllImport":"tbs"
,"ReturnType":{"Kind":"Native","Name":"UInt32"}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":"windows6.0.6000"
,"Attrs":[]
,"Params":[
{"Name":"pContextParams","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"TBS_CONTEXT_PARAMS","TargetKind":"Default","Api":"System.TpmBaseServices","Parents":[]}},"Attrs":["In"]}
,{"Name":"phContext","Type":{"Kind":"PointerTo","Child":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}}},"Attrs":["Out"]}
]
}
,{
"Name":"Tbsip_Context_Close"
,"SetLastError":false
,"DllImport":"tbs"
,"ReturnType":{"Kind":"Native","Name":"UInt32"}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":"windows6.0.6000"
,"Attrs":[]
,"Params":[
{"Name":"hContext","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}},"Attrs":["In"]}
]
}
,{
"Name":"Tbsip_Submit_Command"
,"SetLastError":false
,"DllImport":"tbs"
,"ReturnType":{"Kind":"Native","Name":"UInt32"}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":"windows6.0.6000"
,"Attrs":[]
,"Params":[
{"Name":"hContext","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}},"Attrs":["In"]}
,{"Name":"Locality","Type":{"Kind":"ApiRef","Name":"TBS_COMMAND_LOCALITY","TargetKind":"Default","Api":"System.TpmBaseServices","Parents":[]},"Attrs":["In"]}
,{"Name":"Priority","Type":{"Kind":"ApiRef","Name":"TBS_COMMAND_PRIORITY","TargetKind":"Default","Api":"System.TpmBaseServices","Parents":[]},"Attrs":["In"]}
,{"Name":"pabCommand","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Byte"}},"Attrs":["In",{"Kind":"MemorySize","BytesParamIndex":4}]}
,{"Name":"cbCommand","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]}
,{"Name":"pabResult","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Byte"}},"Attrs":["Out",{"Kind":"MemorySize","BytesParamIndex":6}]}
,{"Name":"pcbResult","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["In","Out"]}
]
}
,{
"Name":"Tbsip_Cancel_Commands"
,"SetLastError":false
,"DllImport":"tbs"
,"ReturnType":{"Kind":"Native","Name":"UInt32"}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":"windows6.0.6000"
,"Attrs":[]
,"Params":[
{"Name":"hContext","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}},"Attrs":["In"]}
]
}
,{
"Name":"Tbsi_Physical_Presence_Command"
,"SetLastError":false
,"DllImport":"tbs"
,"ReturnType":{"Kind":"Native","Name":"UInt32"}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":"windows6.0.6000"
,"Attrs":[]
,"Params":[
{"Name":"hContext","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}},"Attrs":["In"]}
,{"Name":"pabInput","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Byte"}},"Attrs":["In",{"Kind":"MemorySize","BytesParamIndex":2}]}
,{"Name":"cbInput","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]}
,{"Name":"pabOutput","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Byte"}},"Attrs":["Out",{"Kind":"MemorySize","BytesParamIndex":4}]}
,{"Name":"pcbOutput","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Out"]}
]
}
,{
"Name":"Tbsi_Get_TCG_Log"
,"SetLastError":false
,"DllImport":"tbs"
,"ReturnType":{"Kind":"Native","Name":"UInt32"}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":"windows6.0.6000"
,"Attrs":[]
,"Params":[
{"Name":"hContext","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}},"Attrs":["In"]}
,{"Name":"pOutputBuf","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Byte"}},"Attrs":["Out",{"Kind":"MemorySize","BytesParamIndex":2},"Optional"]}
,{"Name":"pOutputBufLen","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["In","Out"]}
]
}
,{
"Name":"Tbsi_GetDeviceInfo"
,"SetLastError":false
,"DllImport":"tbs"
,"ReturnType":{"Kind":"Native","Name":"UInt32"}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":"windows8.0"
,"Attrs":[]
,"Params":[
{"Name":"Size","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]}
,{"Name":"Info","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}},"Attrs":["Out",{"Kind":"MemorySize","BytesParamIndex":0}]}
]
}
,{
"Name":"Tbsi_Get_OwnerAuth"
,"SetLastError":false
,"DllImport":"tbs"
,"ReturnType":{"Kind":"Native","Name":"UInt32"}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":"windows8.0"
,"Attrs":[]
,"Params":[
{"Name":"hContext","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}},"Attrs":["In"]}
,{"Name":"ownerauthType","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]}
,{"Name":"pOutputBuf","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Byte"}},"Attrs":["Out",{"Kind":"MemorySize","BytesParamIndex":3},"Optional"]}
,{"Name":"pOutputBufLen","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["In","Out"]}
]
}
,{
"Name":"Tbsi_Revoke_Attestation"
,"SetLastError":false
,"DllImport":"tbs"
,"ReturnType":{"Kind":"Native","Name":"UInt32"}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":"windows8.0"
,"Attrs":[]
,"Params":[
]
}
,{
"Name":"GetDeviceID"
,"SetLastError":false
,"DllImport":"tbs"
,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":null
,"Attrs":[]
,"Params":[
{"Name":"pbWindowsAIK","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Byte"}},"Attrs":["Out",{"Kind":"MemorySize","BytesParamIndex":1},"Optional"]}
,{"Name":"cbWindowsAIK","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]}
,{"Name":"pcbResult","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Out"]}
,{"Name":"pfProtectedByTPM","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"BOOL","TargetKind":"Default","Api":"Foundation","Parents":[]}},"Attrs":["Out","Optional"]}
]
}
,{
"Name":"GetDeviceIDString"
,"SetLastError":false
,"DllImport":"tbs"
,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":null
,"Attrs":[]
,"Params":[
{"Name":"pszWindowsAIK","Type":{"Kind":"LPArray","NullNullTerm":false,"CountConst":-1,"CountParamIndex":1,"Child":{"Kind":"Native","Name":"Char"}},"Attrs":["Out","Optional"]}
,{"Name":"cchWindowsAIK","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]}
,{"Name":"pcchResult","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Out"]}
,{"Name":"pfProtectedByTPM","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"BOOL","TargetKind":"Default","Api":"Foundation","Parents":[]}},"Attrs":["Out","Optional"]}
]
}
,{
"Name":"Tbsi_Create_Windows_Key"
,"SetLastError":false
,"DllImport":"tbs"
,"ReturnType":{"Kind":"Native","Name":"UInt32"}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":null
,"Attrs":[]
,"Params":[
{"Name":"keyHandle","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]}
]
}
,{
"Name":"Tbsi_Get_TCG_Log_Ex"
,"SetLastError":false
,"DllImport":"tbs"
,"ReturnType":{"Kind":"Native","Name":"UInt32"}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":"windows10.0.17134"
,"Attrs":[]
,"Params":[
{"Name":"logType","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]}
,{"Name":"pbOutput","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Byte"}},"Attrs":["Out",{"Kind":"MemorySize","BytesParamIndex":2},"Optional"]}
,{"Name":"pcbOutput","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["In","Out"]}
]
}
]
,"UnicodeAliases":[
]
}