Go Back   Velocity Reviews > Newsgroups > Wireless Networking
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

Wireless Networking - getting the name of the wifi-card for wzcqueryinterface and wzcsetinterface

 
Thread Tools Search this Thread
Old 01-20-2005, 07:39 AM   #1
Default getting the name of the wifi-card for wzcqueryinterface and wzcsetinterface


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
  Reply With Quote
Old 01-20-2005, 05:03 PM   #2
Paul G. Tobey [eMVP]
 
Posts: n/a
Default Re: getting the name of the wifi-card for wzcqueryinterface and wzcsetinterface
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]
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46