Remote-Codes.com lists the most common codes as 1019, 1171 and 1172, although there are many more if those do not work for a specific television. The remote codes necessary to operate a Samsung HDTV can vary greatly between the devices.
Remote codes allow a universal remote to work with several different devices. Typically, a universal remote is programmed by holding down the button on the remote for the desired device type and then inputting the code for the device. Once programmed, the remote can then control the volume, channel changing and power-on or -off functions of the device. Some remotes are designed to control higher-level functions, such as menu options or smart TV apps.