本文整理汇总了C#中SharpDX.__MarshalFrom方法的典型用法代码示例。如果您正苦于以下问题:C# SharpDX.__MarshalFrom方法的具体用法?C# SharpDX.__MarshalFrom怎么用?C# SharpDX.__MarshalFrom使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SharpDX
的用法示例。
在下文中一共展示了SharpDX.__MarshalFrom方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetImageInfo
/// <summary>
/// Retrieves information about a device image for use in a configuration property sheet.
/// </summary>
/// <param name="arg0"><dd> Address of a <see cref="SharpDX.DirectInput.DeviceImageHeader"/> structure that receives information about the device image. </dd></param>
/// <returns><p>If the method succeeds, the return value is <see cref="SharpDX.DirectInput.ResultCode.Ok"/>. If the method fails, the return value can be one of the following error values: <see cref="SharpDX.DirectInput.ResultCode.InvalidParam"/>, <see cref="SharpDX.DirectInput.ResultCode.MapFileFail"/>, <see cref="SharpDX.DirectInput.ResultCode.MoreData"/>, <see cref="SharpDX.DirectInput.ResultCode.NotInitialized"/>, <see cref="SharpDX.DirectInput.ResultCode.ObjectNotFound"/>.</p></returns>
/// <include file='.\..\Documentation\CodeComments.xml' path="/comments/comment[@id='IDirectInputDevice8W::GetImageInfo']/*"/>
/// <msdn-id>microsoft.directx_sdk.idirectinputdevice8.idirectinputdevice8.getimageinfo</msdn-id>
/// <unmanaged>HRESULT IDirectInputDevice8W::GetImageInfo([InOut] DIDEVICEIMAGEINFOHEADERW* arg0)</unmanaged>
/// <unmanaged-short>IDirectInputDevice8W::GetImageInfo</unmanaged-short>
internal void GetImageInfo(SharpDX.DirectInput.DeviceImageHeader arg0) {
unsafe {
var arg0_ = SharpDX.DirectInput.DeviceImageHeader.__NewNative();
arg0.__MarshalTo(ref arg0_);
SharpDX.Result __result__;
__result__=
SharpDX.DirectInput.LocalInterop.Calliint(_nativePointer, &arg0_,((void**)(*(void**)_nativePointer))[31]);
arg0.__MarshalFrom(ref arg0_);
arg0.__MarshalFree(ref arg0_);
__result__.CheckError();
}
}