hi all,
i am facing a problem wrt NDISUIO protocol available alongwith XPDDK.
These are the defnitions defined in nuiouser.h

****************************************************************************
****
define FSCTL_NDISUIO_BASE FILE_DEVICE_NETWORK

#define _NDISUIO_CTL_CODE(_Function, _Method, _Access) \
CTL_CODE(FSCTL_NDISUIO_BASE, _Function, _Method, _Access)

#define IOCTL_NDISUIO_OPEN_DEVICE \
_NDISUIO_CTL_CODE(0x200, METHOD_BUFFERED, FILE_ANY_ACCESS)

#define IOCTL_NDISUIO_QUERY_OID_VALUE \
_NDISUIO_CTL_CODE(0x201, METHOD_BUFFERED, FILE_ANY_ACCESS)

#define IOCTL_NDISUIO_SET_OID_VALUE \
_NDISUIO_CTL_CODE(0x205, METHOD_BUFFERED, FILE_ANY_ACCESS)

#define IOCTL_NDISUIO_SET_ETHER_TYPE \
_NDISUIO_CTL_CODE(0x202, METHOD_BUFFERED, FILE_ANY_ACCESS)

#define IOCTL_NDISUIO_QUERY_BINDING \
_NDISUIO_CTL_CODE(0x203, METHOD_BUFFERED, FILE_ANY_ACCESS)

#define IOCTL_NDISUIO_BIND_WAIT \
_NDISUIO_CTL_CODE(0x204, METHOD_BUFFERED, FILE_ANY_ACCESS)

****************************************************************************
********

now my problem is that in _NDISUIO_CTL_CODE(0x200, METHOD_BUFFERED,
FILE_ANY_ACCESS)
where does this Function value 0x200 coming from ,
and also i want to define my own IOCTL code for Closing the device , what
should be the code.
...where do all these function hexadecimalk values coming from

TIA
tarun

Re: regarding NDISUIO control codes by Marc

Marc
Thu Sep 04 01:21:14 CDT 2003

"tarundeep singh kalra" <tkalra@gric.com> wrote in message
news:uo7gxcqcDHA.620@TK2MSFTNGP11.phx.gbl...
> hi all,
> i am facing a problem wrt NDISUIO protocol available alongwith XPDDK.
> These are the defnitions defined in nuiouser.h
>
> ...
>
> #define _NDISUIO_CTL_CODE(_Function, _Method, _Access) \
> CTL_CODE(FSCTL_NDISUIO_BASE, _Function, _Method, _Access)
>
> ...
>
> now my problem is that in _NDISUIO_CTL_CODE(0x200, METHOD_BUFFERED,
> FILE_ANY_ACCESS)
> where does this Function value 0x200 coming from ,

Microsoft assigned it. See "Defining I/O Control Codes" in the DDK help.

> and also i want to define my own IOCTL code for Closing the device , what
> should be the code.

A value of 0x800 or greater for the Function value.

> ...where do all these function hexadecimalk values coming from

They are either assigned by MS or you.

Marc Reinig
System Solutions



Re: regarding NDISUIO control codes by bburgin

bburgin
Thu Sep 04 01:38:05 CDT 2003

------=_NextPart_0001_FCCDE8E9
Content-Type: text/plain
Content-Transfer-Encoding: 7bit



Be aware that the IOCTLs for NDISUIO changed between XP RTM and XP SP1 from
ANY_ACCESS to (READ | WRITE); however, you should not be using the in-box
NDISUIO and should be building your own driver based on the NDISUIO sample.

Bryan S. Burgin
bburgin@microsoft.com

This posting is provided "AS IS" with no warranties, and confers no rights.
------=_NextPart_0001_FCCDE8E9
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20
\par
\par Be aware that the IOCTLs for NDISUIO changed between XP RTM and XP SP1 from ANY_ACCESS to (READ | WRITE); however, you should not be using the in-box NDISUIO and should be building your own driver based on the NDISUIO sample.
\par
\par Bryan S. Burgin
\par bburgin@microsoft.com
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par }
------=_NextPart_0001_FCCDE8E9--


Re: regarding NDISUIO control codes by tarundeep

tarundeep
Thu Sep 04 03:39:01 CDT 2003

Thanks a lot Marc.

Are these standard IO Control Codes Documented ?
regards
Tarun

"Marc Reinig" <nospam@nospam.com> wrote in message
news:OQOqFzqcDHA.2580@TK2MSFTNGP12.phx.gbl...
> "tarundeep singh kalra" <tkalra@gric.com> wrote in message
> news:uo7gxcqcDHA.620@TK2MSFTNGP11.phx.gbl...
> > hi all,
> > i am facing a problem wrt NDISUIO protocol available alongwith XPDDK.
> > These are the defnitions defined in nuiouser.h
> >
> > ...
> >
> > #define _NDISUIO_CTL_CODE(_Function, _Method, _Access) \
> > CTL_CODE(FSCTL_NDISUIO_BASE, _Function, _Method, _Access)
> >
> > ...
> >
> > now my problem is that in _NDISUIO_CTL_CODE(0x200, METHOD_BUFFERED,
> > FILE_ANY_ACCESS)
> > where does this Function value 0x200 coming from ,
>
> Microsoft assigned it. See "Defining I/O Control Codes" in the DDK help.
>
> > and also i want to define my own IOCTL code for Closing the device ,
what
> > should be the code.
>
> A value of 0x800 or greater for the Function value.
>
> > ...where do all these function hexadecimalk values coming from
>
> They are either assigned by MS or you.
>
> Marc Reinig
> System Solutions
>
>