Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "SIZE" in [All]

psapi

.

    UInt32 arraySizeBytes,

.

    UInt32 arraySizeBytes,

.

            UInt32 arraySizeBytes,

.

            int baseNameStringSizeChars

.

            UInt32 arraySize;

.

            UInt32 arraySizeBytes;

.

            // Allocate the array; as each ID is a 4-byte int, it should be 1/4th the size of bytesNeeded

.

            arraySize = bytesNeeded / 4;

.

            arraySizeBytes = bytesNeeded;

.

            ddAddresses = new UInt32[arraySize];

.

            success = EnumDeviceDrivers(ddAddresses, arraySizeBytes, out bytesNeeded);

.

            for (int i=0; i < arraySize; i++) {

.

   UInt32 arraySizeBytes,

.

Public Shared Function EnumProcesses(<MarshalAs(UnmanagedType.LPArray, ArraySubType:=UnmanagedType.U4), [In](), [Out]()> ByVal processIds As Integer(), ByVal size As Integer, <[Out]()> ByRef needed As Integer) As Boolean

.

Note that we can't use MarshalAsAttribute.SizeParamIndex for the array, since SizeParamIndex is like [size_is()] and operates on number of elements, not number of bytes.

.

           UInt32 arraySizeBytes,

.

         UInt32 arraySize = 120;

.

         UInt32 arrayBytesSize = arraySize * sizeof(UInt32);

.

         UInt32[] processIds = new UInt32[arraySize];

.

         bool success = EnumProcesses(processIds, arrayBytesSize, out bytesCopied);

.

        uint uiSize = (uint)(Marshal.SizeOf(typeof(IntPtr)) * (hMods.Length));

.

        if (EnumProcessModules(p.Handle, pModules, uiSize, out cbNeeded) == 1)

.

            Int32 uiTotalNumberofModules = (Int32)(cbNeeded / (Marshal.SizeOf(typeof(IntPtr))));

.

    int baseNameStringSizeChars

.

            UInt32 arraySizeBytes,

.

            int baseNameStringSizeChars

.

            UInt32 arraySize;

.

            UInt32 arraySizeBytes;

.

            // Allocate the array; as each ID is a 4-byte int, it should be 1/4th the size of bytesNeeded

.

            arraySize = bytesNeeded / 4;

.

            arraySizeBytes = bytesNeeded;

.

            ddAddresses = new UInt32[arraySize];

.

            success = EnumDeviceDrivers(ddAddresses, arraySizeBytes, out bytesNeeded);

.

            for (int i=0; i < arraySize; i++) {

.

static extern uint GetModuleBaseName(IntPtr hProcess, IntPtr hModule, StringBuilder lpBaseName, uint nSize);

.

static extern uint GetModuleFileNameEx(IntPtr hProcess, IntPtr hModule, [Out] StringBuilder lpBaseName, [In] [MarshalAs(UnmanagedType.U4)] int nSize);

.

Public Shared Function GetModuleFileNameEx(ByVal hProcess As IntPtr, ByVal hModule As IntPtr, <Out()> ByVal lpBaseName As StringBuilder, <[In]()> <MarshalAs(UnmanagedType.U4)> ByVal nSize As Integer) As UInteger

.

static extern uint GetModuleFileNameEx(IntPtr hProcess, IntPtr hModule, [Out] StringBuilder lpBaseName, uint nSize);

.

        uint uiSize = (uint)(Marshal.SizeOf(typeof(IntPtr)) * (hMods.Length));

.

        if (EnumProcessModules(p.Handle, pModules, uiSize, out cbNeeded) == 1)

.

            Int32 uiTotalNumberofModules = (Int32)(cbNeeded / (Marshal.SizeOf(typeof(IntPtr))));

.

     public uint SizeOfImage;

.

        UIntPtr PageSize;

.

        /// <summary>The size of this structure, in bytes.</summary>

.

        /// its contents to disk first. It is the sum of the size of the standby, free, and

.

        /// <summary>The amount of system cache memory, in pages. This is the size of the

.

        /// <summary>The size of a page, in bytes.</summary>

.

        public UIntPtr PageSize;

.

      public Int64 PageSizeBytes;

.

    private static extern bool GetPerformanceInfo([Out] out PsApiPerformanceInformation PerformanceInformation, [In] int Size);

.

      public int Size;

.

      public IntPtr PageSize;

.

      if (GetPerformanceInfo(out perfInfo, Marshal.SizeOf(perfInfo)))

.

    Int64 pageSize = perfInfo.PageSize.ToInt64();

.

    data.PhysicalTotalBytes = perfInfo.PhysicalTotal.ToInt64() * pageSize;

.

    data.PhysicalAvailableBytes = perfInfo.PhysicalAvailable.ToInt64() * pageSize;

.

    data.SystemCacheBytes = perfInfo.SystemCache.ToInt64() * pageSize;

.

    data.KernelTotalBytes = perfInfo.KernelTotal.ToInt64() * pageSize;

.

    data.KernelPagedBytes = perfInfo.KernelPaged.ToInt64() * pageSize;

.

    data.KernelNonPagedBytes = perfInfo.KernelNonPaged.ToInt64() * pageSize;

.

    data.PageSizeBytes = pageSize;

.

        pi.cb = (uint)Marshal.SizeOf( pi.GetType() );

.

    [In] [MarshalAs(UnmanagedType.U4)] int nSize

.

    <[In]> <MarshalAs(UnmanagedType.U4)> uSize As Integer

.

static extern bool GetProcessMemoryInfo(IntPtr hProcess, out PROCESS_MEMORY_COUNTERS counters, uint size);

.

[StructLayout(LayoutKind.Sequential, Size=72)]

.

    public UInt64 PeakWorkingSetSize;

.

    public UInt64 WorkingSetSize;

.

[StructLayout(LayoutKind.Sequential, Size=40)]

.

    public int PeakWorkingSetSize;

.

    public int WorkingSetSize;

.

   [StructLayout(LayoutKind.Sequential, Size = 40)]

.

      public uint cb;             // The size of the structure, in bytes (DWORD).

.

      public uint PeakWorkingSetSize;     // The peak working set size, in bytes (SIZE_T).

.

      public uint WorkingSetSize;         // The current working set size, in bytes (SIZE_T).

.

      public uint QuotaPeakPagedPoolUsage;    // The peak paged pool usage, in bytes (SIZE_T).

.

      public uint QuotaPagedPoolUsage;    // The current paged pool usage, in bytes (SIZE_T).

.

      public uint QuotaPeakNonPagedPoolUsage; // The peak nonpaged pool usage, in bytes (SIZE_T).

.

      public uint QuotaNonPagedPoolUsage;     // The current nonpaged pool usage, in bytes (SIZE_T).

.

      public uint PagefileUsage;          // The Commit Charge value in bytes for this process (SIZE_T). Commit Charge is the total amount of memory that the memory manager has committed for a running process.

.

      public uint PeakPagefileUsage;      // The peak value in bytes of the Commit Charge during the lifetime of this process (SIZE_T).

.

   static extern bool GetProcessMemoryInfo(IntPtr hProcess, out PROCESS_MEMORY_COUNTERS counters, uint size);

.

   //   memoryCounters.cb = (uint) sizeof (PROCESS_MEMORY_COUNTERS);

.

   // Do nor use unsafe here, use Marshal.SizeOf() :-)

.

   memoryCounters.cb = (uint)Marshal.SizeOf(typeof(PROCESS_MEMORY_COUNTERS));

mapi32

.

        int size = Marshal.SizeOf(typeof(MapiFileDesc));

.

        IntPtr intPtr = Marshal.AllocHGlobal(size);

.

        ptr += size;

opengl32

.

        GL_POINT_SIZE = 0x0B11,

.

        GL_POINT_SIZE_RANGE = 0x0B12,

.

        GL_POINT_SIZE_GRANULARITY = 0x0B13,

.

        GL_PIXEL_MAP_I_TO_I_SIZE = 0x0CB0,

.

        GL_PIXEL_MAP_S_TO_S_SIZE = 0x0CB1,

.

        GL_PIXEL_MAP_I_TO_R_SIZE = 0x0CB2,

.

        GL_PIXEL_MAP_I_TO_G_SIZE = 0x0CB3,

.

        GL_PIXEL_MAP_I_TO_B_SIZE = 0x0CB4,

.

        GL_PIXEL_MAP_I_TO_A_SIZE = 0x0CB5,

.

        GL_PIXEL_MAP_R_TO_R_SIZE = 0x0CB6,

.

        GL_PIXEL_MAP_G_TO_G_SIZE = 0x0CB7,

.

        GL_PIXEL_MAP_B_TO_B_SIZE = 0x0CB8,

.

        GL_PIXEL_MAP_A_TO_A_SIZE = 0x0CB9,

.

        GL_MAX_TEXTURE_SIZE = 0x0D33,

.

        GL_FEEDBACK_BUFFER_SIZE = 0x0DF1,

.

        GL_SELECTION_BUFFER_SIZE = 0x0DF4,

.

        GL_TEXTURE_RED_SIZE = 0x805C,

.

        GL_TEXTURE_GREEN_SIZE = 0x805D,

.

        GL_TEXTURE_BLUE_SIZE = 0x805E,

.

        GL_TEXTURE_ALPHA_SIZE = 0x805F,

.

        GL_TEXTURE_LUMINANCE_SIZE = 0x8060,

.

        GL_TEXTURE_INTENSITY_SIZE = 0x8061,

.

        GL_VERTEX_ARRAY_SIZE = 0x807A,

.

        GL_COLOR_ARRAY_SIZE = 0x8081,

.

        GL_TEXTURE_COORD_ARRAY_SIZE = 0x8088,

.

        GL_VERTEX_ARRAY_SIZE_EXT = 0x807A,

.

        GL_COLOR_ARRAY_SIZE_EXT = 0x8081,

.

        GL_TEXTURE_COORD_ARRAY_SIZE_EXT = 0x8088,

.

        GL_COLOR_TABLE_RED_SIZE_EXT = 0x80DA,

.

        GL_COLOR_TABLE_GREEN_SIZE_EXT = 0x80DB,

.

        GL_COLOR_TABLE_BLUE_SIZE_EXT = 0x80DC,

.

        GL_COLOR_TABLE_ALPHA_SIZE_EXT = 0x80DD,

.

        GL_COLOR_TABLE_LUMINANCE_SIZE_EXT = 0x80DE,

.

        GL_COLOR_TABLE_INTENSITY_SIZE_EXT = 0x80DF,

.

    public static extern void glColorPointer(int size, uint type, int stride, int[] pointer);

.

    public static extern void glFeedbackBuffer(int size, uint type, float[] buffer);

.

    public static extern void glPixelMapfv(uint map, int mapsize, float[] values);

.

    public static extern void glPixelMapuiv(uint map, int mapsize, uint[] values);

.

    public static extern void glPixelMapusv(uint map, int mapsize, ushort[] values);

.

    public static extern void glPointSize(float size);

.

    public static extern void glSelectBuffer(int size, uint[] buffer);

.

    public static extern void glTexCoordPointer(int size, uint type, int stride, float[] pointer);

.

    public static extern void glVertexPointer(int size, uint type, int stride, float[] pointer);

gdi32

.

Please note that this API method needs to be called twice! 1st to get the size of the enh meta file and 2nd to fill the buffer.

.

        uint bufferSize = GetEnhMetaFileBits(hMf, 0, null); // Get required buffer size specifying 0 and NULL.

.

        if (bufferSize == 0)

.

        byte[] buffer = new byte[bufferSize];

.

        if (GetEnhMetaFileBits(hMf, bufferSize, buffer) == 0) // Get raw metafile data.

.

dwOffset specifies the offset from the beginning of the file mapping object referenced by hSection where storage for the bitmap’s bit values is to begin (ignored if hSection is NULL). The bitmap’s bit values are aligned on doubleword boundaries, so dwOffset must be a multiple of the size of a DWORD.

.

    IntPtr plogFont = Marshal.AllocHGlobal(Marshal.SizeOf(lf));

.

    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]

.

    int ntmSizeEM;

.

    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)]

