CURELab.SignLanguage.HandDetector.KinectStudioController.ReadCurrentFrame C# (CSharp) Method

ReadCurrentFrame() public method

public ReadCurrentFrame ( ) : int
return int
        public int ReadCurrentFrame()
        {
            Process[] pros = Process.GetProcessesByName("KinectStudio");
            Process pro = pros[0];
            if (dllEntry == IntPtr.Zero)
            {

                if (pro.ProcessName == "KinectStudio")
                {
                    for (int i = 0; i < pro.Modules.Count; i++)
                    {
                        if (pro.Modules[i].ModuleName == "KinectStudioNative.dll")
                        {
                            dllEntry = pro.Modules[i].EntryPointAddress;
                            Console.WriteLine("KinectNative.dll addr: {0}", dllEntry.ToString("x8"));
                            dllEntry += Convert.ToInt32("208fbf", 16);
                            Console.WriteLine("Frame addr:" + dllEntry.ToString("x8"));

                        }

                    }
                }
            }

            int frame = ReadMemoryValue(dllEntry, pro.Id);
            return frame;
        }