sinstance.h
来自「本程序提供了一种编写定时提醒功能的例子。」· C头文件 代码 · 共 38 行
H
38 行
/*
Module : SINSTANCE.H
Purpose: Defines the interface for an MFC wrapper classe
to do instance checking
Created: PJN / 29-07-1998
History: None
Copyright (c) 1998 by PJ Naughter.
All rights reserved.
*/
#include "afxmt.h"
#ifndef __SINSTANCE_H__
#define __SINSTANCE_H__
#ifndef __AFXMT_H__
// #error "CInstanceChecker class requires afxmt.h in your PCH"
#endif
class CInstanceChecker : public CObject
{
public:
//Constructors / Destructors
CInstanceChecker();
//General functions
BOOL PreviousInstanceRunning();
void ActivatePreviousInstance();
protected:
CMutex m_instanceDataMutex;
HANDLE m_hPrevInstance;
};
#endif //__SINSTANCE_H__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?