I am trying to make a keyboard hook in vb. I need to parse the keystroke-message information into the appropriate values. Unfortunatly and 32 bit integer that is returned can contain arbitrary numbers (like the repetition count and such) that are not defined as constants and may take up more than one bit. The question is, how do i split this number into the appropriate values? I found some additional information that may help at this url: http://msdn.microsoft.com/library/de...binpt_7wvn.htm

Unfortunatly, i'm not sure how to use this info.