WCN_VALUE_TYPE_PRIMARY_DEVICE_TYPE structure (wcntypes.h)

The WCN_VALUE_TYPE_PRIMARY_DEVICE_TYPE structure contains information that identifies the device type by category, sub-category, and a manufacturer specific OUI (Organization ID).

Syntax

typedef struct tagWCN_VALUE_TYPE_PRIMARY_DEVICE_TYPE {
  WCN_VALUE_TYPE_DEVICE_TYPE_CATEGORY        Category;
  WCN_VALUE_TYPE_DEVICE_TYPE_SUBCATEGORY_OUI SubCategoryOUI;
  WCN_VALUE_TYPE_DEVICE_TYPE_SUBCATEGORY     SubCategory;
} WCN_VALUE_TYPE_PRIMARY_DEVICE_TYPE;

Members

Category

Specifies the primary device type category. This data is supplied in network byte order.

Value Meaning
WCN_VALUE_DT_CATEGORY_COMPUTER
0x1
Indicates a computer.
WCN_VALUE_DT_CATEGORY_INPUT_DEVICE
0x2
Indicates an input device.
WCN_VALUE_DT_CATEGORY_PRINTER
0x3
Indicates a printer.
WCN_VALUE_DT_CATEGORY_CAMERA
0x4
Indicates a camera.
WCN_VALUE_DT_CATEGORY_STORAGE
0x5
Indicates a storage device.
WCN_VALUE_DT_CATEGORY_NETWORK_INFRASTRUCTURE
0x6
Indicates a network.
WCN_VALUE_DT_CATEGORY_DISPLAY
0x7
Indicates a display.
WCN_VALUE_DT_CATEGORY_MULTIMEDIA_DEVICE
0x8
Indicates a multimedia device.
WCN_VALUE_DT_CATEGORY_GAMING_DEVICE
0x9
Indicates a gaming device.
WCN_VALUE_DT_CATEGORY_TELEPHONE
0xa
Indicates a telephone.
WCN_VALUE_DT_CATEGORY_AUDIO_DEVICE
0xb
Indicates an audio device.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_CATEGORY_OTHER
0xff
Indicates an unspecified device.
Note  Only available in Windows 8.
 

SubCategoryOUI

Specifies the unique manufacturer OUI associated with the device.

Value Meaning
WCN_VALUE_DT_SUBTYPE_WIFI_OUI
0x50f204
Indicates the specific manufacturer Organization ID (OUI) for a wireless device.

SubCategory

Specifies the primary device type sub-category. This data is supplied in network byte order. If SubCategoryOUI is equal to WCN_VALUE_DT_SUBTYPE_WIFI_OUI, then any of the values below are valid. Otherwise, the SubCategory has been defined by the vendor.

The following values are possible when the Category member is set to WCN_VALUE_DT_CATEGORY_COMPUTER.

Value Meaning
WCN_VALUE_DT_SUBTYPE_COMPUTER_PC
0x1
Indicates a personal computer.
WCN_VALUE_DT_SUBTYPE_COMPUTER_SERVER
0x2
Indicates a server.
WCN_VALUE_DT_SUBTYPE_COMPUTER_MEDIACENTER
0x3
Indicates a media center.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_COMPUTER_ULTRAMOBILEPC
0x4
Indicates an Ultra-Mobile PC.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_COMPUTER_NOTEBOOK
0x5
Indicates a notebook computer.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_COMPUTER_DESKTOP
0x6
Indicates a desktop computer.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_COMPUTER_MID
0x7
Indicates a mobile Internet device.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_COMPUTER_NETBOOK
0x8
Indicates a netbook.
Note  Only available in Windows 8.
 
 

The following values are possible when the Category member is set to WCN_VALUE_DT_CATEGORY_INPUT_DEVICE.

Value Meaning
WCN_VALUE_DT_SUBTYPE_INPUT_DEVICE_KEYBOARD
0x1
Indicates a keyboard.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_INPUT_DEVICE_MOUSE
0x2
Indicates a mouse.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_INPUT_DEVICE_JOYSTICK
0x3
Indicates a joystick.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_INPUT_DEVICE_TRACKBALL
0x4
Indicates a trackball.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_INPUT_DEVICE_GAMECONTROLLER
0x5
Indicates a game controller.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_INPUT_DEVICE_REMOTE
0x6
Indicates a remote control.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_INPUT_DEVICE_TOUCHSCREEN
0x7
Indicates a touch screen.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_INPUT_DEVICE_BIOMETRICREADER
0x8
Indicates a biometric reader.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_INPUT_DEVICE_BARCODEREADER
0x9
Indicates a barcode reader.
Note  Only available in Windows 8.
 
 

The following values are possible when the Category member is set to WCN_VALUE_DT_CATEGORY_PRINTER.

Value Meaning
WCN_VALUE_DT_SUBTYPE_PRINTER_PRINTER
0x1
Indicates a printer.
WCN_VALUE_DT_SUBTYPE_PRINTER_SCANNER
0x2
Indicates a scanner.
WCN_VALUE_DT_SUBTYPE_PRINTER_FAX
0x3
Indicates a fax machine.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_PRINTER_COPIER
0x4
Indicates a copier.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_PRINTER_ALLINONE
0x4
Indicates an all-in-one printer.
Note  Only available in Windows 8.
 
 

The following values are possible when the Category member is set to WCN_VALUE_DT_CATEGORY_CAMERA.

Value Meaning
WCN_VALUE_DT_SUBTYPE_CAMERA_STILL_CAMERA
0x1
Indicates a still-shot camera.
WCN_VALUE_DT_SUBTYPE_CAMERA_VIDEO_CAMERA
0x2
Indicates a video camera.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_CAMERA_WEB_CAMERA
0x3
Indicates a web camera.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_CAMERA_SECURITY_CAMERA
0x4
Indicates a security camera.
Note  Only available in Windows 8.
 
 

