UseNetworkName

[This property is no longer available for use as of Windows Server 2012.]

This property is not supported.

**Windows Server 2008 R2 and Windows Server 2008: **

Affects the outcome of a call to the GetComputerName function.UseNetworkName is a property of a generic script resource. The following table summarizes the attributes of the UseNetworkName property.

Attribute Value
Data type
DWORD
Access
Read/write
Status
Optional
Structure
CLUSPROP_DWORD
Minimum
FALSE (0)
Maximum
TRUE (1)
Default
FALSE (0)

Remarks

When an application being managed as a generic script resource calls GetComputerName, the UseNetworkName property determines what kind of data is returned as follows.

UseNetworkName value Name returned by GetComputerName
TRUE (1)
The name of the network, as stored in the Name private property of the Network Name resource on which the application depends.
FALSE (0)
The name of the node currently running the application.

Examples

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

DWORD          UseNetworkNameData = TRUE;
CLUSPROP_DWORD UseNetworkNameValue;

UseNetworkNameValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_DWORD;
UseNetworkNameValue.cbLength  = sizeof(DWORD);
UseNetworkNameValue.dw        = UseNetworkNameData;

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008 Datacenter, Windows Server 2008 Enterprise
End of client support
None supported
End of server support
Windows Server 2008 R2 Datacenter, Windows Server 2008 R2 Enterprise

See also

Generic Script Private Properties

CLUSPROP_DWORD

GetComputerName

Name