PTM_U: Implemented the GetShellState function.
Merge pull request #219 from Subv/ptm

PTM_U: Implemented the GetShellState function.