Interestingly, a mistake. This is actually IntPtr, you can specify from your own ad the GdiPlusImaging.h header file in the SDK (c: \ program files \ microsoft sdks \ windows \ v6.0a \ include for VS2008). The error is not a byte, because GDI + creates an instance of this file.
Which makes it probable that the field stores a pointer or handle. I would have guessed in a handle to an object with memory mapping. It is cheaper to store it in a client state object, having to maintain a dictionary in order to find it in the UnlockBits () function. Do not mess with him.
source share