2.2.2.6 Rename Printer Cachedata (DR_PRN_RENAME_CACHEDATA)

This message is sent by the server when the user renames a redirected printer.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Header

EventId

OldPrinterNameLen

NewPrinterNameLen

OldPrinterName (variable)

...

NewPrinterName (variable)

...

Header (4 bytes):  The common message header (as specified in [MS-RDPEFS] section 2.2.1.1). The Component field MUST be set to RDPDR_CTYP_PRN and the PacketId field MUST be set to PAKID_PRN_CACHE_DATA.

EventId (4 bytes): A SERVER_PRINTER_CACHE_EVENT (section 2.2.1.1) event. The cachedata field MUST be set to RDPDR_RENAME_PRINTER_EVENT (0x00000004).

OldPrinterNameLen (4 bytes):  A 32-bit unsigned integer that specifies the number of bytes in the OldPrinterName field, including its null terminator.

NewPrinterNameLen (4 bytes):  A 32-bit unsigned integer that specifies the number of bytes in the NewPrinterName field, including its null terminator.

OldPrinterName (variable): A null-terminated Unicode string that specifies the printer name before the rename operation.

NewPrinterName (variable): A null-terminated Unicode string that specifies the printer name after the rename operation.