本文整理汇总了C++中scxcorelib::SCXHandle::GetProcessWaitingForEvent方法的典型用法代码示例。如果您正苦于以下问题:C++ SCXHandle::GetProcessWaitingForEvent方法的具体用法?C++ SCXHandle::GetProcessWaitingForEvent怎么用?C++ SCXHandle::GetProcessWaitingForEvent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类scxcorelib::SCXHandle
的用法示例。
在下文中一共展示了SCXHandle::GetProcessWaitingForEvent方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AddProperties
//.........这里部分代码省略.........
if (processinst->GetWorkingSetSize(ulong))
{
SCXProperty prop(L"WorkingSetSize", ulong);
inst.AddProperty(prop);
}
if (processinst->GetProcessSessionID(ulong))
{
SCXProperty prop(L"ProcessSessionID", ulong);
inst.AddProperty(prop);
}
if (processinst->GetProcessTTY(name))
{
SCXProperty prop(L"ProcessTTY", StrFromMultibyte(name));
inst.AddProperty(prop);
}
if (processinst->GetModulePath(name))
{
SCXProperty prop(L"ModulePath", StrFromMultibyte(name));
inst.AddProperty(prop);
}
if (processinst->GetParameters(params))
{
std::vector<SCXProperty> props;
for (std::vector<std::string>::const_iterator iter = params.begin();
iter != params.end(); ++iter)
{
SCXProperty item(L"", StrFromMultibyte(*iter));
props.push_back(item);
}
SCXProperty prop(L"Parameters", props);
inst.AddProperty(prop);
}
if (processinst->GetProcessWaitingForEvent(name))
{
SCXProperty prop(L"ProcessWaitingForEvent", StrFromMultibyte(name));
inst.AddProperty(prop);
}
if (processinst->GetName(name))
{
SCXProperty name_prop(L"Name", StrFromMultibyte(name));
inst.AddProperty(name_prop);
}
if (processinst->GetPriority(uint))
{
SCXProperty prio_prop(L"Priority", uint);
inst.AddProperty(prio_prop);
}
if (processinst->GetExecutionState(ushort))
{
SCXProperty state_prop(L"ExecutionState", ushort);
inst.AddProperty(state_prop);
}
if (processinst->GetCreationDate(ctime))
{
SCXProperty cdate_prop(L"CreationDate", ctime);
inst.AddProperty(cdate_prop);
}
if (processinst->GetTerminationDate(ctime))
{
SCXProperty edate_prop(L"TerminationDate", ctime);
inst.AddProperty(edate_prop);
}
if (processinst->GetParentProcessID(pid))
{
SCXProperty ppid_prop(L"ParentProcessID", StrFrom(pid));
inst.AddProperty(ppid_prop);
}
if (processinst->GetRealUserID(ulong))
{
SCXProperty user_prop(L"RealUserID", ulong);
inst.AddProperty(user_prop);
}
if (processinst->GetProcessGroupID(ulong))
{
SCXProperty group_prop(L"ProcessGroupID", ulong);
inst.AddProperty(group_prop);
}
if (processinst->GetProcessNiceValue(uint))
{
SCXProperty nice_prop(L"ProcessNiceValue", uint);
inst.AddProperty(nice_prop);
}
}
}