ReactOS  0.4.14-dev-49-gfb4591c
main.c
Go to the documentation of this file.
1 // main.c :
2 //
3 #include <windows.h>
4 #include <stdio.h>
5 #include "regdump.h"
6 
7 
10 
11 
12 DWORD GetInput(char* Buffer, int buflen)
13 {
14  DWORD Result;
15 
17  return Result;
18 }
19 
20 int __cdecl main(int argc, char* argv[])
21 {
22  //AllocConsole();
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 
37 {
38 
39  //DllMain(NULL, DLL_PROCESS_ATTACH, NULL);
40 
41  main(1, args);
42  return 0;
43 }
44 
45 #endif /*__GNUC__*/
static int argc
Definition: ServiceArgs.c:12
#define __cdecl
Definition: accygwin.h:79
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
Definition: console.c:152
DWORD GetInput(char *Buffer, int buflen)
Definition: main.c:12
#define argv
Definition: mplay32.c:18
Definition: match.c:390
HANDLE InputHandle
Definition: main.c:9
smooth NULL
Definition: ftsmooth.c:416
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
Definition: wsk.h:426
Definition: bufpool.h:45
#define STD_INPUT_HANDLE
Definition: winbase.h:264
HANDLE OutputHandle
Definition: main.c:8
unsigned long DWORD
Definition: ntddk_ex.h:95
BOOL WINAPI DECLSPEC_HOTPATCH ReadConsoleA(IN HANDLE hConsoleInput, OUT LPVOID lpBuffer, IN DWORD nNumberOfCharsToRead, OUT LPDWORD lpNumberOfCharsRead, IN PCONSOLE_READCONSOLE_CONTROL pInputControl OPTIONAL)
Definition: readwrite.c:1197
int __cdecl mainCRTStartup(void)
Definition: main.c:36
int main(int argc, const char *argv[])
Definition: main.c:122
#define STD_OUTPUT_HANDLE
Definition: winbase.h:265
int regdump(int argc, char *argv[])
Definition: regdump.c:89