Re: context questions



The driver is always running in device.exe (unless you specifically do a
LoadLibrary) so the memory is still accessible to you.

Are you having a problem that you need to solve or is this just
philisophical?

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member


"telus" <tobeno1@xxxxxxxxx> wrote in message
news:qNHwe.100195$9A2.18194@xxxxxxxxxxx
> Hi,
>
> I'm developing a driver for PPC 2003. The driver is loaded in device.exe
> address space and is located in slot 0. During Driver_Init I allocate a
> memory and save a pointer in a global variable in the driver. Whenever an
> application opens the driver, I need to save some information in the
memory.
>
> 1) In Driver_Open call of the driver, I'm in the application context, not
> device.exe context, right?
> 2) If 1) is true, how can I access the memory which is allocated in
> Driver_Init which is in device.exe context? Do I have to add the pointer
> with a base address of the slot of device.exe and call MapPtrToProcess?
>
> TIA
>
>


.



Relevant Pages

  • Re: NativeOverlapped, does it work??
    ... You need to keep that fixed in memory, and if you are using a fixed statement the memory location of the structure is subject to change. ... Instead, I would pin the structure (and then get the unsafe pointer to the structure), or marshal it to unmanaged memory, where you can hold onto the pointer for the life of the call. ... I'm trying to read some messages from a kernel mode mini-filter driver. ...
    (microsoft.public.dotnet.languages.csharp)
  • PROBLEM: Memory leak in -test9?
    ... There seems to be a memory leak in 2.6.0-test9. ... 0cf8-0cff: PCI conf1 ... 16 nodes reported by PnP BIOS; 16 recorded by driver ... ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 ...
    (Linux-Kernel)
  • redhat 7.3 installation
    ... Linux agpgart interface v0.99 Jeff Hartmann ... agpgart: Maximum main memory to use for agp memory: 202M ... PCI: PCI BIOS revision 2.10 entry at 0xf0900, ... Serial driver version 5.05c with MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI ISAPNP enabled ...
    (RedHat)
  • PROBLEM REMAINS: [sata_nv ADMA breaks ATAPI] Crash on accessing DVD-RAM
    ... My system has 4G of physical memory, but when I use mem=4096M kernel sees only ... Port Connector Information ... Internal Connector Type: On Board IDE ... Real Time Clock Driver v1.12ac ...
    (Linux-Kernel)
  • Re: blue screen computer shuts down.......
    ... of files, as well as errors in the event viewer, this thing is driving me ... Driver Development Tools: Windows DDK ... A memory access violation occurred. ... If exception code 0x80000003 occurs, ...
    (microsoft.public.windowsxp.help_and_support)