資源簡介
上網時間長了,大家可能覺得眼疼,脖子疼。這款定時提醒小工具可能會幫到大家自制。但要做到真正的自制還需要大家自覺

代碼片段和文件信息
//?Alert.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Alert.h“
#include?“AlertDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CAlertApp
BEGIN_MESSAGE_MAP(CAlertApp?CWinApp)
//{{AFX_MSG_MAP(CAlertApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CAlertApp?construction
CAlertApp::CAlertApp()
{
//?TODO:?add?construction?code?here
//提升進程的權限
HANDLE?hToken;
TOKEN_PRIVILEGES?tp;
LUID?luid;
::OpenProcessToken(::GetCurrentProcess()TOKEN_ADJUST_PRIVILEGES|TOKEN_QUERY&hToken);
::LookupPrivilegeValue(NULLSE_DEBUG_NAME&luid);
tp.PrivilegeCount?=?1;
tp.Privileges[0].Luid?=?luid;
tp.Privileges[0].Attributes?=?SE_PRIVILEGE_ENABLED;
AdjustTokenPrivileges(hTokenFALSE&tpsizeof(TOKEN_PRIVILEGES)NULLNULL);
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CAlertApp?object
CAlertApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CAlertApp?initialization
BOOL?CAlertApp::InitInstance()
{
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
CAlertDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????52444??2009-05-30?01:06??alert\Alert.aps
?????文件???????1571??2009-05-30?01:17??alert\Alert.clw
?????文件???????2247??2009-05-29?22:58??alert\Alert.cpp
?????文件???????4755??2008-12-30?23:45??alert\Alert.dsp
?????文件????????535??2009-05-29?22:56??alert\Alert.dsw
?????文件???????1313??2002-05-13?13:52??alert\Alert.h
?????文件?????156672??2009-05-30?08:35??alert\Alert.ncb
?????文件??????55808??2009-05-30?08:35??alert\Alert.opt
?????文件???????2060??2009-05-30?08:35??alert\Alert.plg
?????文件???????5812??2009-05-30?01:06??alert\Alert.rc
?????文件??????11001??2009-05-30?08:33??alert\AlertDlg.cpp
?????文件???????2005??2009-05-30?08:30??alert\AlertDlg.h
?????文件????????392??2008-12-30?14:06??alert\Color.h
?????文件???????3092??2001-03-29?09:09??alert\ColorEdit.cpp
?????文件???????1683??2001-03-22?10:11??alert\ColorEdit.h
?????文件???????2775??2001-03-29?09:26??alert\ColorStatic.cpp
?????文件???????1543??2001-03-29?09:12??alert\ColorStatic.h
?????文件????3359744??2009-04-25?23:02??alert\Debug\Alert.bsc
?????文件?????135248??2009-05-30?00:39??alert\Debug\Alert.exe
?????文件?????328184??2009-05-30?00:39??alert\Debug\Alert.ilk
?????文件??????17692??2009-05-30?00:37??alert\Debug\Alert.obj
?????文件????6953296??2009-03-20?23:45??alert\Debug\Alert.pch
?????文件?????451584??2009-05-30?00:39??alert\Debug\Alert.pdb
?????文件??????18992??2009-05-30?00:37??alert\Debug\Alert.res
?????文件??????62100??2009-05-30?00:37??alert\Debug\Alert.sbr
?????文件??????52870??2009-05-30?00:39??alert\Debug\AlertDlg.obj
?????文件??????71063??2009-05-30?00:39??alert\Debug\AlertDlg.sbr
?????文件??????14432??2009-03-20?23:45??alert\Debug\ColorEdit.obj
?????文件??????????0??2009-03-20?23:45??alert\Debug\ColorEdit.sbr
?????文件??????13802??2009-03-20?23:45??alert\Debug\ColorStatic.obj
............此處省略20個文件信息
- 上一篇:安卓開發音樂播放器
- 下一篇:NC導出導入整月憑證教程
評論
共有 條評論