Вход

Просмотр полной версии : Скриншот окна содержащего рендерер (D3D, OpenGL, etc)


BotLegacy
12.06.2012, 21:29
BitBlt делает снимок экрана, а не окна.
PrintWindow возвращает квадрат малевича, т.к. рендереры срали на WM_PRINT, а PrintWindow это по сути оболочка для WM_PRINT http://msdn.microsoft.com/en-us/library/windows/desktop/dd162869%28v=vs.85%29.aspx The application that owns the window referenced by hWnd processes the PrintWindow call and renders the image in the device context that is referenced by hdcBlt. The application receives a WM_PRINT message or, if the PW_PRINTCLIENT flag is specified, a WM_PRINTCLIENT message. For more information, see WM_PRINT and WM_PRINTCLIENT.
Примерно год назад нашёл функцию, которая без инжектов и внедрения в DX делала скриншот именно с окон содержащих рендерер и с окон веб-браузеров. К сожалению потерял её - когда менял ноут на новый комп, забыл снять с него старые проекты.

J-Fobos
12.06.2012, 21:43
Гугл не модный нынче :) http://www.kansoftware.ru/?tid=1293

BotLegacy
12.06.2012, 22:24
J-Fobos
Ты хоть смотрел, что по твоей ссылке? Или первую попавшуюся из гугла скопирнул чтоб выебнуться?

Добавлено через 34 минуты
Пойду спать.
Yegor, жду ваш код где PrintWindow скриншотит. Защит никаких не было и нету.

Yegor
13.06.2012, 00:32
function PrintWindow(hwnd: HWND; hdcBlt: HDC; nFlags: UINT): BOOL; stdcall; external user32;


function GetWindowBitmap(hw: HWND): TBitmap;
var
wHeight, wWidth: word;
rect: TRect;
begin
Result:= nil;
if GetWindowRect(hw, rect) then
begin
Result:= TBitmap.Create;
wWidth:= rect.Right - rect.Left;
wHeight:= rect.Bottom - rect.Top;
Result.Width:= wWidth;
Result.Height:= wHeight;
PrintWindow(hw, Result.Canvas.Handle, 0);
end;
end;

BotLegacy
13.06.2012, 09:50
Yegor, отличные сказки вы рассказывайте.
http://rghost.ru/38633409/image.png
http://forum.sources.ru/index.php?showtopic=358776
И не надо нести откровенный бред про защиты - нету никакой защиты, эта функция с любой игры возвращает квадрат малевича - хоть с Пиратов Карибского Моря, хоть с эмулятора Сеги, хоть с веб-браузера.

mira
13.06.2012, 11:34
Ну я делал както так (других надежных способов ненашол, может и есть).

перехватываем создание интерфейса директх-девайса и при создании добавляем флаг LOCKAВLE_ВACKBUFFER иначе мы не получим к нему доступ. Запоминаем созданый экземпляр.

когда нам нужно получить отрендереный имадж - вызываем метод idirect3ddevice9 возвращающий интерфейс бекбуфера. Там 2 способа считать его - создать hdc и отблитить либо залочить и скопировать массив пикселей.

мб чето я перепутал но суть такая, и у меня работало у меня

Добавлено через 15 минут
Без инжектов хз ваще как получить доступ к буферу в неактивном окне. Контекст окна 1 фиг нам бесполезен.

Добавлено через 33 минуты
Printwindow ясен пень не будет работать так как обращаетса к gdi. Рендеры же работают конкурентно с гди и пересекаютса тока на экранной поверхности. Им пох на то что рисует само окно, а оно обычно в играх ниче не рисует вот, и квадрат малевича.

Yegor
13.06.2012, 14:10
Возможно зависит от ОС у меня Win7, результат во вложении.

На всяк случай попробуйте получить моей демо программой (во вложении)

Anfet
13.06.2012, 14:14
перехватываем создание интерфейса директх-девайса и при создании добавляем флаг LOCKAВLE_ВACKBUFFER иначе мы не получим к нему доступ. Запоминаем созданый экземпляр.
Самое интересное, что этот флаг вообще не гарантирует то, что доступ можно будет получить.
А потом начинается веселье с тем что тебе нужно забрать буфер, а он тоже далеко не всегда (почему-то) может быть доступен.

А вообще мира правду говорит. Неактивное окно не заскринить просто так.
(я уже на этом съел собаку).

Yegor
13.06.2012, 14:17
mira, с помощью твоего метода и в свернутом окне можно получить скрин и оно получит именно новую отрендеренную картинку или последнюю которая рендерилась до сворачивания?

Anfet
13.06.2012, 14:19
mira, с помощью твоего метода и в свернутом окне можно получить скрин и оно получит именно новую отрендеренную картинку или последнюю которая рендерилась до сворачивания?
Свернутое окно вообще не рендерится (если мы о ла2).

Yegor
13.06.2012, 14:33
Anfet, может как то можно заставить движок отрендерить кадр как будто бы окно развернуто.

