Desktop Functions: Smart Device Functions:
|
Search Results for "POINT" in [All]mqrt
//Get a pointer to the SD hhctrl2: HtmlHelp
[DllImport("hhctrl.ocx", SetLastError=true, EntryPoint = "HtmlHelpW", CharSet = CharSet.Unicode)]
<DllImport("hhctrl.ocx", SetLastError:=True, EntryPoint:="HtmlHelpW", CharSet:=CharSet.Unicode)> _
[DllImport("hhctrl.ocx", SetLastError = true, EntryPoint = "HtmlHelpW", CharSet = CharSet.Unicode)]
class POINT
public POINT()
public POINT(int x, int y)
internal POINT pt;
Point current_cursor_location = Control.MousePosition;
param.pt = new POINT(current_cursor_location.X, current_cursor_location.Y); setupapi3: CM_Get_Child outputDeviceInstance, Caller-supplied pointer to the device instance handle to the child node that this function retrieves. The retrieved handle is bound to the local machine. pulRegDataType, Optional, can be NULL. A pointer to a location that receives the registry data type, specified as a REG_-prefixed constant defined in Winnt.h. buffer, Optional, can be NULL. A pointer to a caller-supplied buffer that receives the requested device property. If this value is NULL, the function supplies only the length of the requested data in the address pointed to by pulLength. length, A pointer to a ULONG variable into which the function stores the length, in bytes, of the requested device property. If the Buffer parameter is set to NULL, the ULONG variable must be set to zero. If the Buffer parameter is not set to NULL, the ULONG variable must be set to the length, in bytes, of the caller-supplied buffer. DEVINST is a DWORD, not a pointer. This matters on 64-bit platforms. outputDeviceInstance, Caller-supplied pointer to the device instance handle to the sibling node that this function retrieves. The retrieved handle is bound to the local machine. DEVINST is a DWORD, not a pointer. This matters on 64-bit platforms. [out, optional] Pointer to a buffer to receive the INF file name assigned to it at the time it was copied to the INF directory. The buffer, if specified, should typically be MAX_PATH in length. If the SP_COPY_NOOVERWRITE flag is specified and the SetupCopyOEMInf function fails with a return code of ERROR_FILE_EXISTS, this buffer will contain the name of the existing INF file. If the SP_COPY_OEMINF_CATALOG_ONLY flag is specified, this buffer will contain the destination INF filename if the INF file is already present in the INF directory. Otherwise, this buffer will be set to the empty string. This parameter can be NULL. [out, optional] Pointer to a variable that receives the size (in characters) required to store the destination INF file name including a terminating NULL. If the SP_COPY_OEMINF_CATALOG_ONLY flag is specified, this variable will receive a string length only if the INF file already exists in the INF directory. Otherwise, this variable will be set to zero. This parameter can be NULL. [out, optional] Pointer to a string that is set upon successful return (or ERROR_FILE_EXISTS) to point to the beginning of the filename component of the path stored in the DestinationInfFileName parameter. If the SP_COPY_OEMINF_CATALOG_ONLY flag is specified, the DestinationInfFileName parameter may be an empty string. In this case, the character pointer will be set to NULL upon successful return. This parameter can be NULL. A GUID array that receives a list of setup class GUIDs. This pointer is optional and can be NULL. The number of GUIDs in the array that is pointed to by the ClassGuildList parameter. If ClassGuidList is NULL, ClassGuidSize must be zero. A pointer to a DWORD-typed variable that receives the number of GUIDs that are returned (if the number is less than or equal to the size, in GUIDs, of the array that is pointed to by the ClassGuidList parameter). If this number is greater than the size of the ClassGuidList array, it indicates how large the ClassGuidList array must be to contain all of the class GUIDs.
//Inputs: pointer to hdev, SP_DEV_INFO, bool A pointer to a buffer that receives the NULL-terminated string that contains the name of the class that is specified by the pointer in the ClassGuid parameter. The size, in characters, of the buffer that is pointed to by the ClassName parameter. The maximum size, in characters, of a NULL-terminated class name is MAX_CLASS_NAME_LEN. For more information about the class name size, see the following Comments section. A pointer to a variable that receives the number of characters that are required to store the requested NULL-terminated class name. This pointer is optional and can be NULL.
EntryPoint:="SetupDiDestroyDeviceInfoList", _
EntryPoint:="SetupDiEnumDeviceInfo", _ out Pointer to an SP_DEVINFO_DATA structure that receives information about this element. You must set the cbSize member to sizeof(SP_DEVINFO_DATA) before calling this function. A call to SetupDiEnumDeviceInterfaces retrieves a pointer to a structure that identifies a specific device interface in the previously retrieved DeviceInfoSet array. The call specifies a device interface by passing an array index. To retrieve information about all of the device interfaces, an application can loop through the array, incrementing the array index until the function returns zero, indicating that there are no more interfaces. The GetLastError API function then returns No more data is available. This signature has the drawback that it does not allow passing a null pointer as the first parameter, which is one of the common usages cited at [SetupDiGetClassDevs]: "To return devices for all device setup classes, set the DIGCF_ALLCLASSES flag, and set the ClassGuid parameter to NULL."
EntryPoint:="SetupDiGetClassDevsW", _
EntryPoint:="SetupDiGetClassDevsW", _ deviceInfoData, Pointer to an SP_DEVINFO_DATA structure that defines the device instance. propertyRegDataType, Pointer to a variable that receives the registry data Type. This parameter can be NULL.</param> propertyBuffer, Pointer to a buffer that receives the requested device property.</param> requiredSize, Pointer to a variable that receives the required buffer size, in bytes. This parameter can be NULL.</param>
EntryPoint:="SetupDiOpenClassRegKeyExW", _
//Inputs: pointer to hdev, SP_DEV_INFO, bool
If this function is called with a ReturnBuffer of NULL and a ReturnBufferSize of zero, the function puts the buffer size needed to hold the specified data into the variable pointed to by RequiredSize. If the function succeeds in this, the return value is a nonzero value. Otherwise, the return value is zero and extended error information can be obtained by calling GetLastError. You can call the function once to get the required buffer size, allocate the necessary memory, and then call the function a second time to retrieve the data. Using this technique, you can avoid errors due to an insufficient buffer size. 22: SetupOpenInfFile
gdi32When the function succeeds, the caller of this function can free the memory pointed to by pbFont because the system has made its own copy of the memory. To remove the fonts that were installed, call RemoveFontMemResourceEx. However, when the process goes away, the system will unload the fonts even if the process did not call RemoveFontMemResourceEx. 24: AlphaBlend
[DllImport("gdi32.dll", EntryPoint="GdiAlphaBlend")]
[DllImport("gdi32.dll", EntryPoint = "GdiAlphaBlend")] 25: BitBlt
[DllImport("gdi32.dll", EntryPoint = "BitBlt", SetLastError = true)] 26: CopyEnhMetaFile
[DllImport("gdi32.dll", EntryPoint = "CopyEnhMetaFile", SetLastError = true, CharSet = CharSet.Auto)]
[DllImport("gdi32.dll", EntryPoint = "CreateCompatibleBitmap")]
[DllImport("gdi32.dll", EntryPoint = "CreateCompatibleDC", SetLastError=true)] 29: CreateDC
[DllImport("gdi32.dll", EntryPoint = "CreateDC", CharSet = CharSet.Auto, SetLastError = true)] 30: CreateDIBSection If the function succeeds, the return value is a handle to the newly created device-independent bitmap (and ppvBits will point to the bitmap’s bit values). If the function fails, the return value is NULL (and ptr ppvBits will be NULL). To get extended error information, call GetLastError. 31: CreateIC in Pointer to a null-terminated character string that specifies the name of the device driver (for example, Epson). in Pointer to a null-terminated character string that specifies the name of the specific output device being used, as shown by the Print Manager (for example, Epson FX-80). It is not the printer model name. The lpszDevice parameter must be used. in Pointer to a DEVMODE structure containing device-specific initialization data for the device driver. The DocumentProperties function retrieves this structure filled in for a specified device. The lpdvmInit parameter must be NULL if the device driver is to use the default initialization (if any) specified by the user. 32: CreatePen // create a bitmap and get a pointer suitable for GDI void PaintLine3(IntPtr hbitmap, Point start, Point end, bool erase) 33: CreatePolygonRgn
static extern IntPtr CreatePolygonRgn(POINT [] lppt, int cPoints, System.Drawing.Point can be used instead POINT.
static extern IntPtr CreatePolygonRgn(Point[] lppt, int cPoints, int fnPolyFillMode);
static extern IntPtr CreatePolyPolygonRgn(POINT [] lppt, int [] lpPolyCounts, 35: CreateRectRgn
[DllImport("user32.dll",EntryPoint="GetDC")] 36: CreateSolidBrush
[DllImport("user32.dll",EntryPoint="GetDC")] 37: DeleteDC
[DllImport("gdi32.dll", EntryPoint = "DeleteDC")] 38: DeleteObject
[DllImport("gdi32.dll", EntryPoint = "DeleteObject")] 39: DPtoLP
static extern bool DPtoLP(IntPtr hdc, [In, Out] POINT [] lpPoints, int nCount); POINT [] points = { new POINT(rect.Left, rect.Top), new POINT(rect.Right, rect.Bottom) }; bool ret = DPtoLP(m_hdc, points, 2); 40: EnumFontFamilies
//If anyone knows of a better way to get the pointer please let me know
//If anyone knows of a better way to get the pointer please let me know 42: ExtTextOut
[DllImport("gdi32.dll", EntryPoint = "ExtTextOutW")] 43: FillRgn
[DllImport("user32.dll",EntryPoint="GetDC")] 44: GetBrushOrgEx
static extern bool GetBrushOrgEx(IntPtr hdc, out POINT lppt);
/// <param name="iFirstChar">Specifies the code point of the first character in the group of consecutive
/// <param name="iLastChar">Specifies the code point of the last character in the group of consecutive
/// <param name="lpABCF">Pointer to an array of ABCFLOAT structures that receives the character widths,
/// function retrieves widths for any font. The widths returned by this function are in the IEEE floating-point
[DllImport("gdi32.dll", EntryPoint="GetCharacterPlacementW")]
static extern bool GetCurrentPositionEx(IntPtr hdc, out POINT lpPoint); 48: GetDC
static extern bool GetDCOrgEx(IntPtr hdc, out POINT lpPoint); 49: GetDIBits
/// <param name="lpvBits">A pointer to a buffer to receive the bitmap data. If this parameter is <see cref="IntPtr.Zero"/>, the function passes the dimensions and format of the bitmap to the <see cref="BITMAPINFO"/> structure pointed to by the <paramref name="lpbi"/> parameter.</param>
/// <param name="lpbi">A pointer to a <see cref="BITMAPINFO"/> structure that specifies the desired format for the DIB data.</param>
[DllImport("gdi32.dll", EntryPoint = "GetDIBits")] 50: GetFontData
/// <param name="lpvBuffer">Points to a lpvBuffer to receive the font information. If this parameter is NULL, the function returns the size of the <paramref name="lpvBuffer"/> required for the font data.</param> 51: GetGlyphOutline
[MarshalAs(UnmanagedType.Struct)] public POINTFX pfxStart;
public struct POINT
public struct POINTFX
[MarshalAs(UnmanagedType.Struct)] public POINT gmptGlyphOrigin;
int pointFxSize = Marshal.SizeOf(typeof(POINTFX));
POINTFX[] curvePoints = new POINTFX[curveHeader.cpfx];
curvePoints[i] = (POINTFX)Marshal.PtrToStructure(new IntPtr(buffer.ToInt32()+index), typeof(POINTFX));
index+=pointFxSize;
short x = curvePoints[i].x.value;
short y = (short)-curvePoints[i].y.value;
// ...do something with line points...
POINTFX pfxB = curvePoints[i];
POINTFX pfxC = curvePoints[i+1];
} // ...do something with curve points... 52: GetPath
static extern int GetPath(IntPtr hdc, [Out] POINT [] lpPoints, 53: GetRegionData
// Since pointers are used, this whole routine is 'unsafe'
// [RBS] Added missing second pointer identifier
[DllImport("gdi32.dll",EntryPoint="GetTextExtentExPointW")]
static extern bool GetTextExtentExPoint(IntPtr hdc, [MarshalAs(UnmanagedType.LPWStr)] string lpszStr,
static extern bool GetTextExtentPoint32(IntPtr hdc, string lpString,
static extern bool GetTextExtentPoint32(IntPtr hdc, string lpString, int cbString, out SIZE lpSize);
GDI.GetTextExtentPoint32(hdc, text, text.Length,out sz);
static extern bool GetTextExtentPoint32(IntPtr hdc, string lpString, static extern bool GetTextExtentPoint32(IntPtr hdc, string lpString,
GDI.GetTextExtentPoint32(hdc, text, text.Length,out sz); 57: GetViewportOrgEx
static extern bool GetViewportOrgEx(IntPtr hdc, out POINT lpPoint); 58: GetWindowOrgEx
static extern bool GetWindowOrgEx(IntPtr hdc, out POINT lpPoint); 59: gluErrorString
[DllImport("gdi32.dll", EntryPoint ="gluErrorString")] 60: GradientFill
[DllImport("gdi32.dll", EntryPoint = "GdiGradientFill", ExactSpelling = true)]
[DllImport("gdi32.dll", EntryPoint = "GdiGradientFill", ExactSpelling = true)]
[DllImport("gdi32.dll", EntryPoint = "GdiGradientFill", ExactSpelling = true)] The GDI32.dll does not contain a GradientFill() function. The actual entry point is GdiGradientFill(). That's why the 'EntryPoint' attribute is present. Cut off search results after 60. Please refine your search. |