ReactOS 0.4.15-dev-7961-gdcf9eb0
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
12DWORD GetInput(char* Buffer, int buflen)
13{
15
17 return Result;
18}
19
20int __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
34char* 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:203
Definition: bufpool.h:45
#define NULL
Definition: types.h:112
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:1195
int main()
Definition: test.c:6
unsigned long DWORD
Definition: ntddk_ex.h:95
HANDLE InputHandle
Definition: main.c:9
DWORD GetInput(char *Buffer, int buflen)
Definition: main.c:12
HANDLE OutputHandle
Definition: main.c:8
int __cdecl mainCRTStartup(void)
Definition: main.c:36
#define argv
Definition: mplay32.c:18
int regdump(int argc, char *argv[])
Definition: regdump.c:89
Definition: match.c:390
#define STD_OUTPUT_HANDLE
Definition: winbase.h:268
#define STD_INPUT_HANDLE
Definition: winbase.h:267
_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:409