This is an example of how to use the SysReadSemData function along with the ReadSemDataType structure.