public HRESULT GetBufferSizeLimits([NativeTypeName("const WAVEFORMATEX *")] WAVEFORMATEX *pFormat, BOOL bEventDriven, [NativeTypeName("REFERENCE_TIME *")] long *phnsMinBufferDuration, [NativeTypeName("REFERENCE_TIME *")] long *phnsMaxBufferDuration)
 {
     return(((delegate * unmanaged <IAudioClient2 *, WAVEFORMATEX *, BOOL, long *, long *, int>)(lpVtbl[17]))((IAudioClient2 *)Unsafe.AsPointer(ref this), pFormat, bEventDriven, phnsMinBufferDuration, phnsMaxBufferDuration));
 }
Example #2
0
 public HRESULT GetSortDescriptionLabel(BOOL fDescending, [NativeTypeName("LPWSTR *")] ushort **ppszDescription)
 {
     return(((delegate * unmanaged <IPropertyDescription2 *, BOOL, ushort **, int>)(lpVtbl[17]))((IPropertyDescription2 *)Unsafe.AsPointer(ref this), fDescending, ppszDescription));
 }
Example #3
0
 public static extern BOOL SetSecurityDescriptorOwner(
     PSECURITY_DESCRIPTOR pSecurityDescriptor,
     PSID pOwner,
     BOOL bOwnerDefaulted
     );
Example #4
0
 public static bool ToBool(BOOL bValue)
 {
     return(bValue != Win32.FALSE);
 }
Example #5
0
		public static extern BOOL SetSecurityDescriptorOwner(
			PSECURITY_DESCRIPTOR pSecurityDescriptor, 
			PSID pOwner, 
			BOOL bOwnerDefaulted
			);
Example #6
0
 internal static extern BOOL AdjustWindowRect([In, Out] ref RECT lpRect, WindowStyle dwStyle, BOOL bMenu);
Example #7
0
        public void MakeAbsolute()
        {
            if (IsNull)
            {
                return;
            }

            if (!IsSelfRelative)
            {
                return;
            }


            DWORD dwSD = 0, dwOwner = 0, dwGroup = 0, dwDacl = 0, dwSacl = 0;
            BOOL  rc = Win32.MakeAbsoluteSD(
                _secDesc,
                IntPtr.Zero, ref dwSD,
                IntPtr.Zero, ref dwDacl,
                IntPtr.Zero, ref dwSacl,
                IntPtr.Zero, ref dwOwner,
                IntPtr.Zero, ref dwGroup);

            if (Marshal.GetLastWin32Error() != Win32.ERROR_INSUFFICIENT_BUFFER)
            {
                Win32.ThrowLastError();
            }

            IntPtr secDesc = Win32.AllocGlobal(dwSD);

            try
            {
                IntPtr pDacl = Win32.AllocGlobal(dwDacl);
                try
                {
                    IntPtr pSacl = Win32.AllocGlobal(dwSacl);
                    try
                    {
                        IntPtr pOwner = Win32.AllocGlobal(dwOwner);
                        try
                        {
                            IntPtr pGroup = Win32.AllocGlobal(dwGroup);
                            try
                            {
                                rc = Win32.MakeAbsoluteSD(
                                    _secDesc,
                                    secDesc, ref dwSD, pDacl, ref dwDacl, pSacl, ref dwSacl,
                                    pOwner, ref dwOwner, pGroup, ref dwGroup);
                                Win32.CheckCall(rc);

                                Clear();
                                _secDesc = secDesc;
                            }
                            catch
                            {
                                Win32.FreeGlobal(pGroup);
                                throw;
                            }
                        }
                        catch
                        {
                            Win32.FreeGlobal(pOwner);
                            throw;
                        }
                    }
                    catch
                    {
                        Win32.FreeGlobal(pSacl);
                        throw;
                    }
                }
                catch
                {
                    Win32.FreeGlobal(pDacl);
                    throw;
                }
            }
            catch
            {
                Win32.FreeGlobal(secDesc);
                throw;
            }
        }
