Is there any way to intercept system calls to windows such as TextOut and DrawText?
what kinds of system calls can be intercepted, and what is the mechanism to accomplish this? 8 2237
Peter,
Short of actually replacing user32.dll with a shim that calls the
originals, there isn't a way I can think of to do this. Also, with the new
windows protection scheme (windows knows when you try to replace system dlls
and whatnot), I doubt you could even do that.
And if you could, I certainly wouldn't want (nor could you do it easily)
with .NET, and you definitely couldn't do it with C#.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Peter Olcott" <ol****@att.net> wrote in message
news:2ZN3f.5212$bt2.2196@okepread05... Is there any way to intercept system calls to windows such as TextOut and DrawText? what kinds of system calls can be intercepted, and what is the mechanism to accomplish this?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:ur**************@tk2msftngp13.phx.gbl... Peter,
Short of actually replacing user32.dll with a shim that calls the originals, there isn't a way I can think of to do this. Also, with the new windows protection scheme (windows knows when you try to replace system dlls and whatnot), I doubt you could even do that.
And if you could, I certainly wouldn't want (nor could you do it easily) with .NET, and you definitely couldn't do it with C#.
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Peter Olcott" <ol****@att.net> wrote in message news:2ZN3f.5212$bt2.2196@okepread05... Is there any way to intercept system calls to windows such as TextOut and DrawText? what kinds of system calls can be intercepted, and what is the mechanism to accomplish this?
Can you double check this answer for me please?
Peter,
I wouldn't have responded if I didn't think that it was correct. You
could easily look for this information on your own, now that I have given
you some specifics, as well as potential concerns.
It probably would be helpful to know what you are trying to do, as well,
so we could provide alternatives, since the solution I gave isn't desirable,
by any means.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Peter Olcott" <ol****@att.net> wrote in message
news:a4Q3f.5217$bt2.167@okepread05... "Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:ur**************@tk2msftngp13.phx.gbl... Peter,
Short of actually replacing user32.dll with a shim that calls the originals, there isn't a way I can think of to do this. Also, with the new windows protection scheme (windows knows when you try to replace system dlls and whatnot), I doubt you could even do that.
And if you could, I certainly wouldn't want (nor could you do it easily) with .NET, and you definitely couldn't do it with C#.
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Peter Olcott" <ol****@att.net> wrote in message news:2ZN3f.5212$bt2.2196@okepread05... Is there any way to intercept system calls to windows such as TextOut and DrawText? what kinds of system calls can be intercepted, and what is the mechanism to accomplish this?
Can you double check this answer for me please?
I want to be able to consistently be able to have an application
"see" exactly what is on the screen.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:Ok**************@TK2MSFTNGP14.phx.gbl... Peter,
I wouldn't have responded if I didn't think that it was correct. You could easily look for this information on your own, now that I have given you some specifics, as well as potential concerns.
It probably would be helpful to know what you are trying to do, as well, so we could provide alternatives, since the solution I gave isn't desirable, by any means.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Peter Olcott" <ol****@att.net> wrote in message news:a4Q3f.5217$bt2.167@okepread05... "Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:ur**************@tk2msftngp13.phx.gbl... Peter,
Short of actually replacing user32.dll with a shim that calls the originals, there isn't a way I can think of to do this. Also, with the new windows protection scheme (windows knows when you try to replace system dlls and whatnot), I doubt you could even do that.
And if you could, I certainly wouldn't want (nor could you do it easily) with .NET, and you definitely couldn't do it with C#.
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Peter Olcott" <ol****@att.net> wrote in message news:2ZN3f.5212$bt2.2196@okepread05... Is there any way to intercept system calls to windows such as TextOut and DrawText? what kinds of system calls can be intercepted, and what is the mechanism to accomplish this? Can you double check this answer for me please?
To what end? You can easily get the device context for the desktop or
any window in the system and "see" that. Can you be more specific?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Peter Olcott" <ol****@att.net> wrote in message
news:iLQ3f.5222$bt2.4976@okepread05... I want to be able to consistently be able to have an application "see" exactly what is on the screen.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:Ok**************@TK2MSFTNGP14.phx.gbl... Peter,
I wouldn't have responded if I didn't think that it was correct. You could easily look for this information on your own, now that I have given you some specifics, as well as potential concerns.
It probably would be helpful to know what you are trying to do, as well, so we could provide alternatives, since the solution I gave isn't desirable, by any means.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Peter Olcott" <ol****@att.net> wrote in message news:a4Q3f.5217$bt2.167@okepread05... "Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:ur**************@tk2msftngp13.phx.gbl... Peter,
Short of actually replacing user32.dll with a shim that calls the originals, there isn't a way I can think of to do this. Also, with the new windows protection scheme (windows knows when you try to replace system dlls and whatnot), I doubt you could even do that.
And if you could, I certainly wouldn't want (nor could you do it easily) with .NET, and you definitely couldn't do it with C#.
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Peter Olcott" <ol****@att.net> wrote in message news:2ZN3f.5212$bt2.2196@okepread05... > Is there any way to intercept system calls to windows such as TextOut > and DrawText? > what kinds of system calls can be intercepted, and what is the > mechanism to accomplish this? >
Can you double check this answer for me please?
Can you grab any text from any these device contexts?
If so, can you get the font information?
Is there any way to recognize a specific icon on the desktop?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:uG*************@TK2MSFTNGP15.phx.gbl... To what end? You can easily get the device context for the desktop or any window in the system and "see" that. Can you be more specific?
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Peter Olcott" <ol****@att.net> wrote in message news:iLQ3f.5222$bt2.4976@okepread05...I want to be able to consistently be able to have an application "see" exactly what is on the screen.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:Ok**************@TK2MSFTNGP14.phx.gbl... Peter,
I wouldn't have responded if I didn't think that it was correct. You could easily look for this information on your own, now that I have given you some specifics, as well as potential concerns.
It probably would be helpful to know what you are trying to do, as well, so we could provide alternatives, since the solution I gave isn't desirable, by any means.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Peter Olcott" <ol****@att.net> wrote in message news:a4Q3f.5217$bt2.167@okepread05...
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:ur**************@tk2msftngp13.phx.gbl... > Peter, > > Short of actually replacing user32.dll with a shim that calls the originals, there isn't a way I can think of to do this. > Also, with the new windows protection scheme (windows knows when you try to replace system dlls and whatnot), I doubt you > could even do that. > > And if you could, I certainly wouldn't want (nor could you do it easily) with .NET, and you definitely couldn't do it with > C#. > > Hope this helps. > > > -- > - Nicholas Paldino [.NET/C# MVP] > - mv*@spam.guard.caspershouse.com > > "Peter Olcott" <ol****@att.net> wrote in message news:2ZN3f.5212$bt2.2196@okepread05... >> Is there any way to intercept system calls to windows such as TextOut and DrawText? >> what kinds of system calls can be intercepted, and what is the mechanism to accomplish this? >> > > Can you double check this answer for me please?
Peter,
It would be easier for you to actually enumerate through the users
desktop directory to see what is displayed on the desktop. If you are
trying to do this, just find the users desktop directory, and enumerate
through the items in the directory, and it should give you a good idea of
what is there.
As for the font information, for what is displayed on the desktop, that
is the system font, and you can get that easily.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Peter Olcott" <ol****@att.net> wrote in message
news:CYQ3f.5224$bt2.4102@okepread05... Can you grab any text from any these device contexts? If so, can you get the font information? Is there any way to recognize a specific icon on the desktop?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:uG*************@TK2MSFTNGP15.phx.gbl... To what end? You can easily get the device context for the desktop or any window in the system and "see" that. Can you be more specific?
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Peter Olcott" <ol****@att.net> wrote in message news:iLQ3f.5222$bt2.4976@okepread05...I want to be able to consistently be able to have an application "see" exactly what is on the screen.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:Ok**************@TK2MSFTNGP14.phx.gbl... Peter,
I wouldn't have responded if I didn't think that it was correct. You could easily look for this information on your own, now that I have given you some specifics, as well as potential concerns.
It probably would be helpful to know what you are trying to do, as well, so we could provide alternatives, since the solution I gave isn't desirable, by any means.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Peter Olcott" <ol****@att.net> wrote in message news:a4Q3f.5217$bt2.167@okepread05... > > "Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> > wrote in message news:ur**************@tk2msftngp13.phx.gbl... >> Peter, >> >> Short of actually replacing user32.dll with a shim that calls the >> originals, there isn't a way I can think of to do this. Also, with >> the new windows protection scheme (windows knows when you try to >> replace system dlls and whatnot), I doubt you could even do that. >> >> And if you could, I certainly wouldn't want (nor could you do it >> easily) with .NET, and you definitely couldn't do it with C#. >> >> Hope this helps. >> >> >> -- >> - Nicholas Paldino [.NET/C# MVP] >> - mv*@spam.guard.caspershouse.com >> >> "Peter Olcott" <ol****@att.net> wrote in message >> news:2ZN3f.5212$bt2.2196@okepread05... >>> Is there any way to intercept system calls to windows such as >>> TextOut and DrawText? >>> what kinds of system calls can be intercepted, and what is the >>> mechanism to accomplish this? >>> >> >> > Can you double check this answer for me please? >
What about all the text and font info contained within
any other program's window?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:eS**************@TK2MSFTNGP12.phx.gbl... Peter,
It would be easier for you to actually enumerate through the users desktop directory to see what is displayed on the desktop. If you are trying to do this, just find the users desktop directory, and enumerate through the items in the directory, and it should give you a good idea of what is there.
As for the font information, for what is displayed on the desktop, that is the system font, and you can get that easily.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Peter Olcott" <ol****@att.net> wrote in message news:CYQ3f.5224$bt2.4102@okepread05... Can you grab any text from any these device contexts? If so, can you get the font information? Is there any way to recognize a specific icon on the desktop?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:uG*************@TK2MSFTNGP15.phx.gbl... To what end? You can easily get the device context for the desktop or any window in the system and "see" that. Can you be more specific?
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Peter Olcott" <ol****@att.net> wrote in message news:iLQ3f.5222$bt2.4976@okepread05... I want to be able to consistently be able to have an application "see" exactly what is on the screen.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:Ok**************@TK2MSFTNGP14.phx.gbl... > Peter, > > I wouldn't have responded if I didn't think that it was correct. You could easily look for this information on your own, > now that I have given you some specifics, as well as potential concerns. > > It probably would be helpful to know what you are trying to do, as well, so we could provide alternatives, since the > solution I gave isn't desirable, by any means. > > -- > - Nicholas Paldino [.NET/C# MVP] > - mv*@spam.guard.caspershouse.com > > "Peter Olcott" <ol****@att.net> wrote in message news:a4Q3f.5217$bt2.167@okepread05... >> >> "Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message >> news:ur**************@tk2msftngp13.phx.gbl... >>> Peter, >>> >>> Short of actually replacing user32.dll with a shim that calls the originals, there isn't a way I can think of to do this. >>> Also, with the new windows protection scheme (windows knows when you try to replace system dlls and whatnot), I doubt you >>> could even do that. >>> >>> And if you could, I certainly wouldn't want (nor could you do it easily) with .NET, and you definitely couldn't do it >>> with C#. >>> >>> Hope this helps. >>> >>> >>> -- >>> - Nicholas Paldino [.NET/C# MVP] >>> - mv*@spam.guard.caspershouse.com >>> >>> "Peter Olcott" <ol****@att.net> wrote in message news:2ZN3f.5212$bt2.2196@okepread05... >>>> Is there any way to intercept system calls to windows such as TextOut and DrawText? >>>> what kinds of system calls can be intercepted, and what is the mechanism to accomplish this? >>>> >>> >>> >> Can you double check this answer for me please? >> > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Peter Olcott |
last post by:
Is there any way to intercept system calls to windows such as TextOut and DrawText?
what kinds of system calls can be intercepted, and what is the mechanism to accomplish this?
|
by: Peter Olcott |
last post by:
Is there any way to intercept system calls to windows such as TextOut and DrawText?
what kinds of system calls can be intercepted, and what is the mechanism to accomplish this?
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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,...
|
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...
| |