cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Kouichi
Participant

How To Hook And Cancel When Delete Element

Please Teach me.

How To Hook And Cancel When Delete Element.

I catch DELETE Handler 

 

static GSErrCode __ACENV_CALL ElementEventHandler(const API_NotifyElementType *elemType) {
GSErrCode err = NoError;
switch (elemType->notifID) {
case APINotifyElement_Delete:

//  I hope Cancel Delete Command By Guid

break;
default:
err = APIERR_NOTSUPPORTED;
break;
};//sw
return(err);

}

//-------------------------------------

void SetHandler() {

//Get Guid List

...





//Set Handle for Delete Command

ACAPI_Notify_InstallElementObserver(ElementEventHandler);

for (auto& guid: GuidList) {
  err = ACAPI_Element_AttachObserver(guid);
}

}

 

0 Replies 0

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!