I'm using like below.
__hook(&CwclBluetoothDevice::OnPINRequest, m_pDevice, &BluetoothDll::OnPINRequest);
__hook(&CwclBluetoothDevice::OnNumericComparison, m_pDevice, &BluetoothDll::OnComparison);
__hook(&CwclBluetoothDevice::OnPasskeyNotification, m_pDevice, &BluetoothDll::OnPasskeyNotify);
__hook(&CwclBluetoothDevice::OnPasskey, m_pDevice, &BluetoothDll::OnPasskey);
m_pDevice->SetAddress(pszString);
int iRes = m_pDevice->Pair(*m_pRadio); ==> Here I will not go to the next step.
Related hook message does not come across.
__unhook(&CwclBluetoothDevice::OnPINRequest, m_pDevice, &BluetoothDll::OnPINRequest);
__unhook(&CwclBluetoothDevice::OnNumericComparison, m_pDevice, &BluetoothDll::OnComparison);
__unhook(&CwclBluetoothDevice::OnPasskeyNotification, m_pDevice, &BluetoothDll::OnPasskeyNotify);
__unhook(&CwclBluetoothDevice::OnPasskey, m_pDevice, &BluetoothDll::OnPasskey);