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.

47 lines
1.0 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. For Internal use only!
  4. Module Name:
  5. INFSCAN
  6. sppriv.h
  7. Abstract:
  8. Access to private SetupAPI functions
  9. History:
  10. Created July 2001 - JamieHun
  11. --*/
  12. #ifndef _INFSCAN_SPPRIV_H_
  13. #define _INFSCAN_SPPRIV_H_
  14. class SetupPrivate {
  15. private:
  16. typedef BOOL (WINAPI *Type_pSetupGetInfSections)(HINF InfHandle,PWSTR Buffer,UINT Size,UINT *SizeNeeded);
  17. typedef BOOL (WINAPI *Type_SetupEnumInfSections)(HINF InfHandle,UINT Index,PWSTR Buffer,UINT Size,UINT *SizeNeeded);
  18. Type_pSetupGetInfSections Fn_pSetupGetInfSections;
  19. Type_SetupEnumInfSections Fn_SetupEnumInfSections;
  20. private:
  21. bool GetInfSectionsOldWay(HINF hInf,StringList & sections);
  22. bool GetInfSectionsNewWay(HINF hInf,StringList & sections);
  23. protected:
  24. HMODULE hSetupAPI;
  25. public:
  26. SetupPrivate();
  27. ~SetupPrivate();
  28. bool GetInfSections(HINF hInf,StringList & sections);
  29. };
  30. #endif //!_INFSCAN_SPPRIV_H_