ReactOS  0.4.13-dev-986-g029b8f2
loadlib.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

DWORD ReportLastError (void)
 
long getinput (char *Buffer, int buflen)
 
void dprintf (char *fmt,...)
 

Variables

BOOL verbose_flagged
 
BOOL debug_flagged
 
BOOL loop_flagged
 
BOOL recursive_flagged
 

Function Documentation

◆ dprintf()

void dprintf ( char fmt,
  ... 
)

Definition at line 20 of file hivetest.c.

21 {
22  va_list args;
23  char buffer[255];
24 
25  va_start(args,fmt);
28  va_end(args);
29 }
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
GLuint buffer
Definition: glext.h:5915
Definition: match.c:390
#define va_end(ap)
Definition: acmsvcex.h:90
BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleA(IN HANDLE hConsoleOutput, IN CONST VOID *lpBuffer, IN DWORD nNumberOfCharsToWrite, OUT LPDWORD lpNumberOfCharsWritten, LPVOID lpReserved)
Definition: readwrite.c:1470
smooth NULL
Definition: ftsmooth.c:416
char * va_list
Definition: acmsvcex.h:78
HANDLE OutputHandle
Definition: hivetest.c:17
int __cdecl vsprintf(char *_Dest, const char *_Format, va_list _Args)
Definition: sprintf.c:733
#define va_start(ap, A)
Definition: acmsvcex.h:91
#define args
Definition: format.c:66
Definition: dsound.c:943

Referenced by CreateKeyTest(), DeleteKeyTest(), DeleteValueTest(), do_enumeratekey(), EnumerateKeyTest(), EnumerateValueTest(), LoadLibraryList(), main(), ReportLastError(), SetValueTest1(), SetValueTest2(), test1(), test2(), test3(), test4(), test5(), test6(), test7(), test8(), test9(), thread1(), thread2(), and usage().

◆ getinput()

long getinput ( char Buffer,
int  buflen 
)

Definition at line 59 of file loadlib.c.

60 {
61  DWORD result;
62 
63  ReadConsoleA(InputHandle, buf, buflen, &result, NULL);
64  return (long)result;
65 }
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
HANDLE InputHandle
Definition: loadlib.c:45
smooth NULL
Definition: ftsmooth.c:416
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
GLuint64EXT * result
Definition: glext.h:11304

Referenced by main().

◆ ReportLastError()

DWORD ReportLastError ( void  )

Definition at line 15 of file sc.c.

16 {
17  LPVOID lpMsgBuf;
18  DWORD RetVal;
19 
21  if (ErrorCode != ERROR_SUCCESS)
22  {
26  NULL,
27  ErrorCode,
28  MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), /* Default language */
29  (LPTSTR) &lpMsgBuf,
30  0,
31  NULL );
32 
33  if (RetVal != 0)
34  {
35  _tprintf(_T("%s"), (LPTSTR)lpMsgBuf);
36  LocalFree(lpMsgBuf);
37  }
38  }
39 }
#define _tprintf
Definition: tchar.h:506
_In_ NDIS_ERROR_CODE ErrorCode
Definition: ndis.h:4436
#define ERROR_SUCCESS
Definition: deptool.c:10
#define LANG_NEUTRAL
Definition: nls.h:22
#define SUBLANG_DEFAULT
Definition: nls.h:168
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1059
CHAR * LPTSTR
Definition: xmlstorage.h:192
#define FORMAT_MESSAGE_ALLOCATE_BUFFER
Definition: winbase.h:400
smooth NULL
Definition: ftsmooth.c:416
#define FORMAT_MESSAGE_FROM_SYSTEM
Definition: winbase.h:404
#define _T(x)
Definition: vfdio.h:22
unsigned long DWORD
Definition: ntddk_ex.h:95
#define FormatMessage
Definition: winbase.h:3609
#define FORMAT_MESSAGE_IGNORE_INSERTS
Definition: winbase.h:401
HLOCAL NTAPI LocalFree(HLOCAL hMem)
Definition: heapmem.c:1577
#define MAKELANGID(p, s)
Definition: nls.h:15

Referenced by Control(), Create(), Delete(), EnumDepend(), EnumServices(), GetDisplayName(), GetKeyName(), LoadLibraryList(), QueryConfig(), QueryDescription(), QueryFailure(), QueryService(), SdSet(), SdShow(), SetConfig(), SetDescription(), SetFailure(), and Start().

Variable Documentation

◆ debug_flagged

BOOL debug_flagged

Definition at line 40 of file loadlib.c.

Referenced by main().

◆ loop_flagged

BOOL loop_flagged

Definition at line 41 of file loadlib.c.

Referenced by main().

◆ recursive_flagged

BOOL recursive_flagged

Definition at line 42 of file loadlib.c.

Referenced by main().

◆ verbose_flagged

BOOL verbose_flagged

Definition at line 39 of file loadlib.c.