Graphics/Window Drawing Internal

Here you can discuss ReactOS related topics.

Moderator: Moderator Team

Post Reply
danielkeemstar
Posts: 1
Joined: Wed Feb 03, 2021 8:07 pm

Graphics/Window Drawing Internal

Post by danielkeemstar »

ive got a question regarding how windows/reactos window drawing works internally

i am wondering if there is a function or a set of functions that perform drawing on a window at the most basic level that are used by all modules that perform graphics operations (gdi,directx,.. i dont know any others to be honest), something like a single function that just modified a single pixel inside a window

i am asking this because i am looking for a way to duplicate a window without having to hook every single possible function pertaining to graphics from process A and relaying that to process B

this would ideally be done from user-mode but if its possible from kernel-mode only id like to hear about it, and i will figure something out
User avatar
X512
Posts: 66
Joined: Mon Jul 13, 2009 10:07 pm
Location: Japan

Re: Graphics/Window Drawing Internal

Post by X512 »

Drawing is implemented in kernel module "win32k.sys". Its sources are located here: https://github.com/reactos/reactos/tree/master/win32ss. Drawing code is located here: https://github.com/reactos/reactos/tree ... in32ss/gdi. Drawing in userland are oerformed by win32k.sys syscalls starting with "NtGdi".
danielkeemstar wrote: Wed Feb 03, 2021 8:15 pm i am asking this because i am looking for a way to duplicate a window without having to hook every single possible function pertaining to graphics from process A and relaying that to process B
You can attach window from another process (OLE do this). You can save drawings to metafile (it store all drawing commands) and send it to another process.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 15 guests