i try create device and swap chain, and draw some text in other window application. i try use sharpDX and slimDX. my code
SwapChainDescription description = new SwapChainDescription();
ModeDescription mode = new ModeDescription();
SampleDescription sample = new SampleDescription();
mode.Width = 100;
mode.Height = 100;
mode.RefreshRate = new Rational(60, 1);
mode.Format = Format.R8G8B8A8_UNorm;
mode.Scaling = DisplayModeScaling.Unspecified;
mode.ScanlineOrdering = DisplayModeScanlineOrdering.Unspecified;
sample.Count = 1;
sample.Quality = 0;
description.ModeDescription = mode;
description.SampleDescription = sample;
description.BufferCount = 1;
description.Flags = SwapChainFlags.None;
description.IsWindowed = true;
description.OutputHandle = handle; //here i put window handle from other window application
description.SwapEffect = SwapEffect.Discard;
description.Usage = Usage.RenderTargetOutput;
Device.CreateWithSwapChain(DriverType.Hardware, DeviceCreationFlags.Debug, description, out device, out swapChain);
when i careate render form and put into description.OutputHandle = renderForm.Handle - work fine. how i can draw in other window?