142 references to NativeMethods
System.Workflow.ComponentModel (142)
AuthoringOM\Compiler\XomlCompilerHelpers.cs (6)
829NativeMethods.ThrowOnFailure(metaDataDispenser.OpenScope(assemblyLocation, 0, ref guidMetaDataImport, out metaDataImportObj)); 844NativeMethods.ThrowOnFailure((metaDataImport.EnumTypeRefs(ref enumHandle, typeRefs, (uint)typeRefs.Length, ref typeRefCount))); 851NativeMethods.ThrowOnFailure(metaDataImport.GetTypeRefProps(typeRefs[typeRefIndex], out resolutionScopeToken, typeRefNamePtr, 0, out typeRefNameLength)); 858NativeMethods.ThrowOnFailure(metaDataImport.GetTypeRefProps(typeRefs[typeRefIndex], out resolutionScopeToken, typeRefNamePtr, typeRefNameLength, out typeRefNameLength)); 883NativeMethods.ThrowOnFailure(metaDataAssemblyImport.GetAssemblyRefProps(resolutionScopeToken, out publicKeyOrToken, out publicKeyOrTokenSize, assemblyName, 0, out assemblyNameSize, out assemblyMetadata, out hashValueBlob, out hashValueSize, out assemblyRefFlags)); 895NativeMethods.ThrowOnFailure(metaDataAssemblyImport.GetAssemblyRefProps(resolutionScopeToken, out publicKeyOrToken, out publicKeyOrTokenSize, assemblyName, assemblyNameSize, out assemblyNameSize, out assemblyMetadata, out hashValueBlob, out hashValueSize, out assemblyRefFlags));
AuthoringOM\Design\DesignerHelpers.cs (37)
915NativeMethods.XFORM xform = new NativeMethods.XFORM(this.graphics.Transform); 920this.oldGraphicsMode = NativeMethods.SetGraphicsMode(this.hdc, NativeMethods.GM_ADVANCED); 925int result = NativeMethods.SetWorldTransform(this.hdc, xform); 929IntPtr handle = NativeMethods.GetCurrentObject(this.hdc, NativeMethods.OBJ_PEN); 935handle = NativeMethods.GetCurrentObject(this.hdc, NativeMethods.OBJ_EXTPEN); 941handle = NativeMethods.GetCurrentObject(this.hdc, NativeMethods.OBJ_BRUSH); 953IntPtr objectPtr = NativeMethods.SelectObject(this.hdc, this.oldPen); 961objectPtr = NativeMethods.SelectObject(this.hdc, this.oldPenEx); 969objectPtr = NativeMethods.SelectObject(this.hdc, this.oldBrush); 977int result = NativeMethods.SetWorldTransform(this.hdc, new NativeMethods.XFORM()); 985result = NativeMethods.SetGraphicsMode(this.hdc, this.oldGraphicsMode); 1030IntPtr objectPtr = NativeMethods.SelectObject(this.hdc, majorGridPen.Handle); 1038if (!NativeMethods.MoveToEx(this.hdc, gridCoOrd, viewableRectangle.Top + 1, null)) 1041if (!NativeMethods.LineTo(this.hdc, gridCoOrd, viewableRectangle.Bottom - 1)) 1047objectPtr = NativeMethods.SelectObject(this.hdc, minorGridPen.Handle); 1051if (!NativeMethods.MoveToEx(this.hdc, gridCoOrd + gridUnit.Width / 2, viewableRectangle.Top + 1, null)) 1054if (!NativeMethods.LineTo(this.hdc, gridCoOrd + gridUnit.Width / 2, viewableRectangle.Bottom - 1)) 1057objectPtr = NativeMethods.SelectObject(this.hdc, majorGridPen.Handle); 1067if (!NativeMethods.MoveToEx(this.hdc, viewableRectangle.Left + 1, gridCoOrd, null)) 1070if (!NativeMethods.LineTo(this.hdc, viewableRectangle.Right - 1, gridCoOrd)) 1076objectPtr = NativeMethods.SelectObject(this.hdc, minorGridPen.Handle); 1080if (!NativeMethods.MoveToEx(this.hdc, viewableRectangle.Left + 1, gridCoOrd + gridUnit.Height / 2, null)) 1083if (!NativeMethods.LineTo(this.hdc, viewableRectangle.Right - 1, gridCoOrd + gridUnit.Height / 2)) 1086objectPtr = NativeMethods.SelectObject(this.hdc, majorGridPen.Handle); 1095IntPtr objectPtr = NativeMethods.SelectObject(this.hdc, this.oldPen); 1114IntPtr penPtr = NativeMethods.ExtCreatePen(NativeMethods.PS_COSMETIC | NativeMethods.PS_USERSTYLE | penStyle, 1, new NativeMethods.LOGBRUSH(NativeMethods.BS_SOLID, ColorTranslator.ToWin32(pen.Color), 0), 2, new int[] { 1, 1 }); 1127int result = NativeMethods.DeleteObject(this.hpen);
AuthoringOM\Design\DesignerWidgets.cs (51)
17using NativeMethods = System.Workflow.Interop.NativeMethods; 2160this.infoTip.SetDelay(NativeMethods.TTDT_INITIAL, 1000); 2161this.infoTip.SetDelay(NativeMethods.TTDT_RESHOW, 1000); 2162this.infoTip.SetDelay(NativeMethods.TTDT_AUTOPOP, 1000000); 2172this.inplaceTip.SetDelay(NativeMethods.TTDT_INITIAL, 50); 2173this.inplaceTip.SetDelay(NativeMethods.TTDT_RESHOW, 50); 2174this.inplaceTip.SetDelay(NativeMethods.TTDT_AUTOPOP, 1000000); 2217if (NativeMethods.IsWindowVisible(this.infoTip.Handle)) 2245if (NativeMethods.IsWindowVisible(this.inplaceTip.Handle)) 2256if (msg.Msg == NativeMethods.WM_NOTIFY && msg.LParam != IntPtr.Zero && !this.inplaceTipRectangle.IsEmpty) 2258NativeMethods.NMHDR notifyHeader = Marshal.PtrToStructure(msg.LParam, typeof(NativeMethods.NMHDR)) as NativeMethods.NMHDR; 2259if (notifyHeader != null && notifyHeader.hwndFrom == this.inplaceTip.Handle && notifyHeader.code == NativeMethods.TTN_SHOW) 2262int result = NativeMethods.SetWindowPos(this.inplaceTip.Handle, IntPtr.Zero, screenCoOrd.X, screenCoOrd.Y, 0, 0, NativeMethods.SWP_NOSIZE | NativeMethods.SWP_NOZORDER | NativeMethods.SWP_NOACTIVATE); 2287createParams.Style = NativeMethods.WS_POPUP | NativeMethods.TTS_ALWAYSTIP | NativeMethods.TTS_NOPREFIX; 2288createParams.ExStyle = NativeMethods.WS_EX_TOPMOST; 2294NativeMethods.TOOLINFO toolInfo = GetToolInfo(); 2295toolInfo.flags = NativeMethods.TTF_TRANSPARENT | NativeMethods.TTF_SUBCLASS; 2305NativeMethods.TOOLINFO toolInfo = GetToolInfo(); 2319IntPtr lresult = NativeMethods.SendMessage(Handle, NativeMethods.TTM_ACTIVATE, activateValue, IntPtr.Zero); 2325IntPtr lresult = NativeMethods.SendMessage(Handle, NativeMethods.TTM_POP, IntPtr.Zero, IntPtr.Zero); 2330IntPtr lresult = NativeMethods.SendMessage(Handle, NativeMethods.TTM_SETMAXTIPWIDTH, IntPtr.Zero, new IntPtr(tipWidth)); 2335IntPtr lresult = NativeMethods.SendMessage(Handle, NativeMethods.TTM_SETDELAYTIME, new IntPtr(time), new IntPtr(delay)); 2344IntPtr lresult = NativeMethods.SendMessage(Handle, NativeMethods.TTM_SETTITLE, new IntPtr((int)ToolTipIcon.None), titleStr); 2354NativeMethods.TOOLINFO toolInfo = GetToolInfo(); 2359IntPtr lresult = NativeMethods.SendMessage(Handle, NativeMethods.TTM_UPDATETIPTEXT, IntPtr.Zero, ref toolInfo); 2369NativeMethods.TOOLINFO toolInfo = GetToolInfo(); 2375IntPtr lresult = NativeMethods.SendMessage(Handle, NativeMethods.TTM_NEWTOOLRECT, IntPtr.Zero, ref toolInfo); 2378private bool AddTool(NativeMethods.TOOLINFO toolInfo) 2380IntPtr retVal = NativeMethods.SendMessage(Handle, NativeMethods.TTM_ADDTOOL, IntPtr.Zero, ref toolInfo); 2384private void DelTool(NativeMethods.TOOLINFO toolInfo) 2386IntPtr lresult = NativeMethods.SendMessage(Handle, NativeMethods.TTM_DELTOOL, IntPtr.Zero, ref toolInfo); 2389private NativeMethods.TOOLINFO GetToolInfo() 2391NativeMethods.TOOLINFO toolInfo = new NativeMethods.TOOLINFO();
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (17)
498NativeMethods.DeleteObject(this.bitmapSortUp); 501NativeMethods.DeleteObject(this.bitmapSortDown); 993IntPtr headerWindow = NativeMethods.ListView_GetHeader(this.artifactListView.Handle); 994NativeMethods.HDITEM headerItem = new NativeMethods.HDITEM(); 995headerItem.mask = NativeMethods.HDI_FORMAT | NativeMethods.HDI_BITMAP; 998if (NativeMethods.Header_GetItem(headerWindow, i, headerItem)) 1000headerItem.fmt &= ~(NativeMethods.HDF_BITMAP | NativeMethods.HDF_BITMAP_ON_RIGHT); 1002NativeMethods.Header_SetItem(headerWindow, i, headerItem); 1006if (NativeMethods.Header_GetItem(headerWindow, columnIndex, headerItem)) 1008headerItem.mask = NativeMethods.HDI_FORMAT | NativeMethods.HDI_BITMAP; 1009headerItem.fmt |= NativeMethods.HDF_BITMAP | NativeMethods.HDF_BITMAP_ON_RIGHT; 1011NativeMethods.Header_SetItem(headerWindow, columnIndex, headerItem);
AuthoringOM\Design\WorkflowPrinting.cs (16)
220Point dpi = new Point(Math.Max(NativeMethods.GetDeviceCaps(hDC, NativeMethods.LOGPIXELSX), 1), Math.Max(NativeMethods.GetDeviceCaps(hDC, NativeMethods.LOGPIXELSY), 1)); 222int printAreaHorz = (int)((float)NativeMethods.GetDeviceCaps(hDC, NativeMethods.HORZRES) * 100.0f / (float)dpi.X); 223int printAreaVert = (int)((float)NativeMethods.GetDeviceCaps(hDC, NativeMethods.VERTRES) * 100.0f / (float)dpi.Y); 225int physicalWidth = (int)((float)NativeMethods.GetDeviceCaps(hDC, NativeMethods.PHYSICALWIDTH) * 100.0f / (float)dpi.X); 226int physicalHeight = (int)((float)NativeMethods.GetDeviceCaps(hDC, NativeMethods.PHYSICALHEIGHT) * 100.0f / (float)dpi.Y); 229int leftMargin = (int)((float)NativeMethods.GetDeviceCaps(hDC, NativeMethods.PHYSICALOFFSETX) * 100.0f / (float)dpi.X); 230int topMargin = (int)((float)NativeMethods.GetDeviceCaps(hDC, NativeMethods.PHYSICALOFFSETY) * 100.0f / (float)dpi.Y);
AuthoringOM\Design\WorkflowView.cs (7)
1434if (this.workflowToolTip != null && m.Msg == NativeMethods.WM_NOTIFY) 2224if (m.Msg == NativeMethods.WM_KEYDOWN || m.Msg == NativeMethods.WM_SYSKEYDOWN || 2225m.Msg == NativeMethods.WM_KEYUP || m.Msg == NativeMethods.WM_SYSKEYUP) 2231if (m.Msg == NativeMethods.WM_KEYDOWN || m.Msg == NativeMethods.WM_SYSKEYDOWN)
Shared\NativeMethods.cs (8)
246internal static bool Header_GetItem(IntPtr hWndHeader, int index, [In, Out] NativeMethods.HDITEM hdi) 252internal static bool Header_SetItem(IntPtr hWndHeader, int index, [In, Out] NativeMethods.HDITEM hdi) 274public static extern IntPtr SendMessage(IntPtr hWnd, int msg, IntPtr wParam, [In, Out] NativeMethods.HDITEM lParam); 378IntPtr hmod = NativeMethods.LoadLibraryFromSystemPathIfAvailable(libName); 381IntPtr pfnProc = NativeMethods.GetProcAddress(new HandleRef(isAvailable, hmod), procName); 388NativeMethods.FreeLibrary(new HandleRef(isAvailable, hmod)); 403int status = NativeMethods.WldpIsDynamicCodePolicyEnabled(out isEnabled); 404result = (((status == NativeMethods.S_OK) && (isEnabled != 0)) ? 1 : 0);