Take a look at
this[
^]. It will involve P/Invoke to make use of it and you may find that someone has already done the work for you if you search
here[
^]. I don't know if the solution is in there, you can't expect me to do all the work for you. :)