internal void __MarshalTo(ref DSCAPS.__Native @ref) { @ref.dwSize = this.dwSize; @ref.dwFlags = this.dwFlags; @ref.dwMinSecondarySampleRate = this.dwMinSecondarySampleRate; @ref.dwMaxSecondarySampleRate = this.dwMaxSecondarySampleRate; @ref.dwPrimaryBuffers = this.dwPrimaryBuffers; @ref.dwMaxHardwareMixingAllBuffers = this.dwMaxHwMixingAllBuffers; @ref.dwMaxHardwareMixingStaticBuffers = this.dwMaxHwMixingStaticBuffers; @ref.dwMaxHardwareMixingStreamingBuffers = this.dwMaxHwMixingStreamingBuffers; @ref.dwFreeHardwareMixingAllBuffers = this.dwFreeHwMixingAllBuffers; @ref.dwFreeHardwareMixingStaticBuffers = this.dwFreeHwMixingStaticBuffers; @ref.dwFreeHardwareMixingStreamingBuffers = this.dwFreeHwMixingStreamingBuffers; @ref.dwMaxHardware3DAllBuffers = this.dwMaxHw3DAllBuffers; @ref.dwMaxHardware3DStaticBuffers = this.dwMaxHw3DStaticBuffers; @ref.dwMaxHardware3DStreamingBuffers = this.dwMaxHw3DStreamingBuffers; @ref.dwFreeHardware3DAllBuffers = this.dwFreeHw3DAllBuffers; @ref.dwFreeHardware3DStaticBuffers = this.dwFreeHw3DStaticBuffers; @ref.dwFreeHardware3DStreamingBuffers = this.dwFreeHw3DStreamingBuffers; @ref.dwTotalHardwareMemBytes = this.dwTotalHwMemBytes; @ref.dwFreeHardwareMemBytes = this.dwFreeHwMemBytes; @ref.dwMaxContigFreeHardwareMemBytes = this.dwMaxContigFreeHwMemBytes; @ref.dwUnlockTransferRateHardwareBuffers = this.dwUnlockTransferRateHwBuffers; @ref.dwPlayCpuOverheadSwBuffers = this.dwPlayCpuOverheadSwBuffers; @ref.dwReserved1 = this.dwReserved1; @ref.dwReserved2 = this.dwReserved2; }
// <unmanaged>HRESULT IDirectSound::GetCaps([Out] DSCAPS* pDSCaps)</unmanaged> internal unsafe void GetCapabilities(out DSCAPS dSCapsRef) { DSCAPS.__Native _Native = DSCAPS.__NewNative(); //Result result = calli(System.Int32(System.Void*,System.Void*), this._nativePointer, &_Native, *(*(IntPtr*)this._nativePointer + (IntPtr)4 * (IntPtr)sizeof(void*))); var result = (HRESULT)NativeHelper.CalliInt32(4, _nativePointer, &_Native); dSCapsRef = new DSCAPS(); dSCapsRef.__MarshalFrom(ref _Native); result.CheckError(); }
internal void __MarshalFree(ref DSCAPS.__Native @ref) { @ref.__MarshalFree(); }