ReactOS  0.4.15-dev-1070-ge1a01de
batt.c File Reference
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <winreg.h>
#include <winuser.h>
#include <setupapi.h>
#include <debug.h>
Include dependency graph for batt.c:

Go to the source code of this file.

Macros

#define WIN32_NO_STATUS
 
#define NDEBUG
 

Functions

BOOL WINAPI DllMain (HINSTANCE hinstDll, DWORD dwReason, LPVOID reserved)
 
DWORD WINAPI BatteryClassCoInstaller (IN DI_FUNCTION InstallFunction, IN HDEVINFO DeviceInfoSet, IN PSP_DEVINFO_DATA DeviceInfoData OPTIONAL, IN OUT PCOINSTALLER_CONTEXT_DATA Context)
 
DWORD WINAPI BatteryClassInstall (IN DI_FUNCTION InstallFunction, IN HDEVINFO DeviceInfoSet, IN PSP_DEVINFO_DATA DeviceInfoData OPTIONAL)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 18 of file batt.c.

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 10 of file batt.c.

Function Documentation

◆ BatteryClassCoInstaller()

DWORD WINAPI BatteryClassCoInstaller ( IN DI_FUNCTION  InstallFunction,
IN HDEVINFO  DeviceInfoSet,
IN PSP_DEVINFO_DATA DeviceInfoData  OPTIONAL,
IN OUT PCOINSTALLER_CONTEXT_DATA  Context 
)

Definition at line 44 of file batt.c.

48 {
49  switch (InstallFunction)
50  {
51  default:
52  DPRINT("Install function %u ignored\n", InstallFunction);
53  return ERROR_DI_DO_DEFAULT;
54  }
55 }
void DPRINT(...)
Definition: polytest.cpp:61
#define ERROR_DI_DO_DEFAULT
Definition: setupapi.h:305

◆ BatteryClassInstall()

DWORD WINAPI BatteryClassInstall ( IN DI_FUNCTION  InstallFunction,
IN HDEVINFO  DeviceInfoSet,
IN PSP_DEVINFO_DATA DeviceInfoData  OPTIONAL 
)

Definition at line 60 of file batt.c.

63 {
64  switch (InstallFunction)
65  {
66  default:
67  DPRINT("Install function %u ignored\n", InstallFunction);
68  return ERROR_DI_DO_DEFAULT;
69  }
70 }
void DPRINT(...)
Definition: polytest.cpp:61
#define ERROR_DI_DO_DEFAULT
Definition: setupapi.h:305

◆ DllMain()

BOOL WINAPI DllMain ( HINSTANCE  hinstDll,
DWORD  dwReason,
LPVOID  reserved 
)

Definition at line 24 of file batt.c.

27 {
28  switch (dwReason)
29  {
30  case DLL_PROCESS_ATTACH:
31  DisableThreadLibraryCalls(hinstDll);
32  break;
33 
34  case DLL_PROCESS_DETACH:
35  break;
36  }
37 
38  return TRUE;
39 }
#define TRUE
Definition: types.h:120
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
DWORD dwReason
Definition: misc.cpp:154
#define DLL_PROCESS_DETACH
Definition: compat.h:130