添加项目文件。
This commit is contained in:
29
Etw Syscall/libpeconv-master/tests/test_case4/main.cpp
Normal file
29
Etw Syscall/libpeconv-master/tests/test_case4/main.cpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#include <windows.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int popup_message1()
|
||||
{
|
||||
SYSTEMTIME SystemTime;
|
||||
GetSystemTime(&SystemTime);
|
||||
|
||||
TCHAR pszDate[200];
|
||||
GetDateFormatA( LOCALE_USER_DEFAULT, DATE_LONGDATE, &SystemTime, NULL, pszDate, 200 );
|
||||
|
||||
return MessageBoxA(NULL, pszDate, "Test Case 1", MB_OK);
|
||||
}
|
||||
|
||||
int popup_message2()
|
||||
{
|
||||
return MessageBoxW(NULL, L"Checking wide strings", L"Test Case 1", MB_OK);
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
if (popup_message1() == 1337) {
|
||||
if (popup_message2() == 1338) {
|
||||
return MessageBoxW(NULL, L"Hooking test passed", L"Test Case 1", MB_OK);
|
||||
}
|
||||
}
|
||||
printf("Test Case 4 finished\n");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user