예제 #1
0
파일: MainForm.cs 프로젝트: XOWN3RRX/Spyzer
        private void MainForm_Resize(object sender, EventArgs e)
        {
            _dwm_THUMBNAIL_PROPERTIES.Destination = DWMSize.ClientSize(groupBoxPreview);

            if (_currentHandle != IntPtr.Zero)
            {
                ShowThumbnail(_currentHandle);
            }
        }
예제 #2
0
파일: MainForm.cs 프로젝트: XOWN3RRX/Spyzer
        private async void MainForm_Load(object sender, System.EventArgs e)
        {
            _currentHandle   = IntPtr.Zero;
            _spyWindowHandle = IntPtr.Zero;

            _dwm_THUMBNAIL_PROPERTIES = new DWM_THUMBNAIL_PROPERTIES
            {
                Opacity = byte.MaxValue,
                Visible = true,
                SourceClientAreaOnly = false,
                Destination          = DWMSize.ClientSize(groupBoxPreview)
            };

            await Task.Delay(500);

            RefreshActiveProcess();
        }