I have this situation where a dll is injected into processes that are printing to monitor the print jobs, i wanted to use a few GDIplus apis to help with image transformation within the dll being injected.
When the dll is injected into regular 64 bit processes the code works well. But when a 32 bit process prints, windows launches splwow64.exe as expected and we inject into it, but in this context, Gdiplus::GdiplusStartup returns a status of GenericError. From the doc that just eliminates, all the other errors but doesn't help in any other way.
Can anyone help decode or point in the direction to debug this situation?