Files
marlersoft-win32json/api/Devices.DeviceAccess.json
T
Jonathan Marler ef937288be 10.3.16-preview
2021-10-11 10:11:10 -06:00

175 lines
6.3 KiB
JSON

{
"Constants":[
{
"Name":"CLSID_DeviceIoControl"
,"Type":{"Kind":"Native","Name":"Guid"}
,"ValueType":"String"
,"Value":"12d3e372-874b-457d-9fdf-73977778686c"
,"Attrs":[]
}
]
,"Types":[
{
"Name":"IDeviceRequestCompletionCallback"
,"Architectures":[]
,"Platform":null
,"Kind":"Com"
,"Guid":"999bad24-9acd-45bb-8669-2a2fc0288b04"
,"Interface":{"Kind":"ApiRef","Name":"IUnknown","TargetKind":"Com","Api":"System.Com","Parents":[]}
,"Methods":[
{
"Name":"Invoke"
,"SetLastError":false
,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":null
,"Attrs":[]
,"Params":[
{"Name":"requestResult","Type":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In"]}
,{"Name":"bytesReturned","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]}
]
}
]
}
,{
"Name":"IDeviceIoControl"
,"Architectures":[]
,"Platform":null
,"Kind":"Com"
,"Guid":"9eefe161-23ab-4f18-9b49-991b586ae970"
,"Interface":{"Kind":"ApiRef","Name":"IUnknown","TargetKind":"Com","Api":"System.Com","Parents":[]}
,"Methods":[
{
"Name":"DeviceIoControlSync"
,"SetLastError":false
,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":null
,"Attrs":[]
,"Params":[
{"Name":"ioControlCode","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]}
,{"Name":"inputBuffer","Type":{"Kind":"LPArray","NullNullTerm":false,"CountConst":-1,"CountParamIndex":2,"Child":{"Kind":"Native","Name":"Byte"}},"Attrs":["In","Optional"]}
,{"Name":"inputBufferSize","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]}
,{"Name":"outputBuffer","Type":{"Kind":"LPArray","NullNullTerm":false,"CountConst":-1,"CountParamIndex":4,"Child":{"Kind":"Native","Name":"Byte"}},"Attrs":["Out","Optional"]}
,{"Name":"outputBufferSize","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]}
,{"Name":"bytesReturned","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Out"]}
]
}
,{
"Name":"DeviceIoControlAsync"
,"SetLastError":false
,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":null
,"Attrs":[]
,"Params":[
{"Name":"ioControlCode","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]}
,{"Name":"inputBuffer","Type":{"Kind":"LPArray","NullNullTerm":false,"CountConst":-1,"CountParamIndex":2,"Child":{"Kind":"Native","Name":"Byte"}},"Attrs":["In","Optional"]}
,{"Name":"inputBufferSize","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]}
,{"Name":"outputBuffer","Type":{"Kind":"LPArray","NullNullTerm":false,"CountConst":-1,"CountParamIndex":4,"Child":{"Kind":"Native","Name":"Byte"}},"Attrs":["Out","Optional"]}
,{"Name":"outputBufferSize","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]}
,{"Name":"requestCompletionCallback","Type":{"Kind":"ApiRef","Name":"IDeviceRequestCompletionCallback","TargetKind":"Com","Api":"Devices.DeviceAccess","Parents":[]},"Attrs":["In"]}
,{"Name":"cancelContext","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UIntPtr"}},"Attrs":["Out","Optional"]}
]
}
,{
"Name":"CancelOperation"
,"SetLastError":false
,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":null
,"Attrs":[]
,"Params":[
{"Name":"cancelContext","Type":{"Kind":"Native","Name":"UIntPtr"},"Attrs":["In"]}
]
}
]
}
,{
"Name":"ICreateDeviceAccessAsync"
,"Architectures":[]
,"Platform":null
,"Kind":"Com"
,"Guid":"3474628f-683d-42d2-abcb-db018c6503bc"
,"Interface":{"Kind":"ApiRef","Name":"IUnknown","TargetKind":"Com","Api":"System.Com","Parents":[]}
,"Methods":[
{
"Name":"Cancel"
,"SetLastError":false
,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":null
,"Attrs":[]
,"Params":[
]
}
,{
"Name":"Wait"
,"SetLastError":false
,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":null
,"Attrs":[]
,"Params":[
{"Name":"timeout","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]}
]
}
,{
"Name":"Close"
,"SetLastError":false
,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":null
,"Attrs":[]
,"Params":[
]
}
,{
"Name":"GetResult"
,"SetLastError":false
,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":null
,"Attrs":[]
,"Params":[
{"Name":"riid","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Guid"}},"Attrs":["In","Const"]}
,{"Name":"deviceAccess","Type":{"Kind":"PointerTo","Child":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}}},"Attrs":["Out","ComOutPtr"]}
]
}
]
}
]
,"Functions":[
{
"Name":"CreateDeviceAccessInstance"
,"SetLastError":false
,"DllImport":"deviceaccess"
,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":null
,"Attrs":[]
,"Params":[
{"Name":"deviceInterfacePath","Type":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In","Const"]}
,{"Name":"desiredAccess","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]}
,{"Name":"createAsync","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"ICreateDeviceAccessAsync","TargetKind":"Com","Api":"Devices.DeviceAccess","Parents":[]}},"Attrs":["Out","ComOutPtr"]}
]
}
]
,"UnicodeAliases":[
]
}