Пример #1
0
 public Register(string p, REGTYPE t)
 {
     name = p;
     type = t;
     Debug.Assert(t >= 0 && t < REGTYPE.NUMTYPES);
     regCount = REGCOUNT[(int)t];
     enabled  = type == REGTYPE.STRING ? false : true;
     var      = null;
 }
Пример #2
0
 public void ReadFromDemoFile(VFileDemo f)
 {
     f.ReadBool(out enabled);
     f.ReadShort(out short type); this.type = (REGTYPE)type;
     f.ReadInt(out regCount);
     for (var i = 0; i < 4; i++)
     {
         f.ReadUnsignedShort(out regs[i]);
     }
     name = f.ReadHashString();
 }
Пример #3
0
 public static extern int CeRegSetValueEx(IntPtr hKey, string lpValueName, int Reserved, REGTYPE dwType, ref int lpData, int cbData);
Пример #4
0
 public static extern int CeRegQueryValueEx(IntPtr hKey, string lpValueName, int lpReserved, ref REGTYPE lpType, ref int piData, ref int lpcbData);
Пример #5
0
 public static extern int CeRegQueryValueEx(IntPtr hKey, string lpValueName, int Res1, ref REGTYPE lpType, IntPtr iptrData, ref int lpcbData);
Пример #6
0
 public static extern int CeRegEnumValue(IntPtr hKey, int dwIndex, string lpszName, ref int lpcbName, int Res, ref REGTYPE lpType, IntPtr lpData, ref int lpcbData);
Пример #7
0
 RegSetValueEx(IntPtr hKey, string lpValueName,
               int Res1, REGTYPE dwType,
               string strData, int cbData);
Пример #8
0
 RegQueryValueEx(IntPtr hKey, string lpValueName,
                 int Res1, ref REGTYPE lpType,
                 ref int piData, ref int lpcbData);