China's economy is now the second largest in the world, and it's growing at an impressive rate, especially for a goliath. China now accounts for more than 20% of PC unit shipments worldwide. It's no wonder PC makers are looking to China for growth.

There are two ways to win. First, grab a piece of a growing pie. Second, get a bigger share of pie. But market share is a zero-sum game. With every player hoping to gain market share, some companies -- and their shareholders -- will be disappointed. Let's hope you're not among them.

The comeback kid?
Hewlett-Packard
(NYSE: HPQ) has the most at stake near-term, having cited PCs in China as a reason it expects improved performance later this year. Its China PC business saw sequential growth of 25% in its latest quarter, although some of that is likely due to normal seasonality.

Notably, management dodged questions about year-over-year comparisons. Gee, maybe that has something to do with last year's missteps dealing with faulty graphics chips from NVIDIA (Nasdaq: NVDA) in HP laptops that have since been fixed. In responding to the problem, HP was accused of treating U.S. customers better than Chinese customers.

HP eventually stepped up in China with extended warranties and compensation. Its early bungling also led to an apology. But saying "I'm sorry" only does so much to heal wounds. According to IDC, HP lost half of its China PC market share in one quarter.  

Right place, right time
Dell
(Nasdaq: DELL) was a big beneficiary of HP's mistakes. Dell's market share in China jumped from about 8% to 10% as HP's fell from about 17% to 9% last year. That moved Dell from a distant third to distant second. In its latest quarter, Dell reported 21% growth in China year over year.  

To continue its growth, Dell expects to spend a formidable $250 billion in China during this decade (largely thanks to procurement of PC supplies), including plans to establish a presence in 800 smaller cities by the end of this year. Dell seems to have learned that its Internet sales model wasn't working in emerging markets. That said, the company has struggled with retail kiosks and stores in the United States. What reason do we have to believe they'll get it right in a foreign market?

Home field advantage
Lenovo
was the biggest beneficiary of HP's missteps in China last year. It already held a solid market share lead. With HP's help, Lenovo went to 29% share from 26.5%. Lenovo has almost three times the share of No. 2 Dell. That could drive some tremendous scale -- especially cost -- advantages.

Lenovo is the Chinese company that bought IBM's (NYSE: IBM) PC business in 2005. The dominant PC supplier in Asia-Pacific, Lenovo enjoys a strong brand name, including Lenovo-branded stores, in China. It could also benefit from loyalty to a domestic supplier, particularly after HP was perceived as treating Chinese customers as second-class citizens.

It's a mobile market
PC unit shipments in China grew a paltry 4% last quarter. For many people in emerging markets, their smartphone is their computer. Internet access is limited, making mobile more practical. In addition, the high cost of mobile devices and PCs relative to incomes makes it tough to afford both. Thus smartphones, and potentially tablets, are important offerings for any PC supplier in these markets.

Apple's (Nasdaq: AAPL) prestige spans the globe. The company's iPhone and iPad are enjoying success in China, even though average incomes make pricey Apple products less accessible to the typical consumer.

HP's smartphone and tablet strategy revolve around proprietary WebOS devices stemming from its Palm acquisition, putting HP into head-to-head competition with Apple ... without the prestige.

Lenovo introduced its LePhone in 2010, going after the iPhone with an aggressive price point on a device running Google's (Nasdaq: GOOG) Android software. It plans to offer several tablets this year that include a planned model combining both Android and Microsoft's (Nasdaq: MSFT) Windows software.

Dell's smartphone and tablet efforts center on Android, putting it in head-to-head competition with Lenovo.

Foolish takeaway
Rapid growth of consumption in China provides attractive opportunities for companies riding that wave. But market share gains are a zero-sum game.

Apple's prestige and mobile device mojo could serve it well in the expanding affluent segment of the market. Lenovo's home team advantages -- a strong brand name and local presence, loyalty to a domestic supplier, and low cost structure -- are formidable challenges for foreign suppliers of undifferentiated products.

Share gains could prove elusive for both HP and Dell. HP is counting on a PC comeback in China to reaccelerate growth later this year, creating risk to investor expectations for 2011. Looking longer term, Dell seems to be relying on competitor missteps and large investments in unproven strategies to improve its position.

To keep track of market share battles in the PC space and see which companies are best positioned to score from China's growth, set up a watchlist through our free personalized stock tracking service.