BITMAP bmBitmap;
GetObject(hBitmap , sizeof (BITMAP) , &bmBitmap);

bmBitmap.bmWidth
bmBitmap.bmHeight