Template EPs

This commit is contained in:
vxunderground 2021-11-12 12:38:35 -06:00
parent 9d92d6ef39
commit c3202c200a
3 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,20 @@
#include <Windows.h>
#pragma comment(linker, "/entry:__EntryPointEx")
#pragma comment(linker, "/subsystem:windows")
INT __EntryPointEx(VOID)
{
DWORD dwError = ERROR_SUCCESS;
BOOL bFlag = FALSE;
bFlag = TRUE;
EXIT_ROUTINE:
if (!bFlag)
dwError = GetLastError();
return dwError;
}

17
Templates/GenericMain.cpp Normal file
View File

@ -0,0 +1,17 @@
#include <Windows.h>
INT main(VOID)
{
DWORD dwError = ERROR_SUCCESS;
BOOL bFlag = FALSE;
bFlag = TRUE;
EXIT_ROUTINE:
if (!bFlag)
dwError = GetLastError();
return dwError;
}

22
Templates/wWinMain.cpp Normal file
View File

@ -0,0 +1,22 @@
#include <Windows.h>
#pragma comment(linker, "/subsystem:windows")
int APIENTRY wWinMain(_In_ HINSTANCE hInst,
_In_opt_ HINSTANCE hInstPrev,
_In_ PWSTR cmdline,
_In_ INT cmdshow)
{
DWORD dwError = ERROR_SUCCESS;
BOOL bFlag = FALSE;
bFlag = TRUE;
EXIT_ROUTINE:
if (!bFlag)
dwError = GetLastError();
return dwError;
}