Re: How to find address of OEMAddressTable?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: K. S. Huang (ks_huang_at_alphanetworks.com.remove.this)
Date: 05/29/04


Date: Sat, 29 May 2004 22:13:45 +0800

Sorry, in user-mode, I just find out taht
you may use the LockPages API to query its physical address...

"K. S. Huang" <ks_huang@dlink.com.tw.remove.this> 撰寫於郵件新聞
:#um4QSXREHA.3616@TK2MSFTNGP11.phx.gbl...
> if you are writing a NDIS driver, you may use the
> NdisMStartBufferPhysicalMapping to translate the NDIS Buffer Virtual
Address
> to Physical Address for DMA controller.
>
> But for other drivers or User-Mode APPs, there is no equivlant funtion!!
>
> But if you do need this feature, there might be a way to do that...
> WinCE User-Mode virtual address space is 2GB split into 64 32M sections of
> 512 64K blocks of 16 4K pages.
>
> Virtual address format:
> 3322222 222221111 1111 110000000000
> 1098765 432109876 5432 109876543210
> zSSSSSS BBBBBBBBB PPPP oooooooooooo
>
> And the kernel will keep a SectionTable that maintain all of the info. for
> the VA and Phy.
> So you could walk through the SectionTable to find out the mapping
> relationship of a specific VA.
> In user mode, you can access the SectionTable by accessing the Section
table
> pointer "UserKInfo[KINX_SECTIONS]".
>
> for further infomation, you may refer the source code of ce-shell that
under
> $(_WINCEROOT)\PRIVATE\WINCEOS\COREOS\SHELL\shell.c
>
>
> "msnews.microsoft.com" <preedee.p@eprofessional.co.th> 撰寫於郵件新聞
> :#m9LVUTREHA.1644@TK2MSFTNGP09.phx.gbl...
> > to guru
> >
> > if i wanna convert pointer of my function to physical address , is it
> > possible? how can i do? but i don't have platform builder
> > ex.
> > LPVOID x = GetPhysicalAddress(MyFunction);
> >
> > best regard.
> > if you have way may be you can send detail to me at nick@phiyada.com
> >
> > "Bruce Eitman (eMVP)" <beitmannospam@nospam.neo.rr.com> wrote in message
> > news:uzhLpHSREHA.1448@TK2MSFTNGP11.phx.gbl...
> > > Try looking at the kernel source code. OEMIoControl
> > >
> > > --
> > > Bruce Eitman (eMVP)
> > > Senior Engineer
> > >
> > >
> > >
> >
> >
>
>



Relevant Pages

  • Re: how to notify?
    ... be filled with data and completed by NDIS driver is another solution. ... Maxim Shatskih, Windows DDK MVP ... "serge" wrote in message ... > NdisMRegisterDevice and query it in a loop from user-mode program. ...
    (microsoft.public.development.device.drivers)
  • Re: TCP/IP
    ... vielleicht hilft Dir das: ... You are developing an application that requires finding out the NDIS driver ... so you can query the driver to find if there is a ... adapters bound to tcp/ip) can be found from the registry key ...
    (microsoft.public.de.german.entwickler.dotnet.vb)
  • Re: exception-handlers
    ... so I can install my own handler in user-mode? ... Does writing a kernel module qualify as a way? ...
    (comp.os.linux.development.system)
  • Re: Read wlan signal strength from application
    ... instead of macaddress OID you need RSSI ... You should be able to query the wlan NIC's NDIS driver using the NDISUIO interface. ...
    (microsoft.public.win32.programmer.networks)