Example #8
0
		public static extern BOOL GetSecurityDescriptorGroup(
			PSECURITY_DESCRIPTOR pSecurityDescriptor, 
			out PSID pGroup, 
			out BOOL lpbGroupDefaulted
			);
Example #9
0
 public HRESULT WriteAttributes(IXmlReader *pReader, BOOL fWriteDefaultAttributes)
 {
     return(((delegate * unmanaged <IXmlWriter *, IXmlReader *, BOOL, int>)(lpVtbl[6]))((IXmlWriter *)Unsafe.AsPointer(ref this), pReader, fWriteDefaultAttributes));
 }
Example #10
0
 public static extern BOOL SetConsoleWindowInfo(HANDLE hConsoleOutput, BOOL bAbsolute, [NativeTypeName("const SMALL_RECT *")] SMALL_RECT *lpConsoleWindow);
 public HRESULT SetHeadTracking(BOOL bEnableHeadTracking)
 {
     return(((delegate * unmanaged <IAudioAmbisonicsControl *, BOOL, int>)(lpVtbl[4]))((IAudioAmbisonicsControl *)Unsafe.AsPointer(ref this), bEnableHeadTracking));
 }
Example #12
0
 public extern static UINT ViewGetByLastActivationOrder(HWND[] windows, UINT count, BOOL onlySwitcherWindows, BOOL onlyCurrentDesktop);
Example #13
0
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();

			switch ( version )
			{
				case 11:
				{
					m_LootPack = reader.ReadItem();
					goto case 10;
				}
				case 10:
				{
					m_DynamicCopy = reader.ReadBool();
					goto case 9;
				}
				case 9:
				{
					m_TemplateMobile = reader.ReadMobile();
					m_TemplateItem = reader.ReadItem();
					m_TemplateEnabled = reader.ReadBool();
					
					goto case 8;
				}
				case 8:
				{
					
					m_MobVendorInvul = (BOOL)reader.ReadInt();
					goto case 7;
				}
				case 7:
				{
					int dummy = 0;
					bool b = reader.ReadBool();
					dummy = reader.ReadInt();
					dummy = reader.ReadInt();
					dummy = reader.ReadInt();
					dummy = reader.ReadInt();
					dummy = reader.ReadInt();
					dummy = reader.ReadInt();
					dummy = reader.ReadInt();
					goto case 6;
				}
				case 6:
				{
					int dummy = 0;
					string s = reader.ReadString();
					dummy = reader.ReadInt();
					goto case 5;
				}
				case 5:
				{
					m_NavDest = (NavDestinations)reader.ReadInt();
					goto case 4;
				}
				case 4:
				{
					m_MobDirection = (Direction)reader.ReadInt();
					goto case 3;
				}
                case 3:
				{	// obsolete: m_FreezeDecay
					bool dmy = reader.ReadBool();
					goto case 2;
				}

				case 2:
				{
					m_WayPoint = reader.ReadItem() as WayPoint;

					goto case 1;
				}

				case 1:
				{
					m_Group = reader.ReadBool();
					
					goto case 0;
				}

				case 0:
				{
					m_MinDelay = reader.ReadTimeSpan();
					m_MaxDelay = reader.ReadTimeSpan();
					m_Count = reader.ReadInt();
					m_Team = reader.ReadInt();
					m_HomeRange = reader.ReadInt();
					m_Running = reader.ReadBool();

					TimeSpan ts = TimeSpan.Zero;

					if ( m_Running )
						ts = reader.ReadDeltaTime() - DateTime.Now;
					
					int size = reader.ReadInt();

					m_CreaturesName = new ArrayList( size );

					for ( int i = 0; i < size; ++i )
					{
						string typeName = reader.ReadString();

						m_CreaturesName.Add( typeName );

						if ( SpawnerType.GetType( typeName ) == null )
						{
							if ( m_WarnTimer == null )
								m_WarnTimer = new WarnTimer();

							m_WarnTimer.Add( Location, Map, typeName );
						}
					}

					int count = reader.ReadInt();

					m_Creatures = new ArrayList( count );

					for ( int i = 0; i < count; ++i )
					{
						IEntity e = World.FindEntity( reader.ReadInt() );

						if ( e != null )
							m_Creatures.Add( e );
					}

					if ( m_Running )
						DoTimer( ts );

					break;
				}
			}
		}
