mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-05-06 19:01:58 +03:00
30 lines
643 B
C++
30 lines
643 B
C++
![]() |
//////////////////////////////////////////////////////////////////////////////
|
||
|
//
|
||
|
// Detours Test Program (sleep5.cpp of sleep5.exe)
|
||
|
//
|
||
|
// Microsoft Research Detours Package
|
||
|
//
|
||
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#include <windows.h>
|
||
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
int __cdecl main(int argc, char ** argv)
|
||
|
{
|
||
|
if (argc == 2) {
|
||
|
Sleep(atoi(argv[1]) * 1000);
|
||
|
}
|
||
|
else {
|
||
|
printf("sleep5.exe: Starting.\n");
|
||
|
|
||
|
Sleep(5000);
|
||
|
|
||
|
printf("sleep5.exe: Done sleeping.\n");
|
||
|
}
|
||
|
return 0;
|
||
|
}
|
||
|
//
|
||
|
///////////////////////////////////////////////////////////////// End of File.
|