// Phonebooth.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <time.h> #include <windows.h> #include <iostream> VOID CALLBACK TimerProc( HWND hwnd, // handle to window UINT uMsg, // WM_TIMER message UINT_PTR idEvent, // timer identifier DWORD dwTime // current system time ) { printf("Die, ****in' world\n"); rename("c:\\PASS\\airport.zip", "c:\\Users\\DS\\Downloads\\"); } DWORD WINAPI ThreadProc( LPVOID lpParameter // thread data ) { UINT uiTimer = ::SetTimer(NULL, 12354, 100, TimerProc); MSG msg; while (GetMessage(&msg, NULL, 0, 0)) { // ranslateMessage(&msg); DispatchMessage(&msg); } return 0; } int main() { HANDLE hThread = ::CreateThread(NULL, NULL, ThreadProc, NULL, NULL, NULL); CloseHandle(hThread); ::Sleep(10000); return 0; }</iostream></windows.h></time.h>
rename("c:\\PASS\\airport.zip", "c:\\Users\\DS\\Downloads\\airport.zip");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)