Re: Wince protect resources by Mike
Mike
Tue Jul 26 08:50:46 CDT 2005
Hi Dean,
thanks for your help. I will study the help to get more information. If it
is not possible I will have to find another way to make something similar.
Best regards,
Mike Engel
"Dean Ramsier" <ramsiernospam@nospam.com> escribió en el mensaje
news:OlE4dWekFHA.2852@TK2MSFTNGP14.phx.gbl...
> I'm not familiar with the linux calls, but there is no way to prevent code
> from accessing a physical resource if it wants to. CE does have an IO
> Resource Manager, you may be able to use that to manage some resources
that
> you're interested in. Note that all parties would have to use the
Resource
> Manager APIs, it still doesn't stop other code from accessing via
> VirtualAlloc/VirtualCopy. See the PB help for details on the IO Resource
> Manager.
>
> --
> Dean Ramsier - eMVP
>
>
> "Mike Engel" <anadi@reterioja.com> wrote in message
> news:uQNWLPekFHA.3756@TK2MSFTNGP15.phx.gbl...
> > Hi Dean,
> >
> > thanks for your reply I will have a look into the help.
> >
> > I think it was a litte bit to general that what I wrote. I would like
have
> > something similar like in Linux (request_region). Thus, drivers need to
> > ensure that some resources are available and not already used. This
could
> be
> > maybe something that I need to implement, becausse Windows CE doesn't
> > support that. I didn't had much information of that, that's why I have
ask
> > here.
> >
> > Best regards,
> >
> > Mike Engel
> >
> > "Dean Ramsier" <ramsiernospam@nospam.com> escribió en el mensaje
> > news:#S8PRJekFHA.1464@TK2MSFTNGP14.phx.gbl...
> > > No, there is no protection. You can implemented a trusted system, and
> > lock
> > > out applications that aren't built into the ROM from using various
> system
> > > level APIs (including VirtualAlloc/VirtualCopy). That will prevent
> > external
> > > apps from accessing your resources. But, you can't prevent other
> trusted
> > > apps/drivers (anything built in) from making these calls. See PB help
> for
> > > more details on this.
> > >
> > > It's up to you to implement a mechanism to handle shared resources,
> > whatever
> > > makes sense for your system.
> > >
> > > --
> > > Dean Ramsier - eMVP
> > >
> > >
> > > "Mike Engel" <anadi@reterioja.com> wrote in message
> > > news:OonTZKckFHA.1968@TK2MSFTNGP14.phx.gbl...
> > > > Hi all,
> > > >
> > > > I have a general question. Is it possible under Windows CE to
protect
> > > > resources of the system, like GPIOs, or special memory areas?
> > > >
> > > > I wanted to protect some areas of the system, thus application can
> > access
> > > > them directly. On our platform all CPU resources are memory mapped
and
> > > with
> > > > a simple VirtualAlloc/VirtualCopy an application can have fully
access
> > to
> > > > that resources. Now I want to restrict that to have a better
control,
> > but
> > > do
> > > > not know exactly if it is possible under Windows CE.
> > > >
> > > > Thanks for any kind of help or advice.
> > > >
> > > > Best regards,
> > > >
> > > > Mike Engel
> > > >
> > > >
> > >
> > >
> >
> >
>
>