Example #14
0
		public static extern HANDLE OpenProcess(ProcessAccessType dwDesiredAccess, BOOL bInheritHandle, DWORD dwProcessId);
 public HRESULT SetStreamSelection([NativeTypeName("DWORD")] uint dwStreamIndex, BOOL fEnabled)
 {
     return(((delegate * unmanaged <IMFPMediaItem *, uint, BOOL, int>)(lpVtbl[16]))((IMFPMediaItem *)Unsafe.AsPointer(ref this), dwStreamIndex, fEnabled));
 }
Example #16
0
		public static extern BOOL OpenThreadToken(HANDLE ThreadHandle, DWORD DesiredAccess, BOOL OpenAsSelf, out HANDLE TokenHandle);
 private static extern int SetWindowRgn(IntPtr hwnd, IntPtr hrgn, BOOL fRedraw);
Example #18
0
		public static extern BOOL GetSecurityDescriptorSacl(
			PSECURITY_DESCRIPTOR pSecurityDescriptor, 
			out BOOL lpbSaclPresent, 
			ref PACL pSacl,     // By ref, because if "present" == false, value is unchanged
			out BOOL lpbSaclDefaulted
			);
Example #19
0
 public HRESULT ZoomToRect([NativeTypeName("const float")] float left, [NativeTypeName("const float")] float top, [NativeTypeName("const float")] float right, [NativeTypeName("const float")] float bottom, BOOL animate)
 {
     return(((delegate * unmanaged <IDirectManipulationViewport *, float, float, float, float, BOOL, int>)(lpVtbl[13]))((IDirectManipulationViewport *)Unsafe.AsPointer(ref this), left, top, right, bottom, animate));
 }
Example #20
0
		public static bool ToBool(BOOL bValue)
		{
			return (bValue != Win32.FALSE);
		}
 public HRESULT Show(BOOL fShow)
 {
     return(((delegate * unmanaged <IDropTargetHelper *, BOOL, int>)(lpVtbl[7]))((IDropTargetHelper *)Unsafe.AsPointer(ref this), fShow));
 }
Example #22
0
 public HRESULT Show(BOOL bShow)
 {
     return(((delegate * unmanaged <ITfReadingInformationUIElement *, BOOL, int>)(lpVtbl[5]))((ITfReadingInformationUIElement *)Unsafe.AsPointer(ref this), bShow));
 }
 public void SetInput([NativeTypeName("UINT32")] uint index, ID2D1Image *input, [Optional, DefaultParameterValue(1)] BOOL invalidate)
 {
     ((delegate * unmanaged <ID2D1Effect *, uint, ID2D1Image *, BOOL, void>)(lpVtbl[14]))((ID2D1Effect *)Unsafe.AsPointer(ref this), index, input, invalidate);
 }
Example #24
0
 public static extern BOOL SetSecurityDescriptorSacl(
     PSECURITY_DESCRIPTOR pSecurityDescriptor,
     BOOL bSaclPresent,
     PACL pSacl,
     BOOL bSaclDefaulted
     );
    public void SetInputEffect([NativeTypeName("UINT32")] uint index, ID2D1Effect *inputEffect, [Optional, DefaultParameterValue(1)] BOOL invalidate)
    {
        ID2D1Image *output = null;

        if (inputEffect != null)
        {
            inputEffect->GetOutput(&output);
        }

        SetInput(index, output, invalidate);
        if (output != null)
        {
            _ = output->Release();
        }
    }
Example #26
0
 public static void CheckCall(BOOL funcResult)
 {
     CheckCall(funcResult != 0);
 }
Example #27
0
 public HRESULT SetStablePowerState(BOOL Enable)
 {
     return(((delegate * unmanaged[Stdcall] < ID3D12Device *, BOOL, int >)(lpVtbl[40]))((ID3D12Device *)Unsafe.AsPointer(ref this), Enable));
 }
 public HRESULT Enable(BOOL fEnable)
 {
     return(((delegate * unmanaged <IAutoComplete2 *, BOOL, int>)(lpVtbl[4]))((IAutoComplete2 *)Unsafe.AsPointer(ref this), fEnable));
 }
 internal static extern bool UserHandleGrantAccess(IntPtr hUserHandle, SafeJobObjectHandle hJob, BOOL bGrant);
