Re: Problem with UnbindFrom()
- From: "Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx>
- Date: Tue, 9 Aug 2005 10:19:11 +0200
Did you try to do the same with BindView ( src\network\config\bindview ) ?
Arkady
"Peter" <Peter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:16F463D4-C494-4CE5-BDBF-AFDCDC71181C@xxxxxxxxxxxxxxxx
>I have problem with unbinding IM driver from all above and bellow
>components.
> I have tried it by this way:
>
> INetCfgComponent* cfgCompBuff[256];
> INetCfgComponent* pncc=NULL;
> INetCfgComponentBindings* inetCfgCompBindings = NULL;
> INetCfgBindingPath* pncbp=NULL;
>
> hr = pnc->FindComponent(szComponentId, &pncc);
>
> while (S_OK == (hr = HrGetNextBindingPathToDelete(pncc, EBP_BELOW,
> &pncbp, &inetCfgCompBindings)))
> {
> ZeroMemory(cfgCompBuff, sizeof(cfgCompBuff));
> hr = pnc->EnumComponents(&GUID_DEVCLASS_NET, &enumCfgComp);
> if(hr == S_OK) {
> hr = enumCfgComp->Next(256, (INetCfgComponent**)&cfgCompBuff,
> &celtFetched);
> for(i = 0; i < celtFetched; i++) {
> hr = inetCfgCompBindings->UnbindFrom(cfgCompBuff[i]);
> }
> }
> enumCfgComp->Release();
> ReleaseObj(pncbp);
> }
> while (S_OK == (hr = HrGetNextBindingPathToDelete(pncc, EBP_ABOVE,
> &pncbp, &inetCfgCompBindings)))
> {
> ZeroMemory(cfgCompBuff, sizeof(cfgCompBuff));
> hr = pnc->EnumComponents(&GUID_DEVCLASS_NETTRANS, &enumCfgComp);
> if(hr == S_OK) {
> hr = enumCfgComp->Next(256, (INetCfgComponent**)&cfgCompBuff,
> &celtFetched);
> for(i = 0; i < celtFetched; i++) {
> hr = inetCfgCompBindings->UnbindFrom(cfgCompBuff[i]);
> }
> }
> enumCfgComp->Release();
> ReleaseObj(pncbp);
> }
>
>
> Return values from UnbindFrom() functions are S_OK in case that binding
> exist,
> but when I see Properties dialog of unbinded network connection - check
> box
> is still there and IM driver is functional.
> What is wrong with that way of unbinding ?
>
> Peter
.
- Follow-Ups:
- Re: Problem with UnbindFrom()
- From: Peter
- Re: Problem with UnbindFrom()
- References:
- Problem with UnbindFrom()
- From: Peter
- Problem with UnbindFrom()
- Prev by Date: Re: ethernet raw sockets
- Next by Date: Re: Telephony service will not start, error 1053
- Previous by thread: Problem with UnbindFrom()
- Next by thread: Re: Problem with UnbindFrom()
- Index(es):
Relevant Pages
|