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.

40 lines
1.2 KiB

  1. #ifndef _MISC_H
  2. #define _MISC_H
  3. // From MAX_DEVICE_ID_LEN = 200 in cfgmgr32.h
  4. #define MAX_DEVICEID 200
  5. #define MAX_PNPID MAX_PATH
  6. #define MAX_PNPINSTID MAX_PATH
  7. // According to documentation
  8. #define MAX_PROGID 39
  9. #define MAX_GUIDSTRING 39
  10. #define MAX_AUTOPLAYGENERIC 64
  11. #define MAX_EVENTHANDLER MAX_AUTOPLAYGENERIC
  12. #define MAX_DEVICEHANDLER MAX_AUTOPLAYGENERIC
  13. #define MAX_DEVICEGROUP MAX_AUTOPLAYGENERIC
  14. #define MAX_EVENTTYPE MAX_AUTOPLAYGENERIC
  15. #define MAX_EVENTFRIENDLYNAME MAX_AUTOPLAYGENERIC
  16. #define MAX_HANDLER MAX_AUTOPLAYGENERIC
  17. #define MAX_ACTION MAX_AUTOPLAYGENERIC
  18. #define MAX_PROVIDER MAX_AUTOPLAYGENERIC
  19. #define MAX_INVOKEPROGID 260
  20. #define MAX_INVOKEVERB MAX_AUTOPLAYGENERIC
  21. #define MAX_USERDEFAULT MAX_DEVICEID + MAX_AUTOPLAYGENERIC + 10
  22. #define MAX_FRIENDLYNAME MAX_AUTOPLAYGENERIC
  23. #define MAX_VOLUMENAME 50
  24. #define HINT_NONE 0
  25. #define HINT_NEW 1
  26. #define SHDEVICEEVENTROOT(a) TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\AutoplayHandlers\\") ##a
  27. #endif //_MISC_H