Example #30
0
 HRESULT Ole32.IOleInPlaceFrame.EnableModeless(BOOL fEnable)
 {
     return(HRESULT.E_NOTIMPL);
 }
Example #31
0
 public static extern HANDLE OpenProcess(ProcessAccessType dwDesiredAccess, BOOL bInheritHandle, DWORD dwProcessId);
Example #32
0
		public static extern HANDLE OpenThread(ThreadAccessType dwDesiredAccess, BOOL bInheritHandle, DWORD dwThreadId);
Example #33
0
 public static extern HANDLE OpenThread(ThreadAccessType dwDesiredAccess, BOOL bInheritHandle, DWORD dwThreadId);
Example #34
0
		public static extern BOOL AdjustTokenPrivileges(
			HANDLE TokenHandle, 
			BOOL DisableAllPrivileges, 
			PTOKEN_PRIVILEGES NewState, 
			DWORD BufferLength, 
			PTOKEN_PRIVILEGES PreviousState, 
			out DWORD ReturnLength);
Example #35
0
 public static extern BOOL OpenThreadToken(HANDLE ThreadHandle, DWORD DesiredAccess, BOOL OpenAsSelf, out HANDLE TokenHandle);
Example #36
0
		public static extern BOOL GetSecurityDescriptorOwner(
			PSECURITY_DESCRIPTOR pSecurityDescriptor, 
			out PSID pOwner, 
			out BOOL lpbOwnerDefaulted
			);
Example #37
0
 public static extern BOOL GetSecurityDescriptorGroup(
     PSECURITY_DESCRIPTOR pSecurityDescriptor,
     out PSID pGroup,
     out BOOL lpbGroupDefaulted
     );
Example #38
0
		public static extern BOOL SetSecurityDescriptorGroup(
			PSECURITY_DESCRIPTOR pSecurityDescriptor, 
			PSID pGroup, 
			BOOL bGroupDefaulted
			);
Example #39
0
 public static extern BOOL GetSecurityDescriptorOwner(
     PSECURITY_DESCRIPTOR pSecurityDescriptor,
     out PSID pOwner,
     out BOOL lpbOwnerDefaulted
     );
Example #40
0
		public static extern BOOL SetSecurityDescriptorSacl(
			PSECURITY_DESCRIPTOR pSecurityDescriptor, 
			BOOL bSaclPresent, 
			PACL pSacl, 
			BOOL bSaclDefaulted
			);
Example #41
0
 public static extern BOOL GetSecurityDescriptorSacl(
     PSECURITY_DESCRIPTOR pSecurityDescriptor,
     out BOOL lpbSaclPresent,
     ref PACL pSacl,                 // By ref, because if "present" == false, value is unchanged
     out BOOL lpbSaclDefaulted
     );
Example #42
0
		public static void CheckCall(BOOL funcResult)
		{
			CheckCall(funcResult != 0);
		}
Example #43
0
 public static extern BOOL SetSecurityDescriptorGroup(
     PSECURITY_DESCRIPTOR pSecurityDescriptor,
     PSID pGroup,
     BOOL bGroupDefaulted
     );
Example #44
0
 internal static extern BOOL AdjustWindowRect([In, Out] ref Win32Rectangle lpRect, WindowStyle dwStyle, BOOL bMenu);
Example #45
0
 public HRESULT AreGlyphsLocal([NativeTypeName("const UINT16 *")] ushort *glyphIndices, [NativeTypeName("UINT32")] uint glyphCount, BOOL enqueueIfNotLocal, BOOL *isLocal)
 {
     return(((delegate * unmanaged <IDWriteFontFace3 *, ushort *, uint, BOOL, BOOL *, int>)(lpVtbl[48]))((IDWriteFontFace3 *)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, enqueueIfNotLocal, isLocal));
 }