The VID and PID for a device are actually are a part of device descriptor (embedded in the device). The driver does not set the VID and PID for a device.The PID and VID associated with a manufacturer and product is used to help link the hardware with a specific driver.
When a device is attached to a host the following enumeration sequence takes place:
Thus, if we change the VID and PID in the USB component configuration dialog box and then program the PSoC device, the new VID and PID would be reflected in the device manager whenever you connect the device to any Host PC However, for this device to work properly you need to make changes (add custom VID and PID) in the INF file associated with the device or use a custom driver for the device.
Can you please provide more details about your application?
Please feel free to update in case of any queries.