I'am trying to get the text outputing by ExtTextOutW function, and the first thing that i came up with is, that go and hook this function, for example by injecting dll in the target process. So from there i can get the hdc, text and flags. However, i have the application that calls this function many many times, so i don't want to hook and make checks for all the calls. Is there a way, i can get the text printed on form by ExtTextOutW without hooking it, maybe using the hdc where it outputs the data?
Get text drawn by ExtTextOut
373 Views Asked by Vladislav At
1
There are 1 best solutions below
Related Questions in C
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in WINAPI
- Make screenshot of DirectX window that is hidden and doesn't have focus
- Is it valid to mutilayered a critical section?
- Implementing callback function for dialog-based application
- Where is the 'EnablePinning' property in the ribbon framework's recent items?
- Confusion about CTRL_SHUTDOWN_EVENT handling in DLLs and WM_QUERYENDSESSION
- Standard control transparency. Possible?
- Disable all power options from the Start menu
- call Win32 API in flex to set Window Display Affinity
- heap error after changing from new allocation to smartpointer
- Win API - Delete all files except some
- Finding the default application for a particular file name extension (Even when served by a metro app)
- How do I declare OutputDebugStringA without windows.h macros?
- WPF giving maximize,minimize,resize control to child window
- Can a dialog intercept drag'n'drop messages passed to its controls?
- WinApi and work with several domains
Related Questions in TEXT
- Delete the extra space after special character in all the lines of text file
- Apply gaussian filter on text
- text show and hide with button php/js
- Get text from a section of a pdf page with IcePdf
- load word file (.docx) in richtextbox
- Display a specific line in a text file - android/java
- how to change text direction to the right slide of switch in android?
- C language - Read specific data from text file
- Read text file from specific position and store in two arrays
- How to animate text
- Detect repetition in text string / copied text
- Use MATLAB's webread to login to website and extract text
- LWJGL Drawing colored text to the screen issue
- Hide part of text temporarily, show after user clicks certain element
- Reading text file in java using scanner
Related Questions in PRINTING
- How to send ESC/POS commands to thermal printer in Linux
- JTable Printing. How to set page breaks programmatically?
- Why do print and echo behave differently in a "for" loop
- Is there a way to limit the html page to a particular page size?
- How to execute keybord shortcut CTRL + P by clicking a link using jquery
- Chrome print preview disable only link location in footer and header
- C program doesn't print
- how to print a receipt to a particular printer
- How to print Jasper reports from servlets?
- Is it possible to print web content on thermal printer?
- How to print the HTML in Java
- How to get a response of file printing job to user from printer using CUPS in linux
- Android PrintManager get callback
- Business card height and width in pixels on web?
- Microsoft Dynamics Ax 2012 R2 run time issue
Related Questions in OUTPUT
- Java filewriter only writing last line to file?
- C++: Re-use line printed to console
- cannot get the output parameter from an SP called from another SP
- include typescript file in output result build with TFS
- How to print a double in C with absolute or relative error 10⁻⁶
- Use scanf in if statement
- Error running this fork code in my eclipse, and also have some concept confusion around this code
- How search the output only `-` in any DOM using PHP script?
- Java Vector wrong output
- Retrieve more than 1 output from native.dll file
- Execute multiple command lines with output
- correct output for this fork concept in C
- Visual studio cordova blank app build is failing
- Get text drawn by ExtTextOut
- Replacing the contents of a text file in java
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Hooking is the only way you can get the parameter data that is being passed to
ExtTextOutW(). If you are only interested in data for a specificHDC, you will have to filter accordingly. However,HDCs tend to be created dynamically when needed, so you likely cannot filter on the actualHDCvalue itself, as it will be different each time. Fortunately, if theHDCbelongs to a window (and it sounds like you want to intercept calls for a specific window), you can useWindowFromDC()to get theHWNDof theHDCthat is being drawn on, and then filter on that as needed.