473,699 Members | 2,385 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Direct Screen memory address?

Hi,

I am trying to get a direct pointer to the address of the screen ( something
like 0x0b00 in the happy DOS days ), how can I do that?
Should this be done in the kernel or it can also be done in the App layer?
Is there a contant base address to the screen memory?
What API should I use?

ThanX
Nadav
Nov 15 '05 #1
5 9463
Hi,

You just cannot do that and you should never ever think of writing Windows
programs this way. If you prefer good old screen memory manipulation, you
can look at DirectDraw and its surface objects enabling direct pixel byte
manipulation from your code.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Nadav" <not@today> wrote in message
news:uw******** ******@tk2msftn gp13.phx.gbl...
Hi,

I am trying to get a direct pointer to the address of the screen ( something like 0x0b00 in the happy DOS days ), how can I do that?
Should this be done in the kernel or it can also be done in the App layer?
Is there a contant base address to the screen memory?
What API should I use?

ThanX
Nadav


Nov 15 '05 #2
Well, Actually I am trying to implement my own screen capture algorithm,
this requires me to 'read' ( and not write ) the screen, getting a direct
memory pointer will give the best performance ( I Guess )...

What alternatives are there for getting a reference to the screen buffer?
Does DirectDraw enable direct screen bytes access or just IDirectDrawSurf ace
memory access?
Isn't DirectDraw is deprecated?

"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.c om> wrote
in message news:eJ******** ******@TK2MSFTN GP10.phx.gbl...
Hi,

You just cannot do that and you should never ever think of writing Windows
programs this way. If you prefer good old screen memory manipulation, you
can look at DirectDraw and its surface objects enabling direct pixel byte
manipulation from your code.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Nadav" <not@today> wrote in message
news:uw******** ******@tk2msftn gp13.phx.gbl...
Hi,

I am trying to get a direct pointer to the address of the screen (

something
like 0x0b00 in the happy DOS days ), how can I do that?
Should this be done in the kernel or it can also be done in the App layer? Is there a contant base address to the screen memory?
What API should I use?

ThanX
Nadav

Nov 15 '05 #3
DirectDraw isnt being updated, but the interfaces are supported.

DirectDraw and Direct3D provide for video memory access thru surfaces or
textures, respectively.

in protected mode and Win32, you cant do exactly what you are writing, those
were DOS addresses. while "something" is at those addresses for compat
reasons, it doesnt point to exactly what you need.

new times need new tools, its best to learn what the new way is to do this.

have you tried a google search on "directx screen capture" since this is a
frequent request I would be surprised if someone hadnt written and published
something on this.

the trick is getting into another processes video memory. in both windowed
and fullscreen-exclusive modes.

"Nadav" <not@today> wrote in message
news:eF******** *****@TK2MSFTNG P09.phx.gbl...
Well, Actually I am trying to implement my own screen capture algorithm,
this requires me to 'read' ( and not write ) the screen, getting a direct
memory pointer will give the best performance ( I Guess )...

What alternatives are there for getting a reference to the screen buffer?
Does DirectDraw enable direct screen bytes access or just IDirectDrawSurf ace memory access?
Isn't DirectDraw is deprecated?

"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.c om> wrote
in message news:eJ******** ******@TK2MSFTN GP10.phx.gbl...
Hi,

You just cannot do that and you should never ever think of writing Windows
programs this way. If you prefer good old screen memory manipulation, you can look at DirectDraw and its surface objects enabling direct pixel byte manipulation from your code.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Nadav" <not@today> wrote in message
news:uw******** ******@tk2msftn gp13.phx.gbl...
Hi,

I am trying to get a direct pointer to the address of the screen (

something
like 0x0b00 in the happy DOS days ), how can I do that?
Should this be done in the kernel or it can also be done in the App

layer? Is there a contant base address to the screen memory?
What API should I use?

ThanX
Nadav


Nov 15 '05 #4
Well, The direction I am getting to is 'Mirror Display Drivers'/'dx
minidribers'...

"Phil Taylor" <ph*****@privat e-citizen-sorta.com> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...
DirectDraw isnt being updated, but the interfaces are supported.

DirectDraw and Direct3D provide for video memory access thru surfaces or
textures, respectively.

in protected mode and Win32, you cant do exactly what you are writing, those were DOS addresses. while "something" is at those addresses for compat
reasons, it doesnt point to exactly what you need.

new times need new tools, its best to learn what the new way is to do this.
have you tried a google search on "directx screen capture" since this is a
frequent request I would be surprised if someone hadnt written and published something on this.

the trick is getting into another processes video memory. in both windowed
and fullscreen-exclusive modes.

"Nadav" <not@today> wrote in message
news:eF******** *****@TK2MSFTNG P09.phx.gbl...
Well, Actually I am trying to implement my own screen capture algorithm,
this requires me to 'read' ( and not write ) the screen, getting a direct
memory pointer will give the best performance ( I Guess )...

What alternatives are there for getting a reference to the screen buffer? Does DirectDraw enable direct screen bytes access or just

IDirectDrawSurf ace
memory access?
Isn't DirectDraw is deprecated?

"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.c om> wrote in message news:eJ******** ******@TK2MSFTN GP10.phx.gbl...
Hi,

You just cannot do that and you should never ever think of writing

Windows programs this way. If you prefer good old screen memory manipulation, you can look at DirectDraw and its surface objects enabling direct pixel byte manipulation from your code.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Nadav" <not@today> wrote in message
news:uw******** ******@tk2msftn gp13.phx.gbl...
> Hi,
>
> I am trying to get a direct pointer to the address of the screen (
something
> like 0x0b00 in the happy DOS days ), how can I do that?
> Should this be done in the kernel or it can also be done in the App

