Teilen über


StartupParameters

Describes the command-line to pass to the Generic Service when it is started. The following table summarizes the attributes of the StartupParameters property.

Attribute Value
Data type Null-terminated Unicode string
Access Read/write
Status Optional
Structure CLUSPROP_SZ
Maximum None (but see Maximum Property Size.)
Default NULL

Remarks

The CLUSPROP_SZ_DECLARE macro creates a CLUSPROP_SZ structure with an array of the correct size.

Examples

The property value portion of a property list entry for StartupParameters can be set with the following example code.

WCHAR szStartupParametersData[] = L"PARAM1,PARAM2";
CLUSPROP_SZ_DECLARE( StartupParametersValue, 
                     sizeof(szStartupParametersData) / sizeof(WCHAR) );
StartupParametersValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_SZ;
StartupParametersValue.cbLength = sizeof( szStartupParametersData );
StringCbCopy( StartupParametersValue.sz, 
              StartupParametersValue.cbLength, 
              szStartupParametersData );

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008 Enterprise, Windows Server 2008 Datacenter

See also

Generic Service Private Properties

CLUSPROP_SZ

CLUSPROP_SZ_DECLARE