on key 't'
{
DWORD aep; // Application Endpoint handle
DWORD psi; // provided service handle
DWORD peg; // provided Eventgroup handle
// open an Application Endpoint
aep = SomeIpOpenLocalApplicationEndpoint(17, 50002);
// create service
psi = SomeIpCreateProvidedServiceInstance(aep,10,1);
// create Eventgroup
peg = SomeIpAddProvidedEventGroup(psi,1);
// ... do something here
// remove the Eventgroup
SomeIpRemoveProvidedEventGroup(peg);
// ... Application Endpoint and provided Service Instance can still be used here
}