on key 'c'
{
DWORD aep; // Application Endpoint handle
DWORD csi; // consumed Service Instance handle
DWORD ceg; // consumed Eventgroup handle
// open an Application Endpoint
aep = SomeIpOpenLocalApplicationEndpoint(17, 50002);
// create Service Instance
csi = SomeIpCreateConsumedServiceInstance(aep,10,1);
// create Eventgroup
ceg = SomeIpAddConsumedEventGroup(csi,1);
// ... do something here
// release the consumed Service Instance
SomeIpRemoveConsumedEventGroup(ceg);
// ... Application Endpoint and provided Service Instance can still be used here
}