How can I sign a form("_Calendar Entry") with C or C++ API?

How can I sign a form(“_Calendar Entry”) with C or C++ API ?