Provide information on service object. NOTE: The parameter RESERVED must not be used for any purpose as there are networking issues involved (as with any handle that goes over the network). This parameter will be implemented at a later date.
| 3484 | // involved (as with any handle that goes over the network). This parameter will be implemented at |
| 3485 | // a later date. |
| 3486 | ISC_STATUS API_ROUTINE isc_service_query(ISC_STATUS* userStatus, isc_svc_handle* handle, |
| 3487 | isc_resv_handle* /*reserved*/, USHORT sendItemLength, const SCHAR* sendItems, USHORT recvItemLength, |
| 3488 | const SCHAR* recvItems, USHORT bufferLength, SCHAR* buffer) |
| 3489 | { |
| 3490 | StatusVector status(userStatus); |
| 3491 | CheckStatusWrapper statusWrapper(&status); |
| 3492 | |
| 3493 | try |
| 3494 | { |
| 3495 | RefPtr<YService> service(translateHandle(services, handle)); |
| 3496 | |
| 3497 | service->query(&statusWrapper, sendItemLength, reinterpret_cast<const unsigned char*>(sendItems), |
| 3498 | recvItemLength, reinterpret_cast<const unsigned char*>(recvItems), |
| 3499 | bufferLength, reinterpret_cast<unsigned char*>(buffer)); |
| 3500 | } |
| 3501 | catch (const Exception& e) |
| 3502 | { |
| 3503 | e.stuffException(&statusWrapper); |
| 3504 | } |
| 3505 | |
| 3506 | return status[1]; |
| 3507 | } |
| 3508 | |
| 3509 | |
| 3510 | // Starts a service thread. |
nothing calls this directly
no test coverage detected