========================================================================
CLUSTER RESOURCE DLL : SMB Sample (SmbSmp)
========================================================================
AppWizard has created this SMB Sample resource DLL for you. This
DLL not only demonstrates the basics of using the Cluster API but is
also a starting point for writing your DLL.
This file contains a summary of what you will find in each of the files
that make up your SMB Sample resource DLL.
SmbSmp.c
This is the main DLL source file. It contains implementations for
all required resource DLL entry points along with some helper
functions.
SmbSmp.rc
This is a listing of all of the Microsoft Windows resources that
the program uses. This file can be directly edited in Microsoft
Developer Studio.
SmbSmp.def
This file contains information about the DLL that must be
provided to run with the cluster software. It defines parameters
such as the name and description of the DLL. It also exports
functions from the DLL.
/////////////////////////////////////////////////////////////////////////////
Adding your resource type to the cluster:
To add your resource type to the cluster, use cluster.exe.
Cluster resourcetype "SMB Sample" /create /dllname:SmbSmp.dll
If you don't specify a path to your resource DLL, Cluster Server will search
for it first in the cluster directory and then on the system path.
You can now create resources of type "SMB Sample" using either
Cluster Administrator or cluster.exe. To use Cluster Administrator to
create resources, create a Cluster Administrator Extension DLL for your
resource. This is highly recommended. To create a resource using cluster.exe,
use a command like the following:
cluster resource "My SMB Sample" /create /group:"My Group" /type:"SMB Sample"
cluster resource "My SMB Sample" /privproperties
ShareName="value"
Path="value"
/////////////////////////////////////////////////////////////////////////////
Other notes:
AppWizard uses "TODO:" to indicate parts of the source code you should add
to or customize.
AppWizard uses "ADDPARAM:" to indicate parts of the source code you should
modify if you add or remove parameters.
/////////////////////////////////////////////////////////////////////////////