Creating a Cluster Resource DLL (Part 5): Logs

Creating a Cluster Resource DLL (Part 5): Logs

Rate This
  • Comments 1



In this series of blog posts we will help you to design, develop and debug the Resource DLL you are developing to give your application high-availability with Windows Server 2008 & 2008 R2 Failover Clustering.


We recommend you start with the other blog post in the series:

·         Part 1:

·         Part 2:

·         Part 3:

·         Part 4:


In this post we will describe how to write to logs from within the Resource DLL.


First familiarize yourself with the Startup call:


During the Startup call you are being provided with the LogEvent function pointer.  This is designed for the diagnostics logging, and the messages you log using this method go straight to the cluster log and are interleaved with messages from the other cluster components.  You can create or see the log by following the instructions provided in this blog post:  


For more information on the logging see Many of the Cluster Administrators are familiar with the cluster log so writing your message there is the best way to go about providing information to users.


I hope this series of blog posts will be helpful when you design your own Resource DLL.


Vladimir Petter
Senior Software Development Engineer
Clustering & High-Availability

Leave a Comment
  • Please add 1 and 3 and type the answer here:
  • Post
  • I have been reading this series of posts  creating a cluster resource dll.

    I was hoping that the series would end up with a working sample to be downloaded as a starting point, but that doesn’t seem to be the case.

    The cluster samples in Windows SDK looks very old and outdated , so I was wondering if you are aware of where to find newer working samples.

    I am specifically looking for samples on resource dlls for storage classes.

Page 1 of 1 (1 items)