.

    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]

.

    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]

.

        public const Int32 LF_FACESIZE = 32; // ref WinGDI.h

.

        public const Int32 LF_FULLFACESIZE = 64; // ref WinGDI.h

.

            [MarshalAs(UnmanagedType.ByValTStr, SizeConst = LF_FACESIZE)]

.

            [MarshalAs(UnmanagedType.ByValTStr, SizeConst = LF_FULLFACESIZE)]

.

            [MarshalAs(UnmanagedType.ByValTStr, SizeConst = LF_FACESIZE)]

.

            public UInt32 ntmSizeEM;

.

    IntPtr plogFont = Marshal.AllocHGlobal(Marshal.SizeOf(lf));

.

    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]

.

    int ntmSizeEM;

.

    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)]

.

    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]

.

    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]

.

        public const Int32 LF_FACESIZE = 32; // ref WinGDI.h

.

        public const Int32 LF_FULLFACESIZE = 64; // ref WinGDI.h

.

            [MarshalAs(UnmanagedType.ByValTStr, SizeConst = LF_FACESIZE)]

.

            [MarshalAs(UnmanagedType.ByValTStr, SizeConst = LF_FULLFACESIZE)]

.

            [MarshalAs(UnmanagedType.ByValTStr, SizeConst = LF_FACESIZE)]

