FINNALLY! FOUND IT

I rmeembered I had found a library and I tried it out. It does
everything I need it to do. So I now I have a way to log out a user
easily with out using those really difficult legacy methods. This
library also supports up to windows 7. The methods that I am using work
for windows 8