mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
5368a4c682
svn path=/trunk/; revision=11362
45 lines
825 B
C
45 lines
825 B
C
// main.c :
|
|
//
|
|
#include <windows.h>
|
|
#include <stdio.h>
|
|
#include "regdump.h"
|
|
|
|
|
|
HANDLE OutputHandle;
|
|
HANDLE InputHandle;
|
|
|
|
|
|
DWORD GetInput(char* Buffer, int buflen)
|
|
{
|
|
DWORD Result;
|
|
|
|
ReadConsoleA(InputHandle, Buffer, buflen, &Result, NULL);
|
|
return Result;
|
|
}
|
|
|
|
int __cdecl main(int argc, char* argv[])
|
|
{
|
|
//AllocConsole();
|
|
InputHandle = GetStdHandle(STD_INPUT_HANDLE);
|
|
OutputHandle = GetStdHandle(STD_OUTPUT_HANDLE);
|
|
//return regmain(argc, argv);
|
|
return regdump(argc, argv);
|
|
}
|
|
|
|
|
|
#ifndef __GNUC__
|
|
|
|
//__declspec(dllimport) int __stdcall DllMain(void* hinstDll, unsigned long dwReason, void* reserved);
|
|
|
|
char* args[] = { "regdump.exe", "0", "ansi", "verbose"};
|
|
|
|
int __cdecl mainCRTStartup(void)
|
|
{
|
|
|
|
//DllMain(NULL, DLL_PROCESS_ATTACH, NULL);
|
|
|
|
main(1, args);
|
|
return 0;
|
|
}
|
|
|
|
#endif /*__GNUC__*/
|