src/Helpers.c
void ExpandEnvironmentStringsEx(LPWSTR lpSrc, DWORD dwSrc)
{
  WCHAR szBuf[HUGE_BUFFER];
  if (ExpandEnvironmentStrings(lpSrc, szBuf, COUNTOF(szBuf))) {
    StringCchCopyN(lpSrc, dwSrc, szBuf, COUNTOF(szBuf));
  }
}
//=============================================================================
//
//  ExpandEnvironmentStringsEx()
//
//  Adjusted for Windows 95
//
ExpandEnvironmentStringsEx()
Adjusted for Windows 95
ExpandEnvironmentStringsEx () Adjusted for Windows 95
void ExpandEnvironmentStringsEx(LPWSTR lpSrc, DWORD dwSrc)
{
  WCHAR szBuf[HUGE_BUFFER];
  if (ExpandEnvironmentStrings(lpSrc, szBuf, COUNTOF(szBuf))) {
    StringCchCopyN(lpSrc, dwSrc, szBuf, COUNTOF(szBuf));
  }
}
void ExpandEnvironmentStringsEx ( LPWSTR lpSrc , DWORD dwSrc ) { WCHAR szBuf [ HUGE_BUFFER ] ; if ( ExpandEnvironmentStrings ( lpSrc , szBuf , COUNTOF ( szBuf ) ) ) { StringCchCopyN ( lpSrc , dwSrc , szBuf , COUNTOF ( szBuf ) ) ; } }
ExpandEnvironmentStringsEx()
Adjusted for Windows 95
ExpandEnvironmentStringsEx () Adjusted for Windows 95