VBA – Determine if the Caps Lock button is enabled on Password entry

This is a reposting of an article Patrick Roth originally wrote on my Developing for Dynamics GP blog.
With password policies in place in Dynamics 10.0 RTM, it was easy to be able for your user to ‘lock themselves out’ after a mistyped password or two.
Because Dynamics GP doesn’t give you any kind of warning that the Caps Lock key is enabled, the user wouldn’t necessarily notice this is the real issue and not a typo and all of a sudden you are locked out.
