Macks Home Page Мой блог, почти как мемуары.
Browsing all posts in: C#

DllImport SHCreateMemStream

Май 30
1
2
3
4
5
6
        //[DllImport("shlwapi.dll",  EntryPoint = "SHCreateMemStream")]
        //public static extern IStream SHCreateMemStream(byte[] pInit, uint cbInit);


        [DllImport("shlwapi.dll",  EntryPoint = "#12")]
        public static extern IStream SHCreateMemStream(byte[] pInit, uint cbInit);

Параметры пользователя

Ноябрь 17
1
2
3
ExeConfigurationFileMap  fm = new ExeConfigurationFileMap();
fm.ExeConfigFilename = fName;
return ConfigurationManager.OpenMappedExeConfiguration( fm, ConfigurationUserLevel.None );