The ResUtilGetEnvironmentWithNetName utility function creates an environment block that appends a CLUSTER_NETWORK_NAME environment variable to the current environment block.
LPVOID WINAPI ResUtilGetEnvironmentWithNetName(
HRESOURCE hResource
);
If the operation was successful, ResUtilGetEnvironmentWithNetName returns a pointer to the new environment block.
If the operation was unsuccessful, ResUtilGetEnvironmentWithNetName returns NULL. For more information, call the Win32 function GetLastError.
The environment variable that is appended to the current environment block is set to the Name property of the Network Name resource for the resource identified by hResource.
Callers can pass this environment block to the Win32 function CreateProcess to create an environment appropriate for Cluster Server operations.
Version: Use Windows NT Server Enterprise Edition 4.0.
Windows CE: Unsupported.
Header: Declared in clusapi.h.