| File: Microsoft\VisualBasic\Helpers\SafeNativeMethods.vb | Web Access |
| Project: ..\..\..\src\winforms\src\Microsoft.VisualBasic.Forms\src\Microsoft.VisualBasic.Forms.vbproj (Microsoft.VisualBasic.Forms) |
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. Imports System.Runtime.InteropServices Namespace Microsoft.VisualBasic.CompilerServices <ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)> <ComVisible(False)> Friend Module SafeNativeMethods <PreserveSig()> Friend Declare Function IsWindowEnabled Lib "user32" (hwnd As IntPtr) As <MarshalAs(UnmanagedType.Bool)> Boolean <PreserveSig()> Friend Declare Function IsWindowVisible Lib "user32" (hwnd As IntPtr) As <MarshalAs(UnmanagedType.Bool)> Boolean <PreserveSig()> Friend Declare Function GetWindowThreadProcessId Lib "user32" (hwnd As IntPtr, ByRef lpdwProcessId As Integer) As Integer End Module End Namespace