Re: Looking for the simplest method to send some bytes from mirror display driver to application?

From: Brian Catlin (brianc_at_sannas.org.bad)
Date: 08/23/04


Date: Mon, 23 Aug 2004 14:14:47 -0700


"Calvin Guan" <cguan@pleasenospam.ati.com> wrote in message
news:%23msOuYUiEHA.596@TK2MSFTNGP11.phx.gbl...
> Good point. I think at the point driver's DrvEscape got called by win32k,
> the session space is valid.

Sure, but if the variable was set during driver initialization, then it won't be

 -Brian

Brian Catlin, Sannas Consulting 310-944-9492
Windows Network, Video, WDM Device Driver Training & Consulting
See WWW.AZIUS.COM.bad for courses and scheduling
REMOVE .BAD FROM EMAIL AND WEB ADDRESS

>
> Thanks,
> Calvin
> -
> Calvin Guan Software Engineer
> ATI Technologies Inc. www.ati.com
> "Brian Catlin" <brianc@sannas.org.bad> wrote in message
> news:uuFc6JUiEHA.1656@TK2MSFTNGP09.phx.gbl...
>> "Calvin Guan" <cguan@pleasenospam.ati.com> wrote in message
>> news:e3LOS1TiEHA.356@tk2msftngp13.phx.gbl...
>> > "lucy" <losemind@yahoo.com> wrote in message
>> > news:OKyq5gTiEHA.1040@TK2MSFTNGP09.phx.gbl...
>> >> Can I use global variable in mirror driver?
>> >
>> > Yes, you can.
>>
>> Be careful with global variables in display (mirror) drivers!!! The will
> be
>> allocated in session space - not system-wide memory. This means that the
>> variables will only be available when the session is mapped. For your
>> application, this probably won't be a problem, but I've had students who
> have
>> run into this problem, when they try to access global variables that were
>> defined in a different session
>>
>> -Brian
>>
>> Brian Catlin, Sannas Consulting 310-944-9492
>> Windows Network, Video, WDM Device Driver Training & Consulting
>> See WWW.AZIUS.COM.bad for courses and scheduling
>> REMOVE .BAD FROM EMAIL AND WEB ADDRESS
>>
>>
>
>



Relevant Pages

  • Re: Looking for the simplest method to send some bytes from mirror display driver to application?
    ... >> Can I use global variable in mirror driver? ... Be careful with global variables in display drivers!!! ... variables will only be available when the session is mapped. ... Windows Network, Video, WDM Device Driver Training & Consulting ...
    (microsoft.public.development.device.drivers)
  • Re: global variables
    ... Global variables are pretty much the variables you shouldn't use at all if you plan on writing PHP applications that are stored in more than like three files. ... Every PHP script on a webserver is started after a request is made. ... Cookies data has "session persistence" or even "multi-visit persistence", depending on the settings in the visitor's browser and the expiration time you set for the cookie. ...
    (comp.lang.php)
  • Re: Advice on mod_lisp-based web application.
    ... I have much state in global variables, ... structure that includes, along with the variable value, a session id. ... dependent on what you need to track, but essentially some sort of structure ... tcross rapttech dot com dot au ...
    (comp.lang.lisp)
  • Problem with session variables on Mac
    ... Global variables are OFF. ... I start a session at the very ... some debugging help. ... Jim Feldman ...
    (php.general)
  • setting sessions in a form
    ... I'm just starting to use session with my forms in an attempt to lock ... down some of the less secure issues with global variables and such. ... The form process is pretty basic - a simple registration form with a ...
    (php.general)

Loading