Thanks for the info. That was it. Also, you are right in that even if you
return !ERROR_SUCCESS, resource does get deleted and that is fine with me and
probably in many cases. I guess defuat handler in resource monitor process
ignores it.
Thanks again.
"Ritu" wrote:
> To handle deletion of your resource, you can handle CLUSCTL_RESOURCE_DELETE
> control code in your resource dll's ResourceControl Callback Function. You
> wont be able to stop deletion of your resource butu you can certianly take
> any action in this handler.
>
>
> "RD" wrote:
>
> > I'm writting a resource dll and tyring to perfrom some actions when my
> > resource is deleted from the cluster config. I looked at adding code during
> > OnClose() function, but it turned out that OnClose() is called when clussvc
> > is stopped. My question is how can I distinguished between delete/remove of
> > resource and cluster/system shutdown. Is there a way to capture service as
> > well as system shutdown from resource DLL. Thanks.
|