IFPSTools.NET/examples/HelloWorld.c
2023-03-28 17:45:20 +01:00

43 lines
779 B
C

// Define the primitives/builtins.
typedef char s8;
typedef unsigned char u8;
typedef short s16;
typedef unsigned short u16;
typedef int s32;
typedef unsigned int u32;
typedef __int64 s64;
typedef unsigned __int64 u64;
typedef __String PSTR;
typedef unsigned __String PWSTR;
typedef u8 BYTE;
typedef u16 WORD;
typedef u32 DWORD;
typedef u64 QWORD;
typedef u8 BOOLEAN;
typedef u32 NTSTATUS;
typedef s32 HRESULT;
typedef void * PVOID;
typedef u32 IntPtr;
enum {
false = 0,
true = 1
};
enum {
MB_OK = 0,
mbInformation = 0
};
// Define imported external functions.
// Displays a message box.
static s32 __attribute(__internal) MsgBox(PWSTR Text, s32 Type, s32 Buttons);
BOOLEAN InitializeUninstall() {
MsgBox(L"Hello IFPS world!", MB_OK, mbInformation);
return false;
}