Re: Reading a Wnd structure...



[...]
You are still top-posting.....

But your method is even worse! where is the code to limit you to a
specific version of Windows? how do you know, for certain, that you are
running with the same version of user32.dll that you disassembled
yourself? You may have to use checksums to verify this. If you get any of
those checks wrong you are finished. You are talking about an enormous
amount of additional code to support a method that adds no value
whatsover - and just because you think it is 'clever'. It's not. So my
original code, which is still 5 lines long, is completley stand-alone,
requires no extra support, and works on all current versions of Windows.
Anyone can now download this code from the newsgroup and it will work
instantly for them. I was clear up front that it should not be used for
production code and the original poster has confirmed his intended use.
All you have succeeded in doing is confusing the issue and making it more
complicated than it needs to be.

You can't seriously believe that a hard-coded assembly version is
preferable?

James

--
Microsoft MVP - Windows SDK
www.catch22.net
Free Win32 Source and Tutorials


James, your code will fail if MS change passing parameter using ECX, or if
the first call in GetWindowRect will point to another function. So I can't
be sure it will be working in next SP.

Thus, the only possible way to be sure is to calculate offsets for different
versions of OS. Yes, your code calculates "on fly" the address, but its
*unsafe*.


.



Relevant Pages

  • Re: Hacker has changed code; need original to compare.
    ... I am using Windows XP ... >> to the internet. ... >> the original code that dials up IE6, ... How I can obtain the original code pages for the ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Hacker has changed code; need original to compare.
    ... MS-MVP Windows XP/ Windows Smart Display ... they changed my Internet access code so that when I ... it immediately dials my ISP to connect ... How I can obtain the original code pages for the ...
    (microsoft.public.windowsxp.security_admin)
  • Re: PENTEST MySQL on windows
    ... Anyone have any ideas on jumping to the Windows OS with full ... If you are able to access the MySQL database with root/admin privileges, ... privilege escalation procedure (credits for the original code go to ...
    (Pen-Test)
  • GSM triplets
    ... The original code uses the WinSCard (SCardEstablishContext, ... If I understand it correctly, I should use the SimMgr set of functions on Pocket PC (assuming that if a SIM card is present, it is Windows Mobile 2003 Phone Edition). ...
    (microsoft.public.pocketpc.developer.networking)
  • Re: SBS 2003 Fax Sharepoint Routing
    ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ... reinstall the Windows fax service to test? ... it means that the installation didn''t go ...
    (microsoft.public.windows.server.sbs)

Loading