Giter VIP home page Giter VIP logo

dwmaxx2's Introduction

DWMaxx2

This library purpose is to extract a valid DirectX 10 texture from any window on Windows 7. Please note that I don't support it anymore, but I released the code for people to use.

See it in action: http://youtu.be/Fpvh16VjrRE http://youtu.be/TQWErKtfpq4

How it works

The library injects itself system wide, but behaves differently depending on which process it's in.

If it's not in the DWM process, it will hook all draws and draw a special pixel in the center of the window containing the HWND encoded in RGB.

If the process is DWM, it will hook itself on DX10's drawing calls and look for this special pixel.

It will then maintain a HWND <--> TextureHandle mapping, allowing the DWMaxx2 API to query it for the texture shared handle for a particular HWND.

How to use

Look at the code in Tutorial07. This is the modified Tutorial 7 from the DX10 SDK, modified to get the texture of a Chrome window (class Chrome_WidgetWin_0), so it should be pretty simple for everyone.

Methods provided:

HRESULT  DwmaxxLoad();
HRESULT  DwmaxxUnload();
BOOL     DwmaxxIsLoaded();

HANDLE   DwmaxxGetWindowSharedHandle(HWND hWnd);
void     DwmaxxGetWindowSharedHandleAsync(HWND hWnd, HWND callbackHwnd);
void     DwmaxxRemoveWindow(HWND hWnd);

dwmaxx2's People

Contributors

steeve avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.