| 941 | } |
| 942 | |
| 943 | void Shutdown_Chat(void) |
| 944 | { |
| 945 | /* |
| 946 | /////AtlUnadvise(pChat, IID_IChatEvent, dwChatAdvise); |
| 947 | |
| 948 | IConnectionPoint *pConnectionPoint=nullptr; |
| 949 | IConnectionPointContainer *pContainer=nullptr; |
| 950 | HRESULT hRes; |
| 951 | |
| 952 | hRes=pChat->QueryInterface(IID_IConnectionPointContainer,(void**)&pContainer); |
| 953 | _ASSERTE(SUCCEEDED(hRes)); |
| 954 | hRes=pContainer->FindConnectionPoint(IID_IChatEvent,&pConnectionPoint); |
| 955 | _ASSERTE(SUCCEEDED(hRes)); |
| 956 | pConnectionPoint->Unadvise(dwChatAdvise); |
| 957 | |
| 958 | pChat->Release(); |
| 959 | |
| 960 | /////delete(g_pChatSink); This appears to be bad.... |
| 961 | // ADD g_pChatSink->Release(); |
| 962 | // ADD pConnectionPoint->Release(); |
| 963 | // ADD pContainer->Release(); |
| 964 | */ |
| 965 | } |
| 966 | |
| 967 | |
| 968 | |