SMBsmp Sample: SMB Cluster Resource DLL

Click to open or copy the Smbsmp project files.

This DLL demonstrates the basics of using the Cluster API and is also a starting point for writing your DLL.

AppWizard has created this SMB Sample resource DLL for you. This sample resource DLL demonstrates the basics of using the Cluster API and is also a starting point for writing your DLL.

The following files make up the SMB Sample resource DLL:

File Description
SmbSmp.c The main DLL source file. It contains implementations for all required resource DLL entry points along with some helper functions.
SmbSmp.rc 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 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.

Building SDK Samples

This sample uses the following keywords:

clres_v1_function_table; clusterregclosekey; clusterregcreatekey; clusworkercreate; clusworkerterminate; comment; dbg_print; disablethreadlibrarycalls; dllmain; field_offset; getlasterror; localalloc; localfree; lstrcmpiw; lstrcpyw; lstrlenw; netshareadd; netsharedel; netsharegetinfo; resutildupparameterblock; resutilenumproperties; resutilfreeparameterblock; resutilgetallproperties; resutilgetpropertiestoparameterblock; resutilsetpropertyparameterblock; resutilstartresourceservice; resutilverifypropertytable; setlasterror; smbsmpcheckisalive; smbsmpclose; smbsmpdoterminate; smbsmpgetprivateresproperties; smbsmpisalive; smbsmplooksalive; smbsmpoffline; smbsmponline; smbsmponlinethread; smbsmpopen; smbsmpresourcecontrol; smbsmpresourcetypecontrol; smbsmpsetprivateresproperties; smbsmpterminate; smbsmpvalidateprivateresproperties; startup; switch; text; warning; zeromemory