![]() |
|
|
|||||||
![]() |
Wireless Networking - getting the name of the wifi-card for wzcqueryinterface and wzcsetinterface |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Thank you both for the responses.
I will try them out. regards Laery "Laery" <> wrote in message news: om... > Hi, > > How can I find the name of the active wifi-card on ppc2003? > I need it to set the network-mode from ad hoc to accesspoint. > WZCSetInterface needs an INTF_ENTRY.wszGuid which is the devicename? > > I think I've got al the parts > With > WLanInfo.IntfEntry.dwCtlFlags & INTFCTL_CM_MASK > you get the current value > > with > if(iSelection == 2) > { > // Computer-to-computer > s_mode = Ndis802_11IBSS; > } > else if(iSelection == 1) > { > // infrastructure (access point) network > s_mode = Ndis802_11Infrastructure; > } > else if(iSelection == 0)\ > { > // Any network (access point preferred) > s_mode = Ndis802_11AutoUnknown; > } > > s_pWLanInfo->dwCtlFlags &= ~INTFCTL_CM_MASK; > s_pWLanInfo->dwCtlFlags |= (((DWORD) s_mode) & INTFCTL_CM_MASK); > > you reset and replace the value > > with > WZCQueryInterface( LPWSTR pSrvAddr, > DWORD dwInFlags, > PINTF_ENTRY pIntf, > LPDWORD pdwOutFlags > ) > you get the current settings > > with > you write the settings > WZCSetInterface(NULL, > s_pWLanInfo->dwCtlFlags,&pWLanInfo->IntfEntry,&dwOutFlags) > > > But I still need a pSrvAddr and an IntfEntry.wszGuid > How can I get them? > > I'm using evc4 > Regards > Laery Laery |
|
|
|
|
#2 |
|
Posts: n/a
|
Please keep the thread together. Disconnected responses like this clutter
up the newsgroup. Paul T. "Laery" <> wrote in message news: m... > Thank you both for the responses. > > I will try them out. > > regards > Laery > > "Laery" <> wrote in message > news: om... >> Hi, >> >> How can I find the name of the active wifi-card on ppc2003? >> I need it to set the network-mode from ad hoc to accesspoint. >> WZCSetInterface needs an INTF_ENTRY.wszGuid which is the devicename? >> >> I think I've got al the parts >> With >> WLanInfo.IntfEntry.dwCtlFlags & INTFCTL_CM_MASK >> you get the current value >> >> with >> if(iSelection == 2) >> { >> // Computer-to-computer >> s_mode = Ndis802_11IBSS; >> } >> else if(iSelection == 1) >> { >> // infrastructure (access point) network >> s_mode = Ndis802_11Infrastructure; >> } >> else if(iSelection == 0)\ >> { >> // Any network (access point preferred) >> s_mode = Ndis802_11AutoUnknown; >> } >> >> s_pWLanInfo->dwCtlFlags &= ~INTFCTL_CM_MASK; >> s_pWLanInfo->dwCtlFlags |= (((DWORD) s_mode) & INTFCTL_CM_MASK); >> >> you reset and replace the value >> >> with >> WZCQueryInterface( LPWSTR pSrvAddr, >> DWORD dwInFlags, >> PINTF_ENTRY pIntf, >> LPDWORD pdwOutFlags >> ) >> you get the current settings >> >> with >> you write the settings >> WZCSetInterface(NULL, >> s_pWLanInfo->dwCtlFlags,&pWLanInfo->IntfEntry,&dwOutFlags) >> >> >> But I still need a pSrvAddr and an IntfEntry.wszGuid >> How can I get them? >> >> I'm using evc4 >> Regards >> Laery Paul G. Tobey [eMVP] |
|
![]() |
| Thread Tools | Search this Thread |
|
|