private GetCachePath ( ASM_CACHE_FLAGS dwCacheFlags, [ pwzCachePath, uint &pcchPath ) : void | ||
dwCacheFlags | ASM_CACHE_FLAGS | |
pwzCachePath | [ | |
pcchPath | uint | |
return | void |
static extern void GetCachePath(ASM_CACHE_FLAGS dwCacheFlags, [MarshalAs(UnmanagedType.LPWStr)] StringBuilder pwzCachePath,
ref uint pcchPath);
public static String GetDownloadPath() { uint bufferSize = 255; StringBuilder buffer = new StringBuilder((int)bufferSize); GAC.GetCachePath(ASM_CACHE_FLAGS.ASM_CACHE_DOWNLOAD, buffer, ref bufferSize); return(buffer.ToString()); }