ntdd1394.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * ntdd1394.h
  3. *
  4. * This file is part of the mingw-w64 runtime package.
  5. * No warranty is given; refer to the file DISCLAIMER within this package.
  6. *
  7. * Initial contributor is Magnus Olsen.
  8. * Extended by Kai Tietz
  9. */
  10. #ifndef _NTDD1394_H_
  11. #define _NTDD1394_H_
  12. #include <winapifamily.h>
  13. #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. #define BUS1394_VIRTUAL_DEVICE_LIST_KEY L"Virtual Device List"
  18. #define BUS1394_LOCAL_HOST_INSTANCE_KEY L"LOCAL HOST EUI64"
  19. typedef struct _IEEE1394_VDEV_PNP_REQUEST {
  20. ULONG fulFlags;
  21. ULONG Reserved;
  22. ULARGE_INTEGER InstanceId;
  23. UCHAR DeviceId;
  24. } IEEE1394_VDEV_PNP_REQUEST,*PIEEE1394_VDEV_PNP_REQUEST;
  25. typedef struct _IEEE1394_API_REQUEST {
  26. ULONG RequestNumber;
  27. ULONG Flags;
  28. union {
  29. IEEE1394_VDEV_PNP_REQUEST AddVirtualDevice;
  30. IEEE1394_VDEV_PNP_REQUEST RemoveVirtualDevice;
  31. } u;
  32. } IEEE1394_API_REQUEST,*PIEEE1394_API_REQUEST;
  33. #define IEEE1394_API_ADD_VIRTUAL_DEVICE 0x00000001
  34. #define IEEE1394_API_REMOVE_VIRTUAL_DEVICE 0x00000002
  35. #define IEEE1394_REQUEST_FLAG_UNICODE 0x00000001
  36. #define IEEE1394_REQUEST_FLAG_PERSISTENT 0x00000002
  37. #define IEEE1394_REQUEST_FLAG_USE_LOCAL_HOST_EUI 0x00000004
  38. #define BUS1394_VIRTUAL_DEVICE_LIST_KEY L"Virtual Device List"
  39. #define BUS1394_LOCAL_HOST_INSTANCE_KEY L"LOCAL HOST EUI64"
  40. #define IOCTL_IEEE1394_API_REQUEST CTL_CODE (FILE_DEVICE_UNKNOWN, 0x100, METHOD_BUFFERED, FILE_ANY_ACCESS)
  41. #ifdef __cplusplus
  42. }
  43. #endif
  44. #endif
  45. #endif