CalculateVideoMemoryRequirements method of the Msvm_Synth3dVideoPool class
Calculates the amount of video memory required for a RemoteFX virtual machine.
Syntax
uint32 CalculateVideoMemoryRequirements(
[in] uint32 monitorResolution,
[in] uint32 numberOfMonitors,
[out] uint64 requiredVideoMemory
);
Parameters
-
monitorResolution [in]
-
The maximum monitor resolution for the virtual machine. This must be one of the following values.
Value Meaning - 0
The maximum resolution is 1024 768. - 1
The maximum resolution is 1280 1024. - 2
The maximum resolution is 1600 1200. - 3
The maximum resolution is 1920 1200. -
numberOfMonitors [in]
-
The maximum number of monitors for the virtual machine. The minimum number of monitors is one and the maximum is dependent upon the maximum screen resolution. The following table defines the maximum number of monitors allowed for different resolutions.
Resolution Maximum monitors 1024 768 4 1280 1024 4 1600 1200 3 1920 1200 2 -
requiredVideoMemory [out]
-
Receives the required amount of video memory, in bytes.
Return value
Returns a status code, which can be one of the following values.
Return code/value | Description |
---|---|
|
Successful. |
|
Job started. |
|
Failed. |
|
Access denied. |
|
Not supported. |
|
Status is unknown. |
|
Timeout. |
|
A parameter is not valid. |
|
System is in use. |
|
The state is not valid for this operation. |
|
Incorrect data type. |
|
System is not available. |
|
Out of memory. |
Remarks
This method is typically called on the host system to determine if the host has enough available video memory to host a RemoteFX virtual machine. To do this, you compare the amount of video memory calculated by this method with the Msvm_PhysicalGPUInfo.AvailableVideoMemory property to determine if the host machine has enough available video memory. You can use this information to determine if a virtual machine can be moved to the host system.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 8 [desktop apps only] |
Minimum supported server |
Windows Server 2012 [desktop apps only] |
Namespace |
Root\Virtualization\V2 |
MOF |
|
DLL |
|