Ejemplo n.º 1
0
		internal static MiResult SetImpersonationType(DestinationOptionsHandle destinationOptionsHandle, DestinationOptionsMethods.MiImpersonationType impersonationType)
		{
			/*
			MiResult miResult;
			DangerousHandleAccessor dangerousHandleAccessor = null;
			DangerousHandleAccessor modopt(System.Runtime.CompilerServices.IsConst) dangerousHandleAccessor modopt(System.Runtime.CompilerServices.IsConst) = new DangerousHandleAccessor(destinationOptionsHandle);
			try
			{
				dangerousHandleAccessor = dangerousHandleAccessor modopt(System.Runtime.CompilerServices.IsConst);
				miResult = (MiResult)<Module>.?A0x5fa54d02.MI_DestinationOptions_SetImpersonationType((void*)dangerousHandleAccessor.DangerousGetHandle(), (_MI_DestinationOptions_ImpersonationType)impersonationType);
			}
			dangerousHandleAccessor.Dispose();
			return miResult;
			*/
			return MiResult.NOT_SUPPORTED;
		}
Ejemplo n.º 2
0
		internal static MiResult GetImpersonationType(DestinationOptionsHandle destinationOptionsHandle, out DestinationOptionsMethods.MiImpersonationType impersonationType)
		{
			impersonationType = MiImpersonationType.Default;
			/*
			_MI_Result _MIResult;
			_MI_DestinationOptions_ImpersonationType _MIDestinationOptionsImpersonationType = 0;
			DangerousHandleAccessor dangerousHandleAccessor = null;
			impersonationType = DestinationOptionsMethods.MiImpersonationType.Default;
			DangerousHandleAccessor modopt(System.Runtime.CompilerServices.IsConst) dangerousHandleAccessor modopt(System.Runtime.CompilerServices.IsConst) = new DangerousHandleAccessor(destinationOptionsHandle);
			try
			{
				dangerousHandleAccessor = dangerousHandleAccessor modopt(System.Runtime.CompilerServices.IsConst);
				_MIResult = (_MI_Result)<Module>.?A0x5fa54d02.MI_DestinationOptions_GetImpersonationType((void*)dangerousHandleAccessor.DangerousGetHandle(), (_MI_DestinationOptions_ImpersonationType*)(&_MIDestinationOptionsImpersonationType));
				if (_MIResult == 0)
				{
					impersonationType = (DestinationOptionsMethods.MiImpersonationType)_MIDestinationOptionsImpersonationType;
				}
			}
			dangerousHandleAccessor.Dispose();
			return (MiResult)_MIResult;
			*/
			return MiResult.NOT_SUPPORTED;
		}