ProcessID Property [Visio 2003 SDK Documentation]
Returns a unique process ID for a Microsoft Office Visio instance.
retVal = object**.ProcessID**
retVal Long. The process ID for the Visio instance.
object Required. An expression that returns an Application object.
Version added
2.0
Remarks
The ProcessID property returns a value unique to the indicated instance. The application doesn't reuse the value until 4294967296 (2^32) more processes have been created on the current workstation.
Example
This Microsoft Visual Basic for Applications (VBA) program shows how to use the ProcessID property to determine the process ID for the current instance of Visio.
Sub ProcessID_Example ()
Dim vsoApplication As Visio.Application
'Get the current instance of Microsoft Office Visio.
Set vsoApplication = Visio.Application
'Prints the Process ID in the Immediate window.
Debug.Print "Visio Process ID : "; vsoApplication.ProcessID
End Sub
Applies to | Application object | InvisibleApp object