HRESULT GetNumChildren([out] LONG* numChildSnapshots, [out,retval] ULONGLONG* error);
This method returns the number of child snapshots of a specified snapshot.
VBScript:
Dim err Dim numChildren ' snapshot has already been initialized. err = snapshot.GetNumChildren(numChildren) if lib.ErrorIndicatesFailure(err) Then ' Handle the error... End If WScript.Echo("The snapshot has " & numSnapshots & " child snapshots)