using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Win32; namespace RegistryTest { class Program { static void Main(string[] args) { string subkey = "Software\\RegistryTest"; RegistryKey key = Registry.LocalMachine.OpenSubKey(subkey,true); if (key == null) { key = Registry.LocalMachine.CreateSubKey(subkey); } // set..
//DllImport iniusing System.Runtime.InteropServices; //StringBuilderusing System.Text; //DllImport ini[DllImport("kernel32")] private static extern long WritePrivateProfileString(string section, string key, string val, string filePath); [DllImport("kernel32")]private static extern int GetPrivateProfileString(string section, string key, string def, StringBuilder retVal, int size, string filePath)..
public class BmpLoader { public struct BMPHeader { public short type; public int size; public short reserved1; public short reserved2; public int offset; } public struct BMPInfoHeader { public int size; public int width; public int height; public short planes; public short bitsPerPixel; public uint compression; public uint imageSize; public int xPelsPerMeter; public int yPelsPerMeter; public int..
- Total
- Today
- Yesterday