Using LoadImage() causes segmentation fault. Backtracing the stack I found the following function as called last:
AlpcMaxAllowedMessageLength()
This is the function I call:
status = (HBITMAP) LoadImage(NULL, MAKEINTRESOURCE(STATUS_BMP), IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE | LR_CREATEDIBSECTION));
with STATUS_BMP loaded as a valid resource bitmap file. Has someone encountered a similar problem about this function, or just have the solution to the matter?