layer?
> Is there a contant base address to the screen memory?
> What API should I use?
>
> ThanX
> Nadav
>
>



Nov 15 '05 #5
my quick search yields several interesting hits
http://www.codeproject.com/gdi/barry...en_capture.asp
http://codeguru.earthweb.com/cs_grap...ureScreen.html
http://www.codetools.com/bitmap/screencapture.asp

those should be valuable starting points, depending on your language of
choice.

"Nadav" <not@today> wrote in message
news:e0******** ******@tk2msftn gp13.phx.gbl...
Well, The direction I am getting to is 'Mirror Display Drivers'/'dx
minidribers'...

"Phil Taylor" <ph*****@privat e-citizen-sorta.com> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...
DirectDraw isnt being updated, but the interfaces are supported.

DirectDraw and Direct3D provide for video memory access thru surfaces or
textures, respectively.

in protected mode and Win32, you cant do exactly what you are writing,

those
were DOS addresses. while "something" is at those addresses for compat
reasons, it doesnt point to exactly what you need.

new times need new tools, its best to learn what the new way is to do

this.

have you tried a google search on "directx screen capture" since this is a
frequent request I would be surprised if someone hadnt written and

published
something on this.

the trick is getting into another processes video memory. in both windowed and fullscreen-exclusive modes.

"Nadav" <not@today> wrote in message
news:eF******** *****@TK2MSFTNG P09.phx.gbl...
Well, Actually I am trying to implement my own screen capture algorithm, this requires me to 'read' ( and not write ) the screen, getting a direct memory pointer will give the best performance ( I Guess )...

What alternatives are there for getting a reference to the screen buffer? Does DirectDraw enable direct screen bytes access or just

IDirectDrawSurf ace
memory access?
Isn't DirectDraw is deprecated?

"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.c om> wrote in message news:eJ******** ******@TK2MSFTN GP10.phx.gbl...
> Hi,
>
> You just cannot do that and you should never ever think of writing

Windows
> programs this way. If you prefer good old screen memory manipulation, you
> can look at DirectDraw and its surface objects enabling direct pixel

byte
> manipulation from your code.
>
> --
> Dmitriy Lapshin [C# / .NET MVP]
> X-Unity Test Studio
> http://x-unity.miik.com.ua/teststudio.aspx
> Bring the power of unit testing to VS .NET IDE
>
> "Nadav" <not@today> wrote in message
> news:uw******** ******@tk2msftn gp13.phx.gbl...
> > Hi,
> >
> > I am trying to get a direct pointer to the address of the screen (
> something
> > like 0x0b00 in the happy DOS days ), how can I do that?
> > Should this be done in the kernel or it can also be done in the

App layer?
> > Is there a contant base address to the screen memory?
> > What API should I use?
> >
> > ThanX
> > Nadav
> >
> >
>



Nov 15 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5734
by: Roland Hall | last post by:
Am I correct in assuming screen scraping is just the response text sent to the browser? If so, would that mean that this could not be screen scraped? function moi() { var tag = '<a href='; var tagType1 = '"mail'+'to:', tagType2 = '">', tagType3 = '<\/a>'; var user1 = 'web', user2 = 'master', user3 = '@'; var dom1 = 'danger', dom2 = 'ous', dom3 = 'ly'; var tld = '.us';...
5
3599
by: Sambucus | last post by:
Hi all!. I'm trying to capture a screen shot of a window. This works good until the window is partly or completley hidden, then i get the graphics of what is visible on my screen (the windows that cover my screen shot window). I have tried this in both MCF and pure win32 but with the same result. I know i can set the window i want to capture to the front/top with commands such as SetForegroundWindow() and SetWindowPos(). The
10
4657
by: Alex Greem | last post by:
Dear all, Our database (DB2 Workgroup 7.2 FP12) is constantly under heavy load. Most time CPU usage (1 Pentium3 1Ghz) is more 50% busy. We have 3GB RAM memory Our normal workload is 200-300 dyn.sql/s. The action question is there way to eliminate direct I/O? By definition direct I/O is I/O that bypass bufferpools and used for LONG VARCHAR and LOBs data.
8
1764
by: LM-Krav | last post by:
Hey all, i'm trying to access the screen memory, and generaly - enter the graphic mode. and do not know it's address or the commandline for it, please tell me what it is (the address or command line), and Assembly code will do just as well, Thanks,
13
2528
by: Arun | last post by:
Hi, I thought that the memory address of DOS screen is 0x0b00. But this didnt work for me. Can anyone help in accessing the screen by using this address.
21
2924
by: Chen Shusheng | last post by:
Hello, I have a small piece of code that I want to directly assign a segment of memory to a pointer. But complier tell me wrong. Pls you help.Codes below: ------------------ int * p; p=0x241ff5c; -------------------
3
1957
by: richk | last post by:
I am looking for a way to determine the screen type when I am checking out a laptop that has no HDD installed. I am looking for something I can compile to run under a DOS or windows 98 command prompt when I boot from a CD to dfetermine if a screen is 800X600, XGA, SXGA+, UXGA, etc. I can compile C++ under visual studio 6. Thanks
4
1814
by: Bryan Parkoff | last post by:
We discussed about the union keyword on the previous threads 2-3 days earlier. I want to add. Two byte data inside struct and one word data are inside union. You modify word data. Then two byte data are modified automatically because two byte data and one word data are sharing the same memory address. Let's move on and forget union because we claim that union keyword is not the language of C/C++ Compiler. Here is a pointer variable...
8
1701
by: jmorgan | last post by:
<html> <b>Hi, I thought that the memory address of DOS screen is 0x0b00. But this didnt work for me. Can anyone help in accessing the screen by using this address. </b> </html>
0
8685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8613
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8880
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7745
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6532
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4374
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3054
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.