ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/DTUtil/DTUtil.cpp
(Generate patch)

Comparing CheckNT/CheckNT.c (file contents):
Revision 46 by Douglas Thrift, 2003-12-10T14:37:13-08:00 vs.
Revision 48 by Douglas Thrift, 2003-12-10T14:47:16-08:00

# Line 1 | Line 1
1 < // Check NT Nullsoft Installer System Plugin
2 < //
3 < // Douglas Thrift
4 < //
5 < // $Id$
6 <
7 < #include <windows.h>
8 < #include "D:\NSIS\Contrib\ExDll\exdll.h"
9 <
10 < void __declspec(dllexport) CheckNT(HWND hwndParent, int string_size, char
11 <                                                                   *variables, stack_t **stacktop)
12 < {
13 <        EXDLL_INIT();
14 <
15 <        {
16 <                OSVERSIONINFO os;
17 <
18 <                os.dwOSVersionInfoSize = sizeof(os);
19 <
20 <                GetVersionEx(&os);
21 <
22 <                if (os.dwPlatformId == VER_PLATFORM_WIN32_NT)
23 <                {
24 <                        pushstring("true");
25 <                }
26 <                else
27 <                {
28 <                        pushstring("false");
29 <                }
30 <        }
31 < }
32 <
33 < BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
34 < {
35 <        return TRUE;
36 < }
1 > // Check NT Nullsoft Installer System Plugin
2 > //
3 > // Douglas Thrift
4 > //
5 > // $Id$
6 >
7 > #include <windows.h>
8 > #include "D:\NSIS\Contrib\ExDll\exdll.h"
9 >
10 > void __declspec(dllexport) CheckNT(HWND hwndParent, int string_size, char
11 >        *variables, stack_t **stacktop)
12 > {
13 >        EXDLL_INIT();
14 >
15 >        {
16 >                OSVERSIONINFO os;
17 >
18 >                os.dwOSVersionInfoSize = sizeof(os);
19 >
20 >                GetVersionEx(&os);
21 >
22 >                if (os.dwPlatformId == VER_PLATFORM_WIN32_NT)
23 >                {
24 >                        pushstring("true");
25 >                }
26 >                else
27 >                {
28 >                        pushstring("false");
29 >                }
30 >        }
31 > }
32 >
33 > BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
34 > {
35 >        return TRUE;
36 > }

Comparing CheckNT/CheckNT.c (property svn:eol-style):
Revision 46 by Douglas Thrift, 2003-12-10T14:37:13-08:00 vs.
Revision 48 by Douglas Thrift, 2003-12-10T14:47:16-08:00

# Line 0 | Line 1
1 + native

Comparing CheckNT/CheckNT.c (property svn:keywords):
Revision 46 by Douglas Thrift, 2003-12-10T14:37:13-08:00 vs.
Revision 48 by Douglas Thrift, 2003-12-10T14:47:16-08:00

# Line 0 | Line 1
1 + Id

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines