Updates to test program.
[reactos.git] / reactos / apps / tests / regdump / main.c
1 // main.c :
2 //
3 #include <windows.h>
4 #include <stdio.h>
5 #include "regdump.h"
6
7
8 HANDLE OutputHandle;
9 HANDLE InputHandle;
10
11
12 DWORD GetInput(char* Buffer, int buflen)
13 {
14 DWORD Result;
15
16 ReadConsoleA(InputHandle, Buffer, buflen, &Result, NULL);
17 return Result;
18 }
19
20 int __cdecl main(int argc, char* argv[])
21 {
22 //AllocConsole();
23 InputHandle = GetStdHandle(STD_INPUT_HANDLE);
24 OutputHandle = GetStdHandle(STD_OUTPUT_HANDLE);
25 //return regmain(argc, argv);
26 return regdump(argc, argv);
27 }
28
29
30 #ifndef __GNUC__
31
32 //__declspec(dllimport) int __stdcall DllMain(void* hinstDll, unsigned long dwReason, void* reserved);
33
34 char* args[] = { "regdump.exe", "0", "ansi", "verbose"};
35
36 int __cdecl mainCRTStartup(void)
37 {
38
39 //DllMain(NULL, DLL_PROCESS_ATTACH, NULL);
40
41 main(1, args);
42 return 0;
43 }
44
45 #endif /*__GNUC__*/