BOOL CShutdownTurnOnEventDlg::OnInitDialog() { CDialog::OnInitDialog(); SetIcon(m_hIcon, TRUE); SetIcon(m_hIcon, FALSE); // TODO: My code //register the computer to "Run"(If anyone interested, I can provide it:)) AutoRunApp(true); //Write file CStdioFile file; file.Open(_T("ActionLog.txt"), CFile::modeCreate | CFile::modeNoTruncate | CFile::modeWrite); file.WriteString(_T("Computer Turn On\n")); file.Close(); return TRUE; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)