Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than Structures, prefix the name with the module name and a period.
USB_PORT_CONNECTOR_PROPERTIES (Structures)
.
C# Definition:
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
public struct USB_PORT_CONNECTOR_PROPERTIES
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct USB_PORT_PROPERTIES
{
public uint ConnectionIndex;
public uint ActualLength;
public uint Properties;
public ushort CompanionIndex;
public ushort CompanionPortNumber;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)]
public string CompanionHubSymbolicLinkName;
public ushort ul;
public ushort Properties;
}
VB Definition:
Structure USB_PORT_CONNECTOR_PROPERTIES
Public TODO
End Structure
User-Defined Field Types:
None.
Notes:
The Properties field is a USB_PORT_PROPERTIES, which is a packed ULONG (32-bit int), as shown below.
struct {
ULONG PortIsUserConnectable : 1;
ULONG PortIsDebugCapable : 1;
ULONG PortHasMultipleCompanions : 1;
ULONG PortConnectorIsTypeC : 1;
ULONG ReservedMBZ : 28;
};
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
public struct USB_PORT_CONNECTOR_PROPERTIES
{
public uint ConnectionIndex;
public uint ActualLength;
public USB_PORT_PROPERTIES Properties;
public ushort CompanionIndex;
public ushort CompanionPortNumber;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)]
public string CompanionHubSymbolicLinkName;
}
VB Definition:
Structure USB_PORT_CONNECTOR_PROPERTIES
Public TODO
End Structure
User-Defined Field Types:
None.
USB_PORT_CONNECTOR_PROPERTIES is obtained from an control request using DeviceIOControl.
Notes:
The Properties field in USB_PORT_PROPERTIES is a packed UINT16.