i am useing this

Public Declare Function GetPixel Lib "gdi32" Alias "GetPixel" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long) As Long

i am guessing it returns the color, but it is a long, how can i convert it to rbg?