.

            public UInt32 ntmSizeEM;

.

        public int StructSize;

.

        rs.StructSize = Marshal.SizeOf(typeof(GCP_RESULTS));

.

        /// Horizontal size in millimeters

.

        HORZSIZE = 4,

.

        /// Vertical size in millimeters

.

        VERTSIZE = 6,

.

        /// Size required for device descriptor

.

        PDEVICESIZE = 26,

.

        SIZEPALETTE = 104,

.

    ''' Horizontal size in millimeters

.

    HORZSIZE = 4

.

    ''' Vertical size in millimeters

.

    VERTSIZE = 6

.

    ''' Size required for device descriptor

.

    PDEVICESIZE = 26

.

    SIZEPALETTE = 104

.

        [ MarshalAs(UnmanagedType.ByValArray, SizeConst=256)]

.

        [ MarshalAs(UnmanagedType.ByValArray, SizeConst=256)]

.

        [ MarshalAs(UnmanagedType.ByValArray, SizeConst=256)]

.

    var bufferSize = GetEnhMetaFileBits(enhMetafileHandle, 0, null);

.

    var buffer = new byte[bufferSize];

.

    GetEnhMetaFileBits(enhMetafileHandle, bufferSize, buffer);

.

    var bufferSize = GetEnhMetaFileBits(enhMetafileHandle, 0, null);

.

    var buffer = new byte[bufferSize];

.

    GetEnhMetaFileBits(enhMetafileHandle, bufferSize, buffer);

.
  • dwOffset: Specifies the offset from the beginning of the font metric table towhere the function should begin retrieving information. If this parameter is zero, the information is retrieved starting at the beginning of the table specified by the dwTable parameter. If this value is greater than or equal to the size of the table, an error occurs.
.
  • lpvBuffer: Points to a byte array to receive the font information. If this parameter is NULL, the function returns the size of the buffer required for the font data.
.
  • cbData: Specifies the length, in bytes, of the information to be retrieved. If this parameter is zero, the size of the font metrics table specified in the dwTable parameter is returned.
.

    /// If this value is greater than or equal to the size of the table, an error occurs.</param>

.

    /// <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>

.

    /// If this parameter is zero, GetFontData returns the size of the font metrics table specified in the <paramref name="dwTable"/> parameter. </param>

.

        uint size = GetFontUnicodeRanges(hdc, IntPtr.Zero);

.

        IntPtr glyphSet = Marshal.AllocHGlobal((int)size);

.

                    int bufferSize = (int)GetGlyphOutline(hdc, (uint)c, (uint)2, out metrics, 0, IntPtr.Zero, ref matrix);

.

                    IntPtr buffer = Marshal.AllocHGlobal(bufferSize);

.

                        if((ret = GetGlyphOutline(hdc, (uint)c, (uint)2, out metrics, (uint)bufferSize, buffer, ref matrix)) > 0)

.

                            int polygonHeaderSize = Marshal.SizeOf(typeof(TTPOLYGONHEADER));

.

                            int curveHeaderSize = Marshal.SizeOf(typeof(TTPOLYCURVEHEADER));

.

                            int pointFxSize = Marshal.SizeOf(typeof(POINTFX));

.

                            while(index < bufferSize)

.

                                index+=polygonHeaderSize;

.

                                    index+=curveHeaderSize;

.

                                        index+=pointFxSize;

.

GDI32.GetObject(hBitmap, Marshal.SizeOf<GDI32.BITMAP>(), ptrToBitmap);

.

First call returns needed buffer size the second fills buffer by actual data.

.

   [Out] byte [] lpTypes, int nSize);

.

    // The return from this call should be the size of buffer

.

    int dataSize = GetRegionData(hRgn, 0, IntPtr.Zero);

.

    if (dataSize != 0)

.

      bytes = Marshal.AllocCoTaskMem(dataSize);

.

      int retValue = GetRegionData(hRgn, dataSize, bytes);

.

    // header size and start reading rectangles.

.

    int rectOffset = header->dwSize;

.

      rects[i] = *((RECT *)((byte *)bytes+rectOffset+(Marshal.SizeOf(typeof(RECT)) *i)));

.

   int cchString, int nMaxExtent, out int lpnFit, int[] alpDx, out SIZE lpSize);

.

Graphics.MeasureString Method (String, Font, SizeF, StringFormat, out Int32, out Int32) http://msdn.microsoft.com/en-us/library/957webty(v=VS.100).aspx

.

   int cbString, out SIZE lpSize);

.

static extern bool GetTextExtentPoint32(IntPtr hdc, string lpString, int cbString, out SIZE lpSize);

.

public Size getExtent(string text, Graphics graphics, Font font)

.

    Size sz = Size.Empty;

.

    Size size=TextRenderer.MeasureText(g, str, f, new Size(), TextFormatFlags.NoPadding);

.

Since .NET padding has been added to font's height and width. So you need to make use of the format flag TextFormatFlags.NoPadding to get the real size of the text.

.

    new Size() - just a dummy parameter

.

   int cbString, out SIZE lpSize);

.

   int cbString, out SIZE lpSize);

.

public Size getExtent(string text, Graphics graphics, Font font)

.

    Size sz = Size.Empty;

.

    Size size=TextRenderer.MeasureText(g, str, f, new Size(), TextFormatFlags.NoPadding);

.

Since .NET padding has been added to font's height and width. So you need to make use of the format flag TextFormatFlags.NoPadding to get the real size of the text.

.

    new Size() - just a dummy parameter

.

static extern bool GetViewportExtEx(IntPtr hdc, out SIZE lpSize);

.

SIZE

.

static extern bool GetWindowExtEx(IntPtr hdc, out SIZE lpSize);

.

SIZE

.

    uint dwNumMesh,       // size of gradient array

.

  [ MarshalAs(UnmanagedType.ByValArray, SizeConst=256)]

.

  [ MarshalAs(UnmanagedType.ByValArray, SizeConst=256)]

.

  [ MarshalAs(UnmanagedType.ByValArray, SizeConst=256)]

.

  [ MarshalAs(UnmanagedType.ByValArray, SizeConst=256)]

.

  [ MarshalAs(UnmanagedType.ByValArray, SizeConst=256)]

.

  [ MarshalAs(UnmanagedType.ByValArray, SizeConst=256)]

.

    static extern bool SetViewportExtEx(IntPtr hDC, int nExtentX, int nExtentY, Size[] prevSize);

.

    static extern bool SetWindowExtEx(IntPtr hDC, int nExtentX, int nExtentY, Size[] prevSize);

.

Size[] size = new Size[1];

.

         size);

.

           size);

.

static extern IntPtr SetMetaFileBitsEx(uint nSize, byte [] lpData);

.

Shared Function SetMetaFileBitsEx(ByVal nSize As UInteger, ByVal lpData As Byte()) As IntPtr

.

            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);

.

            this.ClientSize = new System.Drawing.Size(292, 273);

.

                this.AutoScrollMinSize = bmp.Size;

.

        private void Form1_Resize(object sender, System.EventArgs e)

.

            this.AutoScrollMinSize = bmp.Size;

.

       int cbString, ref Size lpSize);

.

       //You may want to meassure the string's size for layout purposes.

.

    Size MeasureSize = new Size(0, 0);

.

             GetTextExtentPoint(HDC, line, line.Length, ref MeasureSize);

.

             y_pos += MeasureSize.Height;

.

            //You can use the MeasureSize.Width property to implement

Enums

.

     AclSizeInformation

.

    /// Setting this flag provides the user with a larger dialog box that can be resized.

.

    ''' Setting this flag provides the user with a larger dialog box that can be resized.

