1 /* 2 * ntdd1394.h 3 * 4 * Contributors: 5 * Created by Magnus Olsen 6 * 7 * THIS SOFTWARE IS NOT COPYRIGHTED 8 * 9 * This source code is offered for use in the public domain. You may 10 * use, modify or distribute it freely. 11 * 12 * This code is distributed in the hope that it will be useful but 13 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY 14 * DISCLAIMED. This includes but is not limited to warranties of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 16 * 17 */ 18 19 #ifndef _NTDD1394_H_ 20 #define _NTDD1394_H_ 21 22 #ifdef __cplusplus 23 extern "C" { 24 #endif 25 26 typedef struct _IEEE1394_VDEV_PNP_REQUEST 27 { 28 ULONG fulFlags; 29 ULONG Reserved; 30 ULARGE_INTEGER InstanceId; 31 UCHAR DeviceId; 32 } IEEE1394_VDEV_PNP_REQUEST,*PIEEE1394_VDEV_PNP_REQUEST; 33 34 35 typedef struct _IEEE1394_API_REQUEST 36 { 37 ULONG RequestNumber; 38 ULONG Flags; 39 union 40 { 41 IEEE1394_VDEV_PNP_REQUEST AddVirtualDevice; 42 IEEE1394_VDEV_PNP_REQUEST RemoveVirtualDevice; 43 } u; 44 } IEEE1394_API_REQUEST, *PIEEE1394_API_REQUEST; 45 46 #define IEEE1394_API_ADD_VIRTUAL_DEVICE 0x00000001 47 #define IEEE1394_API_REMOVE_VIRTUAL_DEVICE 0x00000002 48 #define IEEE1394_REQUEST_FLAG_UNICODE 0x00000001 49 #define IEEE1394_REQUEST_FLAG_PERSISTENT 0x00000002 50 #define IEEE1394_REQUEST_FLAG_USE_LOCAL_HOST_EUI 0x00000004 51 #define BUS1394_VIRTUAL_DEVICE_LIST_KEY L"Virtual Device List" 52 #define BUS1394_LOCAL_HOST_INSTANCE_KEY L"LOCAL HOST EUI64" 53 #define IOCTL_IEEE1394_API_REQUEST CTL_CODE(FILE_DEVICE_UNKNOWN, 0x100, METHOD_BUFFERED, FILE_ANY_ACCESS) 54 55 #ifdef __cplusplus 56 } 57 #endif 58 59 #endif /* _NTDD1394_H_ */ 60 61