Are you joking? The drug patents are only 15 years. Compare that to most other types of technology (decades), or to copyrights (sometimes over a century). Half the drugs on the market today will be generics in 8 years. 15 years really isn't a whole lot of time, when you consider the fact that now it's been discovered and applied it will be available for anyone to manufacture and use for the rest of human history. After 15 years, anyone can manufacture the drug, and there are no royalties paid. The cost of the drug drops effectively to a little bit more than the manufacturing/distribution cost + small profit.
The ignorance on this thread is so astounding it makes me wonder what angle folks are coming from on all these other threads where they're ranting and raving about the evils of the pharmaceutical industry.

I find your lack of knowledge of the patent process disturbing for someone calling others ignorant of the patent process.
While I'm not a patent attorney, I currently hold 4 US patents, and have a few more in the queue. I have spent many hours talking with patent attorneys in the process of filing my own patents, so I am somewhat knowledgable about the process.
Current US patent law is that a patent is valid for 20 years from the date of INITIAL FILING. It usually takes about 2 years (though one of mine was granted in a little less than a year from initial filing, and one is still being reviewed after almost 3 years) from the initial filing to the time that the patent is granted, providing a de facto patent protection time of about 18 years.
This law was changed about 10-15 years ago. It used to be that a patent was valid for 17 years from the date that it was GRANTED, but in an interesting example of legal loopholes, the guy who invented UPC barcodes (or his attorneys) purposely filed the patent improperly, and it took many years (~10, IIRC) for the patent to be granted. In the meantime, others copied barcodes because they were not yet patented. When the guy eventually did receive the patent, there were LOTS of people who infringed upon it, and he sued (or threatened to sue) them all and made some major $$$. Therefore, the current law of 20 years from the initial filing solves this problem.
Anyway, there is no distinction in US patent law between different types of patents (i.e. drug vs. "technology" in your example.) Copyrights are a different story though, and last much longer. One de facto difference in patents, however, is that most "technology" inventions don't need to be approved by a regulatory body like the FDA. Therefore, they can be marketed as soon as they are patented, unlike drugs, which may require significant additional time after the patent is awarded to make it through all the trials, etc, required for FDA approval. Therefore, the "recovery time" that drug makers have to recover their R&D investment is much shorter.