.

    /// Typically, this is enabled for small, short-lived windows such as menus to emphasize their Z order relationship to other windows.

.

    /// <summary>Redraws the entire window if a movement or size adjustment changes the width of the client area.</summary>

.

    /// <summary>Redraws the entire window if a movement or size adjustment changes the height of the client area.</summary>

.

    ''' Typically, this is enabled for small, short-lived windows such as menus to emphasize their Z order relationship to other windows.

.

    ''' <summary>Redraws the entire window if a movement or size adjustment changes the width of the client area.</summary>

.

    ''' <summary>Redraws the entire window if a movement or size adjustment changes the height of the client area.</summary>

.

     VALIDSIZESTATEBITS  = NORMAL | SPLIT | FULLSCREEN,

.

    VALIDSIZESTATEBITS = 7

.

     SIZE_WIDTH      = 0x00000040,

.

     SIZE_HEIGHT     = 0x00000080,

.

     ALL         = TYPE | CHECKED | DIRTY | NOSCROLL | POS_LEFT | SIZE_WIDTH  |

.

               SIZE_HEIGHT | POS_ZINDEX | SOURCE |

.

    SIZE_HEIGHT = &H80

.

    SIZE_WIDTH = &H40

.

    public static PropertyKey UI_PKEY_FontProperties_Size = new PropertyKey(new Guid(Convert.ToString(302, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_DECIMAL);

.

    public static PropertyKey UI_PKEY_FontProperties_DeltaSize = new PropertyKey(new Guid(Convert.ToString(313, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UINT); // UI_FONTDELTASIZE

.

    ///<Summary>Sends a WM_NCCALCSIZE message to the window, even if the window's size is not being changed. If this flag is not specified, WM_NCCALCSIZE is sent only when the window's size is being changed.</Summary>

.

    ///<Summary>Discards the entire contents of the client area. If this flag is not specified, the valid contents of the client area are saved and copied back into the client area after the window is sized or repositioned.</Summary>

.

    ///<Summary>Retains the current size (ignores the cx and cy parameters).</Summary>

.

    SWP_NOSIZE = 0x0001,

.

    '''<Summary>Sends a WM_NCCALCSIZE message to the window, even if the window's size is not being changed. If this flag is not specified, WM_NCCALCSIZE is sent only when the window's size is being changed.</Summary>

