Lines Matching refs:pInst
75 DdeInstData* pInst = ImpGetInstData(); in CliCallback() local
76 DBG_ASSERT(pInst,"SVDDE:No instance data"); in CliCallback()
104 : DdeGetLastError( pInst->hDdeInstCli ); in CliCallback()
158 DdeInstData* pInst = ImpGetInstData(); in DdeConnection() local
159 if( !pInst ) in DdeConnection()
160 pInst = ImpInitInstData(); in DdeConnection()
161 pInst->nRefCount++; in DdeConnection()
162 pInst->nInstanceCli++; in DdeConnection()
163 if ( !pInst->hDdeInstCli ) in DdeConnection()
165 pImp->nStatus = DdeInitialize( &pInst->hDdeInstCli, in DdeConnection()
171 pInst->pConnections = new DdeConnections; in DdeConnection()
174 pService = new DdeString( pInst->hDdeInstCli, rService ); in DdeConnection()
175 pTopic = new DdeString( pInst->hDdeInstCli, rTopic ); in DdeConnection()
179 pImp->hConv = DdeConnect( pInst->hDdeInstCli,*pService,*pTopic, NULL); in DdeConnection()
181 pImp->nStatus = DdeGetLastError( pInst->hDdeInstCli ); in DdeConnection()
184 if ( pInst->pConnections ) in DdeConnection()
185 pInst->pConnections->Insert( this ); in DdeConnection()
198 DdeInstData* pInst = ImpGetInstData(); in ~DdeConnection() local
199 DBG_ASSERT(pInst,"SVDDE:No instance data"); in ~DdeConnection()
200 if ( pInst->pConnections ) in ~DdeConnection()
201 pInst->pConnections->Remove( this ); in ~DdeConnection()
203 pInst->nInstanceCli--; in ~DdeConnection()
204 pInst->nRefCount--; in ~DdeConnection()
205 if ( !pInst->nInstanceCli && pInst->hDdeInstCli ) in ~DdeConnection()
207 if( DdeUninitialize( pInst->hDdeInstCli ) ) in ~DdeConnection()
209 pInst->hDdeInstCli = NULL; in ~DdeConnection()
210 delete pInst->pConnections; in ~DdeConnection()
211 pInst->pConnections = NULL; in ~DdeConnection()
212 if( pInst->nRefCount == 0 ) in ~DdeConnection()
233 DdeInstData* pInst = ImpGetInstData(); in IsConnected() local
235 pImp->nStatus = pImp->hConv ? DMLERR_NO_ERROR : DdeGetLastError( pInst->hDdeInstCli ); in IsConnected()
263 DdeInstData* pInst = ImpGetInstData(); in GetConnections() local
264 DBG_ASSERT(pInst,"SVDDE:No instance data"); in GetConnections()
265 return *(pInst->pConnections); in GetConnections()
274 DdeInstData* pInst = ImpGetInstData(); in DdeTransaction() local
275 pName = new DdeString( pInst->hDdeInstCli, rItemName ); in DdeTransaction()
290 DdeInstData* pInst = ImpGetInstData(); in ~DdeTransaction() local
291 DdeAbandonTransaction( pInst->hDdeInstCli, rDde.pImp->hConv, nId ); in ~DdeTransaction()
307 DdeInstData* pInst = ImpGetInstData(); in Execute() local
323 rDde.pImp->nStatus = DdeGetLastError( pInst->hDdeInstCli ); in Execute()
339 DdeAbandonTransaction( pInst->hDdeInstCli, rDde.pImp->hConv, nId); in Execute()
347 : DdeGetLastError( pInst->hDdeInstCli ); in Execute()