CH341SetDeviceNotify is a function that requires three arguments. For example:
void CALLBACK MyNotifyRoutine( ULONG iEventStatus )
{
//
}
. . . .
ULONG iIndex = 0; // probably it is zero
PCHAR iDeviceID = ???; // use the device's ID
mPCH341_NOTIFY_ROUTINE iNotifyRoutine = &MyNotifyRoutine;
if (CH341SetDeviceNotify( iIndex, iDeviceID, iNotifyRoutine))
{
cout << "done";
}