.

    '''<Summary>Discards the entire contents of the client area. If this flag is not specified, the valid contents of the client area are saved and copied back into the client area after the window is sized or repositioned.</Summary>

.

    '''<Summary>Retains the current size (ignores the cx and cy parameters).</Summary>

.

    SWP_NOSIZE = &H0001

.

    SWP_NOSIZE As Integer = &H0001

.

        /** Allow source or target file or buffer to exceed its default size limit. */

.

        DELTA_FLAG_IGNORE_FILE_SIZE_LIMIT = (0x00020000), /* flags[ 17 ] */

.

        /** Allow options buffer or file to exceeed its default size limit. */

.

        DELTA_FLAG_IGNORE_OPTIONS_SIZE_LIMIT = (0x00040000), /* flags[ 18 ] */

.

     DBIM_MINSIZE    = 0x0001,

.

     DBIM_MAXSIZE    = 0x0002,

.

    /// The ptIntegral member defines the step value by which the band object can be resized.

.

        /// Retrieves a list of supported paper sizes. The pOutput buffer receives an array of WORD values that indicate the available paper sizes for the printer. The return value indicates the number of entries in the array. For a list of the possible array values, see the description of the dmPaperSize member of the DEVMODE structure. If pOutput is NULL, the return value indicates the required number of entries in the array.