The following values are possible when the Category member is set to WCN_VALUE_DT_CATEGORY_NETWORK_STORAGE.

Value Meaning
WCN_VALUE_DT_SUBTYPE_STORAGE_NAS
0x1
Indicates a network storage device.
 

The following values are possible when the Category member is set to WCN_VALUE_DT_CATEGORY_NETWORK_INFRASTRUCTURE.

Value Meaning
WCN_VALUE_DT_SUBTYPE_NETWORK_INFRASTRUCUTURE_AP
0x1
Indicates an access point.
WCN_VALUE_DT_SUBTYPE_NETWORK_INFRASTRUCUTURE_ROUTER
0x2
Indicates a router.
WCN_VALUE_DT_SUBTYPE_NETWORK_INFRASTRUCUTURE_SWITCH
0x3
Indicates a switch.
WCN_VALUE_DT_SUBTYPE_NETWORK_INFRASTRUCUTURE_GATEWAY
0x4
Indicates a gateway.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_NETWORK_INFRASTRUCUTURE_BRIDGE
0x5
Indicates a bridge.
Note  Only available in Windows 8.
 
 

The following values are possible when the Category member is set to WCN_VALUE_DT_CATEGORY_DISPLAY.

Value Meaning
WCN_VALUE_DT_SUBTYPE_DISPLAY_TELEVISION
0x1
Indicates a television.
WCN_VALUE_DT_SUBTYPE_DISPLAY_PICTURE_FRAME
0x2
Indicates an electronic picture frame.
WCN_VALUE_DT_SUBTYPE_DISPLAY_PROJECTOR
0x3
Indicates a digital projector.
WCN_VALUE_DT_SUBTYPE_DISPLAY_MONITOR
0x4
Indicates a monitor.
Note  Only available in Windows 8.
 
 

The following values are possible when the Category member is set to WCN_VALUE_DT_CATEGORY_MULTIMEDIA_DEVICE.

Value Meaning
WCN_VALUE_DT_SUBTYPE_MULTIMEDIA_DEVICE_DAR
0x1
Indicates a digital audio recorder.
WCN_VALUE_DT_SUBTYPE_MULTIMEDIA_DEVICE_PVR
0x2
Indicates a personal video recorder.
WCN_VALUE_DT_SUBTYPE_MULTIMEDIA_DEVICE_MCX
0x3
Indicates a Yamaha Digital Multimedia Receiver.
WCN_VALUE_DT_SUBTYPE_MULTIMEDIA_DEVICE_SETTOPBOX
0x4
Indicates a set-top box.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_MULTIMEDIA_DEVICE_MEDIA_SERVER_ADAPT_EXT
0x5
Indicates a media server, media adapter, or media extender.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_MULTIMEDIA_DEVICE_PVP
0x6
Indicates a portable video player.
Note  Only available in Windows 8.
 
 

The following values are possible when the Category member is set to WCN_VALUE_DT_CATEGORY_GAMING_DEVICE.

Value Meaning
WCN_VALUE_DT_SUBTYPE_GAMING_DEVICE_XBOX
0x1
Indicates a Microsoft XBOX console.
WCN_VALUE_DT_SUBTYPE_GAMING_DEVICE_XBOX360
0x2
Indicates a Microsoft XBOX 360 console.
WCN_VALUE_DT_SUBTYPE_GAMING_DEVICE_PLAYSTATION
0x3
Indicates a Sony Playstation 3.
WCN_VALUE_DT_SUBTYPE_GAMING_DEVICE_CONSOLE_ADAPT
0x4
Indicates a game console adapter.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_GAMING_DEVICE_PORTABLE
0x5
Indicates a portable gaming device.
Note  Only available in Windows 8.
 
 

The following values are possible when the Category member is set to WCN_VALUE_DT_CATEGORY_TELEPHONE.

Value Meaning
WCN_VALUE_DT_SUBTYPE_TELEPHONE_WINDOWS_MOBILE
0x1
Indicates a Windows Mobile device.
WCN_VALUE_DT_SUBTYPE_TELEPHONE_PHONE_SINGLEMODE
0x2
Indicates a single-mode phone.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_TELEPHONE_PHONE_DUALMODE
0x3
Indicates a dual-mode phone.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_TELEPHONE_PHONE_SMARTPHONE_SINGLEMODE
0x4
Indicates a single-mode smartphone.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_TELEPHONE_PHONE_SMARTPHONE_DUALMODE
0x2
Indicates a dual-mode smartphone.
Note  Only available in Windows 8.
 
 

The following values are possible when the Category member is set to WCN_VALUE_DT_CATEGORY_AUDIO_DEVICE.

Value Meaning
WCN_VALUE_DT_SUBTYPE_AUDIO_DEVICE_TUNER_RECEIVER
0x1
Indicates an audio tuner/receiver.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_AUDIO_DEVICE_SPEAKERS
0x2
Indicates speakers.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_AUDIO_DEVICE_PMP
0x2
Indicates a personal media player.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_AUDIO_DEVICE_HEADSET
0x2
Indicates a headset.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_AUDIO_DEVICE_HEADPHONES
0x2
Indicates headphones.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_AUDIO_DEVICE_MICROPHONE
0x2
Indicates a microphone.
Note  Only available in Windows 8.
 
WCN_VALUE_DT_SUBTYPE_AUDIO_DEVICE_HOMETHEATER
0x2
Indicates a home theater system.
Note  Only available in Windows 8.
 

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header wcntypes.h