I have 

```
TCHAR szPIDKEY[255];//for product id
 DWORD dwLen = sizeof(szPIDKEY)/sizeof(szPIDKEY[0]); //calculating the size of the key
UINT res = MsiGetProperty(hInstall, _T("PIDKEY"), szPIDKEY, &dwLen); 
if(res != ERROR_SUCCESS) 
{
    //fail the installation 
    return 1; 
}

```

the key string looks like xxxx-xxxx-xxxx-xxxx, i want to take only the last four xxxx in TCHAR , how to do this?

Thanks