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.

66 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. newdev.h
  5. Abstract:
  6. Public header file for Windows NT Driver Installation DLL.
  7. --*/
  8. #ifndef _INC_NEWDEV
  9. #define _INC_NEWDEV
  10. #include <pshpack1.h> // Assume byte packing throughout
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. #define INSTALLFLAG_FORCE 0x00000001 // Force the installation of the specified driver
  15. #define INSTALLFLAG_READONLY 0x00000002 // Do a read-only install (no file copy)
  16. #define INSTALLFLAG_NONINTERACTIVE 0x00000004 // No UI shown at all. API will fail if any UI must be shown.
  17. #define INSTALLFLAG_BITS 0x00000007
  18. BOOL
  19. WINAPI
  20. UpdateDriverForPlugAndPlayDevicesA(
  21. HWND hwndParent,
  22. LPCSTR HardwareId,
  23. LPCSTR FullInfPath,
  24. DWORD InstallFlags,
  25. PBOOL bRebootRequired OPTIONAL
  26. );
  27. BOOL
  28. WINAPI
  29. UpdateDriverForPlugAndPlayDevicesW(
  30. HWND hwndParent,
  31. LPCWSTR HardwareId,
  32. LPCWSTR FullInfPath,
  33. DWORD InstallFlags,
  34. PBOOL bRebootRequired OPTIONAL
  35. );
  36. #ifdef UNICODE
  37. #define UpdateDriverForPlugAndPlayDevices UpdateDriverForPlugAndPlayDevicesW
  38. #else
  39. #define UpdateDriverForPlugAndPlayDevices UpdateDriverForPlugAndPlayDevicesA
  40. #endif
  41. #ifdef __cplusplus
  42. }
  43. #endif
  44. #include <poppack.h>
  45. #endif // _INC_NEWDEV