Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

104 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1990 Microsoft Corporation
  3. Module Name:
  4. ci.c
  5. Abstract:
  6. Battery Class Installer
  7. Author:
  8. Scott Brenden
  9. Environment:
  10. Notes:
  11. Revision History:
  12. --*/
  13. #include "proj.h"
  14. #include <initguid.h>
  15. #include <devguid.h>
  16. BOOL APIENTRY LibMain(
  17. HANDLE hDll,
  18. DWORD dwReason,
  19. LPVOID lpReserved)
  20. {
  21. switch( dwReason ) {
  22. case DLL_PROCESS_ATTACH:
  23. DisableThreadLibraryCalls(hDll);
  24. break;
  25. case DLL_PROCESS_DETACH:
  26. break;
  27. default:
  28. break;
  29. }
  30. return TRUE;
  31. }
  32. DWORD
  33. APIENTRY
  34. SdClassInstall(
  35. IN DI_FUNCTION DiFunction,
  36. IN HDEVINFO DevInfoHandle,
  37. IN PSP_DEVINFO_DATA DevInfoData OPTIONAL
  38. )
  39. /*++
  40. Routine Description:
  41. This function is the class installer entry-point.
  42. Arguments:
  43. DiFunction - Requested installation function
  44. DevInfoHandle - Handle to a device information set
  45. DevInfoData - Pointer to device information about device to install
  46. Return Value:
  47. --*/
  48. {
  49. return ERROR_DI_DO_DEFAULT;
  50. }
  51. DWORD
  52. APIENTRY
  53. SdClassCoInstaller (
  54. IN DI_FUNCTION InstallFunction,
  55. IN HDEVINFO DeviceInfoSet,
  56. IN PSP_DEVINFO_DATA DeviceInfoData,
  57. IN OUT PCOINSTALLER_CONTEXT_DATA Context
  58. )
  59. {
  60. return (NO_ERROR);
  61. }