Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
读取事件通知。
public ul_bool ULGetNotification( SQLCA * sqlca, char const * queue_name, char * event_name_buf, ul_length event_name_buf_len, ul_u_long wait_ms )
sqlca 指向 SQLCA 的指针。
queue_name 要读取的队列,或者对于缺省连接队列为 NULL。
event_name_buf 保存事件名称的缓冲区。
event_name_buf_len 缓冲区的大小(以字节为单位)。
wait_ms 返回前的等待(阻塞)时间。
成功时返回 true;失败时返回 false。
此调用将阻塞直到收到通知或给定等待时期到期。要进行无限期的等待,将 UL_READ_WAIT_INFINITE 传递给 wait_ms。要取消等待,发送另一通知到给定队列或使用 CancelGetNotification()。读取通知后,使用 GetNotificationParameter() 按名称来检索其它参数。