ReactOS 0.4.15-dev-8127-g6338913
main.c File Reference
#include <windows.h>
#include <stdio.h>
#include "regdump.h"
Include dependency graph for main.c:

Go to the source code of this file.

Functions

DWORD GetInput (char *Buffer, int buflen)
 
int __cdecl main (int argc, char *argv[])
 
int __cdecl mainCRTStartup (void)
 

Variables

HANDLE OutputHandle
 
HANDLE InputHandle
 
charargs [] = { "regdump.exe", "0", "ansi", "verbose"}
 

Function Documentation

◆ GetInput()

DWORD GetInput ( char Buffer,
int  buflen 
)

Definition at line 12 of file main.c.

13{
15
17 return Result;
18}
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
unsigned long DWORD
Definition: ntddk_ex.h:95
HANDLE InputHandle
Definition: main.c:9
_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

Referenced by regdump().

◆ main()

int __cdecl main ( int argc  ,
char argv[] 
)

Definition at line 20 of file main.c.

21{
22 //AllocConsole();
25 //return regmain(argc, argv);
26 return regdump(argc, argv);
27}
static int argc
Definition: ServiceArgs.c:12
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
Definition: console.c:203
HANDLE OutputHandle
Definition: main.c:8
#define argv
Definition: mplay32.c:18
int regdump(int argc, char *argv[])
Definition: regdump.c:89
#define STD_OUTPUT_HANDLE
Definition: winbase.h:268
#define STD_INPUT_HANDLE
Definition: winbase.h:267

◆ mainCRTStartup()

int __cdecl mainCRTStartup ( void  )

Definition at line 36 of file main.c.

37{
38
39 //DllMain(NULL, DLL_PROCESS_ATTACH, NULL);
40
41 main(1, args);
42 return 0;
43}
int main()
Definition: test.c:6
Definition: match.c:390

Variable Documentation

◆ args

char* args[] = { "regdump.exe", "0", "ansi", "verbose"}

Definition at line 34 of file main.c.

◆ InputHandle

HANDLE InputHandle

Definition at line 9 of file main.c.

Referenced by GetInput(), and main().

◆ OutputHandle

HANDLE OutputHandle

Definition at line 8 of file main.c.

Referenced by main().