mira
13.06.2012, 15:01
Свернутое окно вообще не рендерится (если мы о ла2).

угу там вроде экземпляр рендера (3ддевайс) переходит в состояние devicelost и при разворачивании требует переинициализации.

Добавлено через 7 минут
Anfet, может как то можно заставить движок отрендерить кадр как быдто бы окно развернуто.

Устойство переходит в состояние "потеряно" стало быть не может ничего.

Добавлено через 8 минут
Самое интересное, что этот флаг вообще не гарантирует то, что доступ можно будет получить.
А потом начинается веселье с тем что тебе нужно забрать буфер, а он тоже далеко не всегда (почему-то) может быть доступен.

А вообще мира правду говорит. Неактивное окно не заскринить просто так.
(я уже на этом съел собаку).

1)если адаптер не поддерживает запираемый бекбуфер
2)если пытатса его захватывать не синхронно а например между beginscene и endscene скорей всего будет фейл.
В идеале его захватывать перед самим методом present.

ну и да...
Начиная с висты немного поменялась идеология оконых контекстов. Там принт возможно прокатит.

FrankJScott
18.05.2025, 23:12
For the person talking about stock analysis application, top ten ai stocks, stock picking sites, ai stock futures, top ai investments, free stock analyzer, ai company share price, stock trading analysis software, using ai in stock trading, using ai for stock trading, I highly recommend this the advantage about AI stock investing analysis site (https://globalhealthsupplies.xyz/2025/05/17/20-pro-suggestions-to-selecting-ai-stock-trading-platform-sites/) or tools to analyze stocks, free stock forecast tool, danelfin reviews, day trading with ai, free stock analyzer, ai stock software, chat gpt for investing, stock analysis online free, investment for stock market, best trading prediction software, on top of this my explanation about AI stock predictions analysis advice (https://xinbiquge9.com/20-best-info-tips-for-deciding-on-ai-stock-trading-platform-websites/) and don't forget best stock prediction sites, stock prediction ai, best stock market predictor, ai stock market trading, top ai investments, trading via ai, stock market fundamentals, technical stock, best stock market software, top ai stock picks, which is worth considering with this enquiry on AI stock predictions platform info (https://tweetyskitchen.com/20-top-tips-on-picking-ai-stock-trading-platform-websites/) which is also great. Also, have a look at this his comment is here on AI stock picker platform advice (https://sqrrmu.com/20-top-news-tips-on-choosing-ai-stock-investing-analysis-websites-49737530/) not to mention stock market programs, ai trading account, free stock research tools, ai stock today, free share analysis software, day trading ai, ai growth stocks, al technology stock, free ai stock prediction software, ai software stocks, and don't forget this here for AI stock trading platform forum (https://meutopsite.online/2025/05/13/20-pro-advice-to-choosing-ai-stock-predictions-platform-websites/) which is worth considering with best technical analysis website, ai system for stock trading, best ai software for stock trading, ai ticker, ai program for stock trading, at bing for (https://andregugr53085.mybuzzblog.com) not forgetting sites such as stock analysis company, technical stock, ai stock forecast, best tools to predict stock market, the best stock analysis websites, for good measure. Check more @ New Ad Blocker Tips (https://www.zhanzhangbbs.com/forum.php?mod=viewthread&tid=918&pid=10392&page=1&extra=page%3D1#pid10392) 30c9ac2

FrankJScott
20.05.2025, 00:45
For the lady talking about top ai stocks to invest in, us stock analysis tool, best artificial intelligence stocks to buy, best share trading software, best stock analysis service, free stock analysis app, ai software companies stock, bot trading stocks, analysis share market, investing analysis, I highly suggest this recommended site for AI stock picker analysis blog (https://ly2818.online/2025/05/15/20-excellent-suggestions-for-selecting-ai-stock-trading-platform-sites/) or ai stock futures, best stock market advice, best free stock analysis, artificial intelligence stocks to invest in, best app for stock market prediction, best ai stocks to invest in now, share market data analysis, best stock advisory app, free investment research tools, best ai stocks to invest, not to mention this best AI stock trading platform link (https://xmyxhhs.com/20-top-news-for-deciding-on-ai-stock-trading-analysis-sites/) and don't forget stock price analysis, best free stock analysis tools, stock market help, best stock analysis software free, best stock picking tools, ai firms to invest in, bot stock trading, ai stock portfolio, stock analysis software, stock chart predictor, not forgetting sites such as this that guy for AI stock trading analysis blog (https://gfnormal01am.com/20-pro-advice-to-choosing-ai-stock-picker-platform-websites/) which is also great. Also, have a look at this excellent AI stock picker analysis info (https://b2851.com/20-recommended-news-to-deciding-on-ai-stock-investing-platform-websites-2/) on top of top stock analysis apps, best stock analyst website, stock trading analysis software, stock analyzer website, using ai to trade stocks, stock trend analysis, ai based stock prediction, publicly traded ai companies, best stock reports, best stock tip app, alongside all this high rated AI stock investing platform advice (https://sacoronavirus.com/20-good-news-to-selecting-ai-stock-predictions-platform-websites/) as well as ai stock plays, stock market tools, ai companies to invest in, ai for stocks, intelligence stocks, homepage on (https://milormga11000.estate-blog.com) together with ai technology stocks, stock price prediction tool, top ai trading software, about stock investment, stock market analysis tools, for good measure. Check more @ Cool TAJIR4D Guide (http://www.881.cz/forum.php?mod=viewthread&tid=1088&extra=) 670b350

FrankJScott
26.05.2025, 16:51
To the guy inquiring about situs togel aman dan terpercaya, judi pragmatic play, slot situs online, bandar togel terbesar dan terpercaya di indonesia, kami slot login, situs judi, situs casino, judi live casino, situs slot online terpercaya, toto slot online, I highly recommend this cool Tajir4D url (https://augustmdqe70481.wikitidings.com/6430336/30_top_facts_to_picking_tajir4d_sites) or slot judi online terbaik, situs slot online indonesia, main slot pragmatic, yang kami, menang togel terbesar, situs slot online resmi, slot pragmatic, situs judi casino, live slot, slot slot games, not forgetting sites such as this recommended TAJIR4D Login tips (https://trevorduht64207.wizzardsblog.com/35204944/30-pro-ideas-for-deciding-on-tajir4d-sites) as well as situs deposit pulsa, apa itu pragmatic slot, judi slot online adalah, judi togel slot, game online slot resmi, cara mudah menang main slot, web slot terpercaya, bandar togel casino, casino slot online, slot situs online, not to mention this the original source about Tajir4D details (https://dominickzjsb86308.life3dblog.com/34123279/30-good-ideas-on-picking-tajir4d-websites) which is also great. Also, have a look at this high rated TAJIR4D Login blog (https://zanenlfx99876.sunderwiki.com/1497539/30_excellent_tips_to_selecting_tajir4d_login_websi tes) as well as slot yang bisa deposit pulsa, situs slot yang bisa deposit pulsa, nama situs judi slot online terpercaya, bermain judi online, casino di, permainan online judi, link togel slot online, situs judi slot online terpercaya indonesia, agent slot online, bandar judi terbesar di indonesia, alongside all this website about Tajir4D info (https://rylanfoxg18529.mdkblog.com/41143849/30-new-news-for-choosing-tajir4d-login-websites) as well as situs togel 24 jam, ikan gaming, bandar judi slot, kemenangan slot, situs slot to, her latest blog on (https://deanqjbs76553.aioblogs.com) and don't forget togel 24 jam, menang casino, login casino, situs slot online, semua nama situs judi slot online, for good measure. Check more @ Great AI Stock Investing Platform Guide (http://forum.investoram.ru/viewtopic.php?p=228825#228825) c285688

FrankJScott
06.06.2025, 18:43
To the person talking about ai stock analyzer, market technical analysis, best stock analysis sites, best ai stock picker, stocks and investing, top companies investing in ai, investing analysis, buy shares in open ai, ai market trading, top stock analysis apps, I highly suggest this source for AI Stock Predictions Analysis url (https://casinospielens.com/20-top-news-for-selecting-ai-stock-picker-analysis-websites/) or ai predict stock price, ai in stock market trading, ai automated investing, top ai trading software, ai to buy and sell stocks, investing with ai, best stock market investing websites, open ai buy stock, ai based investment advisor, stock market study, and don't forget this consultant for AI Stock Trading Platform link (https://rcgormansgallery.info/20-recommended-ideas-for-picking-ai-stock-picker-platform-sites/) and don't forget bot stock trading, ai trading bot stocks, danelfin ai, stock market ai software, analyzing stocks for beginners, stock insights, free stock analysis, ai trading apps, stock analytics software, new ai stocks, not to mention this a total noob about AI Stock Trading Analysis site (https://casinonanets.com/20-free-tips-to-picking-ai-stock-picker-platform-websites/) which is also great. Also, have a look at this read full article for AI Stock Predictions Platform details (https://casinomidass.com/top-10-ways-to-evaluate-the-security-and-the-privacy-of-ai-trading-platforms/) bearing in mind stock price ai, best stock analysis app for beginners, ai in investing, ai company share price, stock market tools for analysis, free stock advice, best free site for stock analysis, ai tech stock, open ai company stock, all ai stocks, which is worth considering with this view website on AI Stock Predictions Platform tips (https://healthdialogues.org/20-top-suggestions-for-deciding-on-ai-stock-picker-platform-websites/) on top of best stock market prediction app, best stocks in ai, chatbot stock price, free stock prediction website, stock market trading software, read more for (https://travisnuvs51727.wikilinksnews.com) bearing in mind ai stocks to buy, best stock investing software, ai stock market trading software, free stock analyzer, stocks with ai, for good measure. Check more @ Top Rated AI Stock Trading Analysis Tips (https://bbs.xltyun.com/forum.php?mod=viewthread&tid=534375&pid=599333&page=1&extra=#pid599333) f87f130