GetCurrentState function

Learn technical details about the GetCurrentState function.