Ethereal-dev: Re: [Ethereal-dev] patch to show interface's name in packet-dcerpc.c (win32 only

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Thu, 5 Feb 2004 00:56:07 +0100
On Wed, Feb 04, 2004 at 02:20:39PM +0200, Yaniv Kaul wrote:
> +		if (RegQueryValueEx(hKey, NULL, NULL, NULL, (LPBYTE)REG_UUID_NAME, &UUID_MAX_SIZE) == ERROR_SUCCESS && UUID_MAX_SIZE <= MAX_PATH)
> +			//col_append_fstr(pinfo->cinfo, COL_INFO, " Win32 Interface: %s ", REG_UUID_NAME);
> +		{
> +			snprintf(UUID_NAME, UUID_NAME_MAX_LEN, "%s", REG_UUID_NAME);
> +			RegCloseKey(hKey);
> +			return strlen(REG_UUID_NAME);
> +		}
> +		RegCloseKey(hKey);
> +	}
> +#endif
> +	return 0; // we didn't find anything anyhow. Please don't use the string!
> +	

No C++/C99-style comments please.

 Thanks
      Jï¿œrg

-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.