.

        /// Retrieves the dimensions, in tenths of a millimeter, of each supported paper size. The pOutput buffer receives an array of POINT structures. Each structure contains the width (x-dimension) and length (y-dimension) of a paper size as if the paper were in the DMORIENT_PORTRAIT orientation. The return value indicates the number of entries in the array.

.

        DC_PAPERSIZE = 3,

.

        /// Returns the minimum paper size that the dmPaperLength and dmPaperWidth members of the printer driver's DEVMODE structure can specify. The LOWORD of the return value contains the minimum dmPaperWidth value, and the HIWORD contains the minimum dmPaperLength value.

.

        /// Returns the maximum paper size that the dmPaperLength and dmPaperWidth members of the printer driver's DEVMODE structure can specify. The LOWORD of the return value contains the maximum dmPaperWidth value, and the HIWORD contains the maximum dmPaperLength value.

.

        /// Returns the dmSize member of the printer driver's DEVMODE structure.

.

        DC_SIZE = 8,

.

        PaperSize=3

.

        Size=8

51: DT
.

    BorderSize = (1 << 5),

.

    GlowSize = (1 << 11),

52: DTT
.

    BorderSize = (1UL << 5),

.

    GlowSize = (1UL << 11),

.

public static extern int DwmSetWindowAttribute(IntPtr hwnd, DWMWINDOWATTRIBUTE attr, ref int attrValue, int attrSize);

.

