66bb85c636c8ca49caf49632ec5bac6b40428f2c
[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 }