Several mice

Hello,
I try to use two mice or more simultaneously.
I use them as cheap and wireless switches.
Is there a way to differentiate their ID (mouse1 right click / left click- mouse2 right click / left click…)

Currently I use GlovePie to convert buttons into keyboard key.
Thanks,

guess you need to do more in glovepie, like mouse to osc or midi

go deep with SlimDX RawInput http://slimdx.mdxinfo.com/latestdocs/Default.aspx?topic=Class+Reference/SlimDX.RawInput+Namespace

Thanks,
SlimDX RawInput seems good…But I do not know programming in C # !
:(