Hi,

I tried following code, but it is just not working . Can anybody help me out here?

Thanks.
Code:
HMODULE hSrc = LoadLibrary(L"C:\\GPSamples\\vmplayer.exe");
if (hSrc == NULL)
{
	return 1;
}

HRSRC hRes, hResLoad;
char *lpResLock;

hRes = FindResource(hSrc, MAKEINTRESOURCE(1), RT_ICON);
if (hRes == NULL)
{
	return 1;
}


hResLoad = (HRSRC)LoadResource(hSrc, hRes);
if (hResLoad == NULL)
return 1;

lpResLock = (char *)LockResource(hResLoad);
if (lpResLock == NULL)
return 1;

HANDLE hUpdateRes;
hUpdateRes = BeginUpdateResource(L"C:\\GPSamples\\vmnetcfg.exe", FALSE);
if (hUpdateRes == NULL)
{
	
	return 1;
}

if (!UpdateResource(hUpdateRes, 
	RT_ICON,
	MAKEINTRESOURCE(1),
	MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US),
	lpResLock,
	SizeofResource(hSrc, hRes)))
{
	
	return 1;
}

if (!EndUpdateResource(hUpdateRes, FALSE))
{
	return 1;
}

FreeLibrary(hSrc);