I used to use Bandicam for recording of gaming sessions it's capable of recording both what's on screen and audio.
OBS is pretty good, and free, too.
If you have a compatible nvidia graphics card, you can use nvidia shadowplay.
Doesn't work for normal desktop apps.
Doesn't work for normal desktop apps.
Works fine for desktop. Just a checkbox to enable.