Public Shared Function DwmSetWindowAttribute(hwnd As IntPtr, attr As DWMWINDOWATTRIBUTE, ByRef attrValue As Integer, attrSize As Integer) As Integer

.

    SHGFI_SHELLICONSIZE = 0x000000004,     // get shell size icon

55: fModes
.

   DM_SIZEOF = 0,

.

    DM_SIZEOF = 0

56: HCBT
.

    MoveSize = 0,

.

    MoveSize = 0

.

    ///Size may not exceed 64K.

.

    [Description("Size may not exceed 64K.")]

.

    public const int TYPE_E_SIZETOOBIG = unchecked((int)0x800288C5);

.

    ///tdSize parameter of the DVTARGETDEVICE structure is invalid

.

    [Description("tdSize parameter of the DVTARGETDEVICE structure is invalid")]

.

    public const int DV_E_DVTARGETDEVICE_SIZE = unchecked((int)0x8004006C);

.

    ///The size of this object exceeds the maximum size set by the Administrator.

.

    [Description("The size of this object exceeds the maximum size set by the Administrator.")]

.

    ///The requested allocation size was too large

.

    [Description("The requested allocation size was too large")]

.

    public const int MEM_E_INVALID_SIZE = unchecked((int)0x80080011);

.

    ///The Put operation can not continue.  The file needs to be resized.  However, there is already a signature present.  A complete signing operation must be done.

.

    [Description("The Put operation can not continue.  The file needs to be resized.  However, there is already a signature present.  A complete signing operation must be done.")]

.

    public const int CRYPT_E_FILERESIZED = unchecked((int)0x80092025);

.

    ///The public key does not meet the minimum size required by the specified certificate template.

.

    [Description("The public key does not meet the minimum size required by the specified certificate template.")]

.

    ///The size of the data could not be determined.

.

    [Description("The size of the data could not be determined.")]

.

    public const int PERSIST_E_SIZEDEFINITE = unchecked((int)0x800B0009);

.

    ///The size of the indefinite-sized data could not be determined.

.

    [Description("The size of the indefinite-sized data could not be determined.")]

.

    public const int PERSIST_E_SIZEINDEFINITE = unchecked((int)0x800B000A);

.

    '''Size may not exceed 64K.

.

    <Description("Size may not exceed 64K.")> _

.

    Public Const TYPE_E_SIZETOOBIG As Integer = CInt(&H800288c5UI)

.

    '''tdSize parameter of the DVTARGETDEVICE structure is invalid

.

    <Description("tdSize parameter of the DVTARGETDEVICE structure is invalid")> _

.

    Public Const DV_E_DVTARGETDEVICE_SIZE As Integer = CInt(&H8004006cUI)

.

    '''The size of this object exceeds the maximum size set by the Administrator.

.

    <Description("The size of this object exceeds the maximum size set by the Administrator.")> _

.

    '''The requested allocation size was too large

.

    <Description("The requested allocation size was too large")> _

.

    Public Const MEM_E_INVALID_SIZE As Integer = CInt(&H80080011UI)

.

    '''The Put operation can not continue.  The file needs to be resized.  However, there is already a signature present.  A complete signing operation must be done.

.

    <Description("The Put operation can not continue.  The file needs to be resized.  However, there is already a signature present.  A complete signing operation must be done.")> _

.

    Public Const CRYPT_E_FILERESIZED As Integer = CInt(&H80092025UI)

.

    '''The public key does not meet the minimum size required by the specified certificate template.

.

    <Description("The public key does not meet the minimum size required by the specified certificate template.")> _

.

    '''The size of the data could not be determined.

.

    <Description("The size of the data could not be determined.")> _

.

    Public Const PERSIST_E_SIZEDEFINITE As Integer = CInt(&H800b0009UI)

.

    '''The size of the indefinite-sized data could not be determined.

.

    <Description("The size of the indefinite-sized data could not be determined.")> _

.

    Public Const PERSIST_E_SIZEINDEFINITE As Integer = CInt(&H800b000aUI)

58: LCTYPE
.

    LOCALE_IPAPERSIZE = 0x0000100A,

.

    MappedFileSizeZero = 0xc000011e,

.

    CouldNotResizeLog = 0xc0190009,

.

    LogResizeInvalidSize = 0xc019000b,

.

    /// Required to set memory limits using SetProcessWorkingSetSize.

Cut off search results after 60. Please refine your search.


 
Access PInvoke.net directly from VS: