Hello there everyone!
Long story short.
I have a Dll in C++. There is a simple function.
Function is getting a color using HWND and HDC. Using this function you can get pixel color from an inactive minimized or hidden (non-DirectX) window or an inactive but on-screen (DirectX) window.
Function works fine (I tested it many times) except in AutoIt . When I call it via DllCall(), it returns zero. And @error is same, i.e. equals zero.
ColorDll.h
CODE
#ifndef ColorDll
#define ColorD