home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!lax.pe-nelson.com!lax!twbrown
- From: twbrown@PE-Nelson.COM (Tom W. Brown)
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: Re: HELP!!! Problem with acessing system memory
- Message-ID: <689@lax.lax.pe-nelson.com>
- Date: 10 Nov 92 18:14:50 GMT
- References: <1992Nov8.224019.28221@rhrk.uni-kl.de>
- Sender: news@lax.pe-nelson.com
- Organization: PE-Nelson
- Lines: 41
-
- In article <1992Nov8.224019.28221@rhrk.uni-kl.de>, baum@kirk.es.go.dlr.de (Peter Baumann) writes:
- |> Hi!
- |>
- |> I have a problem. I want to access the memory of a frame grabber installed
- |> to my system (BC++, Windows 3.1). I found a note in a programmers guide that
- |> something like this should be possible:
- |>
- |> unsigned char far * fp;
- |> fp = MAKELONG(0,&_E000H);
- |>
- |> Then I have a pointer to memory location D0000 where the frame grabber is.
- |> __E000H is supposed to be a constant defined for windows. I CANT FIND IT!!!
- |> Does anybody out there have a def for this constant or can I access the
- |> memory in a different manner?
- |>
-
- The selector __E000H is an exported symbol from KERNEL, you have to provide
- a declaration for it:
-
- extern WORD __E000H;
- .
- .
- .
- {
- unsigned char far *fp = MAKELONG(), &__E000H);
- .
- .
- .
- }
-
- If this doesn't work (I've only used it for accessing __0000H locations)
- you may want to look into the AllocSelector(), SetSelectorBase(),
- SetSelectorLimit(), and FreeSelector() calls which, although I've not used,
- I've heard will work also.
-
-
- ----------------------------------------------------------------------------
- Tom Brown | "'ow d'you know 'e's a king?
- PE Nelson Systems | 'cause 'e 'asn't got shit all over 'im!"
- twbrown@pe-nelson.com | Monty Python and the Holy Grail
- ----------------------------------------------------------------------------
-