   SlimDX internal pointer
  Hi All. I have created SlimDX.Direct3D9.Device and want to get IDirect3DDevice9 interface. Device.InternalPointer is inacessible due to protection level. How can i get this interface? Thank You Much   
  Use the ComPointer property. It's a System::IntPtr that wraps the underlying COM pointer.   ;  well, i try to integrate CUDA and SlimDX, and when i use ComPointer in CUD3DRuntime.cudaD3D9SetDirect3DDevice(device.ComPointer) it looks like it doesnot accept it.   ;  The  problem was with CUDA initialization. I did:CUDA cuda = new CUDA(0, true);  (flag says whether to initialize driver. i always did so before because never tried to integrate d3d and cuda)but for interop looks like you need to call:CUDA cuda = new CUDA(0)Thank You For Help, i will continue on C#|CUDA.NET|SlimDX interop. Actually i am trying to put SimpleD3DTexture sample from CUDA SDK into CUDA.NET (if someone is interested)   