StartupParameters Property for Generic Services

The StartupParameters property describes the command-line to pass to the service when it is started.

Quick Info

Type: Null-terminated Unicode string
Access: Read/write
Status: Optional
Function: ClusterResourceControl
Structure: CLUSPROP_SZ
Control Code: CLUSCTL_RESOURCE_GET_PRIVATE_PROPERTIES

Remarks

When ClusterResourceControl processes the CLUSCTL_RESOURCE_GET_PRIVATE_PROPERTIES control code, it returns a property list that includes the StartupParameters property as one of the entries. The property value portion of the entry contains a CLUSPROP_SZ structure that is set as follows:

CLUSPROP_SZ StartupParametersValue;
LPCWSTR StartupParametersData = L "C:\bin\MyService.exe";
StartupParametersValue.Syntax = CLUSPROP_SYNTAX_LIST_VALUE_SZ;
StartupParametersValue.cbLength = sizeof(StartupParametersData);
lstrcpyW(StartupParametersValue.sz, StartupParametersData);
 

QuickInfo

  Version: Use Windows NT Server Enterprise Edition 4.0.
  Windows CE: Unsupported.
  Header: Declared in clusapi.h.