Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / Drawing / System / Drawing / Design / UnsafeNativeMethods.cs / 1 / UnsafeNativeMethods.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Drawing.Design { using System.Runtime.InteropServices; using System; using System.Security.Permissions; using System.Collections; using System.IO; using System.Text; [ System.Security.SuppressUnmanagedCodeSecurityAttribute() ] internal class UnsafeNativeMethods { private UnsafeNativeMethods() {} [DllImport(ExternDll.User32, ExactSpelling=true, CharSet=CharSet.Auto)] public static extern int ClientToScreen(HandleRef hWnd, [In, Out] NativeMethods.POINT pt); [DllImport(ExternDll.User32, ExactSpelling=true, CharSet=CharSet.Auto)] public static extern int ScreenToClient(HandleRef hWnd, [In, Out] NativeMethods.POINT pt); [DllImport(ExternDll.User32, ExactSpelling=true, CharSet=CharSet.Auto)] public static extern IntPtr SetFocus(HandleRef hWnd); [DllImport(ExternDll.User32, ExactSpelling=true, CharSet=CharSet.Auto)] public static extern IntPtr GetFocus(); [DllImport(ExternDll.User32, ExactSpelling=true, CharSet=CharSet.Auto)] public static extern void NotifyWinEvent(int winEvent, HandleRef hwnd, int objType, int objID); public const int OBJID_CLIENT = unchecked(unchecked((int)0xFFFFFFFC)); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ExpandCollapsePattern.cs
- SendKeys.cs
- XmlDataSourceNodeDescriptor.cs
- AnchoredBlock.cs
- columnmapkeybuilder.cs
- wmiutil.cs
- DiscoveryRequestHandler.cs
- CheckBoxRenderer.cs
- Renderer.cs
- Assign.cs
- Validator.cs
- TabPageDesigner.cs
- SmtpLoginAuthenticationModule.cs
- DefaultObjectMappingItemCollection.cs
- MarginCollapsingState.cs
- IPPacketInformation.cs
- HeaderElement.cs
- AccessedThroughPropertyAttribute.cs
- RoleExceptions.cs
- ConfigXmlText.cs
- ListViewTableCell.cs
- OutputCacheProfile.cs
- PointCollectionConverter.cs
- GlyphManager.cs
- WinEventHandler.cs
- ListItemConverter.cs
- ScalarConstant.cs
- UIAgentMonitorHandle.cs
- RSAOAEPKeyExchangeDeformatter.cs
- HotSpot.cs
- AudioBase.cs
- GraphicsPathIterator.cs
- DbConnectionInternal.cs
- StorageSetMapping.cs
- KeyNotFoundException.cs
- DeviceContexts.cs
- FreezableCollection.cs
- ResourcePool.cs
- ValueExpressions.cs
- CryptoApi.cs
- ContentType.cs
- Point3D.cs
- FormatVersion.cs
- InternalEnumValidator.cs
- OutputCacheModule.cs
- AssemblyFilter.cs
- MouseWheelEventArgs.cs
- NullableDecimalMinMaxAggregationOperator.cs
- TableCellCollection.cs
- OutputCacheSettings.cs
- SwitchElementsCollection.cs
- Constant.cs
- DWriteFactory.cs
- FlowDocumentPaginator.cs
- Page.cs
- DataSvcMapFile.cs
- TimeoutException.cs
- CodeDirectionExpression.cs
- ToolStripMenuItem.cs
- SqlDataSourceStatusEventArgs.cs
- VirtualizedContainerService.cs
- AuthenticationModulesSection.cs
- SqlDataSourceCache.cs
- RepeatBehavior.cs
- Int32Storage.cs
- LiteralLink.cs
- AttachmentService.cs
- Camera.cs
- counter.cs
- TrustLevel.cs
- AttributedMetaModel.cs
- IndexingContentUnit.cs
- InternalTransaction.cs
- KeySpline.cs
- CornerRadiusConverter.cs
- TextElementEnumerator.cs
- MethodAccessException.cs
- DashStyle.cs
- GridErrorDlg.cs
- ApplicationCommands.cs
- SystemIPInterfaceStatistics.cs
- WebEventCodes.cs
- CallSite.cs
- ForwardPositionQuery.cs
- LocalizableResourceBuilder.cs
- HostingMessageProperty.cs
- NativeMethods.cs
- TableLayoutCellPaintEventArgs.cs
- RectangleF.cs
- LingerOption.cs
- ZipPackagePart.cs
- StringUtil.cs
- _WinHttpWebProxyDataBuilder.cs
- HtmlElementErrorEventArgs.cs
- GeometryConverter.cs
- CompositeCollectionView.cs
- XPathCompileException.cs
- ProfileManager.cs
- QuotedPrintableStream.cs
- ViewGenerator.cs