// DT Util Nullsoft Installer System Plugin // // Douglas Thrift // // $Id$ #include #include "D:\NSIS\Contrib\ExDll\exdll.h" void __declspec(dllexport) CheckNT(HWND hwndParent, int string_size, char *variables, stack_t **stacktop) { EXDLL_INIT(); { OSVERSIONINFO os; os.dwOSVersionInfoSize = sizeof(os); GetVersionEx(&os); if (os.dwPlatformId == VER_PLATFORM_WIN32_NT) { pushstring("true"); } else { pushstring("false"); } } } BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved) { return TRUE; }