本文整理汇总了C++中Core::Close方法的典型用法代码示例。如果您正苦于以下问题:C++ Core::Close方法的具体用法?C++ Core::Close怎么用?C++ Core::Close使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Core
的用法示例。
在下文中一共展示了Core::Close方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: _tWinMain
//int _tmain(int argc, _TCHAR* argv[])
//void main()
//int WINAPI _tWinMain(HINSTANCE hinstExe, HINSTANCE, PTSTR pszCmdLine, int)
int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
CProcessExt *pCurrent = CProcessExt::Current();
CString str = pCurrent->ToString();
bool c1 = pCurrent->IsStopClose();
pCurrent->SetInherit(true);
bool c2 = pCurrent->IsInherit();
pCurrent->Close();
CProcessExt::Dispose(pCurrent);
CString msg = CTool::GetErrorMessageByNum(2);
SMutexInfo minfo;
minfo.Name = _T("myinstance");
minfo.IsInherit = FALSE;
minfo.IsInitialOwner = FALSE;
minfo.lpSecurityDescriptor = NULL;
CMutexExt *pMutex = CMutexExt::Create(minfo);
bool isInherit1 = pMutex->IsInherit();
bool ok = pMutex->SetInherit(true);
bool isInherit2 = pMutex->IsInherit();
CString temp = pMutex->ToString();
CMutexExt::Dispose(pMutex);
CString key = _T("ExtHandle");
bool flag = CEnvironment::SetVariable(key, temp);
CString temp2 = CEnvironment::GetVariable(key);
Core *pCore = Core::Parse(temp2);
pCore->Close();
Core::Dispose(pCore);
CEnvironment::SetVariable(key, _T("haha"));
CEnvironment::ClearVariable(key);
return 0;
}