Source code of Windows XP (NT5)
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.

115 lines
3.3 KiB

  1. /*++
  2. Copyright (c) 1989-2001 Microsoft Corporation
  3. Module Name:
  4. pnpipc.h
  5. Abstract:
  6. This module contains the private defintions used by various
  7. user-mode pnp components to communicate.
  8. Author:
  9. Paula Tomlinson (paulat) 02/21/1996
  10. Environment:
  11. User-mode only.
  12. Revision History:
  13. 27-February-2001 jamesca
  14. Additional CFGMGR32-specific and UMPNPMGR-specific definitions.
  15. Constrained header file to only those
  16. --*/
  17. #ifndef _PNPIPC_H_
  18. #define _PNPIPC_H_
  19. //
  20. // Module names of support libraries and executables.
  21. //
  22. #define SETUPAPI_DLL TEXT("setupapi.dll")
  23. #define NEWDEV_DLL TEXT("newdev.dll")
  24. #define HOTPLUG_DLL TEXT("hotplug.dll")
  25. #define RUNDLL32_EXE TEXT("rundll32.exe")
  26. #define NTSD_EXE TEXT("ntsd.exe")
  27. #define WINSTA_DLL TEXT("winsta.dll")
  28. #define WTSAPI32_DLL TEXT("wtsapi32.dll")
  29. //
  30. // Pending install event, shared by cfgmgr32 and umpnpmgr.
  31. // This event is always created in the Global (i.e. Session 0) object namespace.
  32. //
  33. #define PNP_NO_INSTALL_EVENTS TEXT("Global\\PnP_No_Pending_Install_Events")
  34. //
  35. // Named pipe, events, and timeouts used with GUI setup.
  36. //
  37. #define PNP_NEW_HW_PIPE TEXT("\\\\.\\pipe\\PNP_New_HW_Found")
  38. #define PNP_CREATE_PIPE_EVENT TEXT("PNP_Create_Pipe_Event")
  39. #define PNP_BATCH_PROCESSED_EVENT TEXT("PNP_Batch_Processed_Event")
  40. #define PNP_PIPE_TIMEOUT 60000 // 60 seconds
  41. #define PNP_GUISETUP_INSTALL_TIMEOUT 60000 // 60 seconds
  42. //
  43. // Named pipe, events, and timeouts used for communication with newdev.
  44. //
  45. #define PNP_DEVICE_INSTALL_PIPE TEXT("\\\\.\\pipe\\PNP_Device_Install_Pipe")
  46. #define PNP_DEVICE_INSTALL_EVENT TEXT("PNP_Device_Install_Event")
  47. // Flags to specify behavior of the device install client (newdev.dll).
  48. #define DEVICE_INSTALL_UI_ONLY 0x00000001
  49. #define DEVICE_INSTALL_FINISHED_REBOOT 0x00000002
  50. #define DEVICE_INSTALL_PLAY_SOUND 0x00000004
  51. #define DEVICE_INSTALL_BATCH_COMPLETE 0x00000008
  52. #define DEVICE_INSTALL_PROBLEM 0x00000010
  53. #define DEVICE_INSTALL_DISPLAY_ON_CONSOLE 0x00010000
  54. // Bitmask for only those flags sent to newdev.dll.
  55. #define DEVICE_INSTALL_CLIENT_MASK 0x0000FFFF
  56. #define DEVICE_INSTALL_SERVER_MASK 0xFFFF0000
  57. // Length of time to allow 'device install complete' bubble to be displayed.
  58. #define DEVICE_INSTALL_COMPLETE_WAIT_TIME 3000 // 3 seconds
  59. #define DEVICE_INSTALL_COMPLETE_DISPLAY_TIME 10000 // 10 seconds
  60. //
  61. // Named pipe, events, and timeouts used for communication with hotplug.
  62. //
  63. #define PNP_HOTPLUG_PIPE TEXT("\\\\.\\pipe\\PNP_HotPlug_Pipe")
  64. #define PNP_HOTPLUG_EVENT TEXT("PNP_HotPlug_Event")
  65. // Flags to specify behavior of the hotplug client (hotplug.dll).
  66. #define HOTPLUG_DISPLAY_ON_CONSOLE 0x00010000
  67. //
  68. // Default WindowStation and Desktop names for launching hotplug and newdev
  69. // processes on an interactive user's desktop.
  70. //
  71. #define DEFAULT_WINSTA TEXT("WinSta0")
  72. #define DEFAULT_DESKTOP TEXT("Default")
  73. #define DEFAULT_INTERACTIVE_DESKTOP TEXT("WinSta0\\Default")
  74. #endif // _PNPIPC_H_