Exemplo n.º 1
0
/*************************************************************************
 * PathUnquoteSpaces [SHELL32.56]
 */
VOID WINAPI PathUnquoteSpacesAW(LPVOID str)
{
	if(SHELL_OsIsUnicode())
	  PathUnquoteSpacesW(str);
	else
	  PathUnquoteSpacesA(str);
}
Exemplo n.º 2
0
void SetDllPath(HMODULE hModule)
{
	if (NULL == GetModuleFileNameA(hModule, g_szDllPath, _countof(g_szDllPath)))
	{
		g_szDllPath[0] = '.';
		g_szDllPath[1] = '\0';
	}
	else
	{
		PathRemoveBackslashA(g_szDllPath);
		PathUnquoteSpacesA(g_szDllPath);
		PathRemoveFileSpecA(g_szDllPath);
	}
}
Exemplo n.º 3
0
static BOOL HCR_RegGetIconA(HKEY hkey, LPSTR szDest, LPCSTR szName, DWORD len, int* picon_idx)
{
	DWORD dwType;
	char sTemp[MAX_PATH];
	char  sNum[5];

	if (!RegQueryValueExA(hkey, szName, 0, &dwType, (LPBYTE)szDest, &len))
	{
          if (dwType == REG_EXPAND_SZ)
	  {
	    ExpandEnvironmentStringsA(szDest, sTemp, MAX_PATH);
	    lstrcpynA(szDest, sTemp, len);
	  }
	  if (ParseFieldA (szDest, 2, sNum, 5))
             *picon_idx=atoi(sNum);
          else
             *picon_idx=0; /* sometimes the icon number is missing */
	  ParseFieldA (szDest, 1, szDest, len);
          PathUnquoteSpacesA(szDest);
	  return TRUE;
	}
	return FALSE;
}