Re: How to stop WZC Service in XP-SP2

Tech-Archive recommends: Fix windows errors by optimizing your registry



Thanks a lot! Will bug you again if I get problems in implementing that :-)

-John.

"Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx> wrote in message
news:#93UfvMQFHA.3196@xxxxxxxxxxxxxxxxxxxxxxx
> That from wzcapi.h :
>
> //---------------------------------------
>
> // [P]INTF_ENTRY: contains everything an RPC client needs to know
>
> // about an interface. It is used in conjunction with RpcQueryInterface.
>
> // Flags below are to be used to specify what info is queried for the
>
> // interface. Guid field is not covered since this is the key of the
>
> // structure so it has to be specified eather way.
>
> typedef struct
>
> {
>
> #if defined(MIDL_PASS)
>
> [string] LPWSTR wszGuid;
>
> #else
>
> LPWSTR wszGuid;
>
> #endif
>
> #if defined(MIDL_PASS)
>
> [string] LPWSTR wszDescr;
>
> #else
>
> LPWSTR wszDescr;
>
> #endif
>
> ULONG ulMediaState;
>
> ULONG ulMediaType;
>
> ULONG ulPhysicalMediaType;
>
> INT nInfraMode;
>
> INT nAuthMode;
>
> INT nWepStatus;
>
> DWORD dwCtlFlags; // control flags (see INTFCTL_* defines)
>
> DWORD dwCapabilities; // capabilities flags (see INTFCAP_* defines)
>
> RAW_DATA rdSSID; // encapsulates the SSID raw binary
>
> RAW_DATA rdBSSID; // encapsulates the BSSID raw binary
>
> RAW_DATA rdBSSIDList; // encapsulates one WZC_802_11_CONFIG_LIST structure
>
> RAW_DATA rdStSSIDList; // encapsulates one WZC_802_11_CONFIG_LIST
structure
>
> RAW_DATA rdCtrlData; // data for various control actions on the interface
>
> #ifdef UNDER_CE
>
> BOOL bInitialized; // To track caller that freeing
>
> // the same structure more than one time..
>
> #endif
>
> DWORD nWPAMCastCipher;
>
> } INTF_ENTRY, *PINTF_ENTRY;
>
> "John K Gummadi" <john@xxxxxxxxxx> wrote in message
> news:O%234FBsMQFHA.576@xxxxxxxxxxxxxxxxxxxxxxx
> > Thanks Akardy,
> >
> > I have read that topic and what I need is the basic structure itself.
This
> > is what you mentioned there:
> > typedef struct {
> > // all data here
> > BYTE various_extensions[12];
> > } INTF_ENTRY;
> >
> > Can you please give me the original structure (including "all data")
> > please?
> >
> > Thanks,
> >
> > John.
> >
> >
> > "Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx> wrote in message
> > news:OrYVUnMQFHA.4020@xxxxxxxxxxxxxxxxxxxxxxx
> >> wzcsapi.h in CE you can have only if you have platform builder and not
> >> eVC
> >> (eVT ) and that the same for XP up to SP2 , where the struct was
changed
> >> ,
> >> look at
> >>
> >
http://groups-beta.google.com/group/microsoft.public.win32.programmer.networ
> >
ks/browse_thread/thread/8ca9722da4870f0a/a925a934bc215987?q=arkadyf+INTF_ENT
> > RY&rnum=2#a925a934bc215987
> >> Arkady
> >>
> >> "John K Gummadi" <john@xxxxxxxxxx> wrote in message
> >> news:eD3M12DQFHA.3928@xxxxxxxxxxxxxxxxxxxxxxx
> >> > Hello All,
> >> >
> >> > I'm working on a WiFi tool that scans, connects to accesspoints,
etc.,
> > So
> >> > far on XP SP1, I'm able to stop WZC before my app (by simply
executing
> >> > "net
> >> > stop wzcsvc"). It stops successfully and I'm able to get handle to
the
> >> > WLAN
> >> > adapter and I could send different commands to set WEP key, connect,
> > etc.,
> >> >
> >> > OK, now when I do the same in SP2 machine, though the WZC service
> > appears
> >> > have stopped, I can't get IOCTL_NDISUIO_OPEN_DEVICE to work with
> >> > DeviceIOControl. I get some error that says something like it is in
use
> >> > already. And I read in newgroups that from SP2, microsoft stopped
> > allowing
> >> > people from stopping the service. And also came to know that it is
> >> > possible
> >> > to stop it using WZCQueryInterface and WZCSetInterface. Though I have
> > the
> >> > prototypes of these two functions, I'm unable to get the definition
of
> >> > INTF_ENTRY. I searched google for "wzcsapi.h" (where i hope to find
the
> >> > definition of INTF_ENTRY) without any luck. I don;t have WinCE
> >> > installed
> >> > on
> >> > my machine. Can someone send me "wzcsapi.h" please? If not, atleast
> >> > definition of INTF_ENTRY.
> >> >
> >> > Any suggestions, pointers, source-code samples will be of great help.
> >> >
> >> > Thanks,
> >> >
> >> > John.
> >> >
> >> >
> >> >
> >>
> >>
> >
> >
>
>


.



Relevant Pages

  • Re: How to stop WZC Service in XP-SP2
    ... >> LPWSTR wszGuid; ... >> ULONG ulMediaState; ... >> INT nInfraMode; ... >>> Arkady ...
    (microsoft.public.win32.programmer.networks)
  • Re: error from mfilename
    ... typedef struct tagTRANSMITTER_CONFIGURATION ... PCIBIRD_API int InitializeBIRDSystem; ... Parameters Passed: USHORT sensorID, ...
    (comp.soft-sys.matlab)
  • [PATCH 1/2] Char: nozomi, Lindent the code
    ... +static const int nzdebug = 0; ... u8 port; ...
    (Linux-Kernel)
  • [LONG] help with old source code from book
    ... int cols, int magic_number); ... scale = 1.0; ... reads mesh data into a mesh structure * ...
    (comp.lang.c)
  • Re: access violation
    ... I didn't find any access violation on running your code in VC 6.0 compiler. ... typedef struct tagTIMESTAMP_STRUCT ... unsigned int fraction; ... > unsigned char u8; ...
    (microsoft.public.vc.language)