mirror of
https://github.com/mrexodia/phnt-single-header
synced 2026-06-08 16:10:51 +00:00
26 lines
537 B
C
26 lines
537 B
C
#define PHNT_VERSION PHNT_WIN11
|
|
#include "phnt.h"
|
|
|
|
#ifdef __cplusplus
|
|
static char message[] = "Hello from phnt in C++\r\n";
|
|
#else
|
|
static char message[] = "Hello from phnt in C\r\n";
|
|
#endif // __cplusplus
|
|
|
|
extern int EntryPoint(PPEB peb)
|
|
{
|
|
IO_STATUS_BLOCK IoStatusBlock = { 0, 0 };
|
|
NtWriteFile(
|
|
peb->ProcessParameters->StandardOutput,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
&IoStatusBlock,
|
|
message,
|
|
sizeof(message) - 1,
|
|
NULL,
|
|
NULL
|
|
);
|
|
return 0;
|
|
}
|