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 "FIXED" in [All]

misc

.

[Note from Adam: This is now fixed, and was actually unrelated to coredll.CreateFile. Thanks!]

.

Greate Job! I installed Flexwiki out of the box and it is not the same. This site is much better (you fixed and improved a lot of things in Flexwiki). Now I am learning more about PInvoke

Constants

.

    public static PropertyKey WPD_COMMAND_CAPABILITIES_GET_FIXED_PROPERTY_ATTRIBUTES = new PropertyKey(0x0CABEC78, 0x6B74, 0x41C6, 0x92, 0x16, 0x26, 0x39, 0xD1, 0xFC, 0xE3, 0x56, 9);

.

        /// The key parameters could not be set because the CSP uses fixed parameters.

.

        public const int NTE_FIXEDPARAMETER = (int)(0x80090025 - 0x100000000);

Enums

.

    Fixed = 0x0001,

.

    /// a fixed background bitmap (if supported)

.

    FixedBMP = 0x0004,

.

    DRIVE_FIXED       = 3,

.

        Case System.IO.DriveType.Fixed

.

    GMEM_FIXED = 0x0000,

.

     GPTR = (GMEM_FIXED | GMEM_ZEROINIT),

.

    GMEM_FIXED = 0x0000,

.

     GPTR = (GMEM_FIXED | GMEM_ZEROINIT),

.

    FixedBorder      = 0x0002,

.

    FixedBorder = &H2

.

    ///The key parameters could not be set because the CSP uses fixed parameters.

.

    [Description("The key parameters could not be set because the CSP uses fixed parameters.")]

.

    public const int NTE_FIXEDPARAMETER = unchecked((int)0x80090025);

.

    '''The key parameters could not be set because the CSP uses fixed parameters.

.

    <Description("The key parameters could not be set because the CSP uses fixed parameters.")> _

.

    Public Const NTE_FIXEDPARAMETER As Integer = CInt(&H80090025UI)

.

    KF_CATEGORY_FIXED = 0x00000002,

.

    LMEM_FIXED = 0x0000,

.

    LPTR = (LMEM_FIXED | LMEM_ZEROINIT),

.

    NONZEROLPTR = (LMEM_FIXED),

.

   FixedMedia,

.

    FixedMedia

.

    SIID_DRIVEFIXED = 8,

.

    SIID_DRIVEFIXED = 8

.

    DRIVEFIXED = 8

.

        /// This value is the same as SM_CXFIXEDFRAME.

.

        /// SM_CXFIXEDFRAME is the height of the horizontal border, and SM_CYFIXEDFRAME is the width of the vertical border.

.

        SM_CXFIXEDFRAME = 7,

.

        /// This value is the same as SM_CYFIXEDFRAME.

.

        /// SM_CXFIXEDFRAME is the height of the horizontal border, and SM_CYFIXEDFRAME is the width of the vertical border.

.

        SM_CYFIXEDFRAME = 8,

.

    SM_CXFIXEDFRAME        = 7,  // 0x07

.

    SM_CYFIXEDFRAME        = 8,  // 0x08

.

    SM_CXFIXEDFRAME       = SM_CXDLGFRAME  '/* ;win40 name change */

.

    SM_CYFIXEDFRAME       = SM_CYDLGFRAME  '/* ;win40 name change */

.

    ''' Thickness of the frame around the perimeter of a window that has a caption but is not sizable in pixels. SM_CXFIXEDFRAME is the height of the horizontal border and SM_CYFIXEDFRAME is the width of the vertical border.

.

    ''' Thickness of the frame around the perimeter of a window that has a caption but is not sizable in pixels. SM_CXFIXEDFRAME is the height of the horizontal border and SM_CYFIXEDFRAME is the width of the vertical border.

.

    SM_CXFIXEDFRAME = SM_CXDLGFRAME

.

    SM_CYFIXEDFRAME = SM_CYDLGFRAME

dwmapi

.

This only appears to be an issue with VS2008, and it may have been fixed by the time you are reading this, so try to run the project first, and if you click on one of the 'TaskDialog' buttons and see it popup (ie you dont see an exception) then you do not need to take these steps, if you do get an exception, follow the steps below:

.

This only appears to be an issue with VS2008, and it may have been fixed by the time you are reading this, so try to run the project first, and if you click on one of the 'TaskDialog' buttons and see it popup (ie you dont see an exception) then you do not need to take these steps, if you do get an exception, follow the steps below:

shell32

.

As of Windows Vista, SHIL_SMALL, SHIL_LARGE, and SHIL_EXTRALARGE scale with dots per inch (dpi) if the process is marked as dpi-aware. To set these types to be dpi-aware, call SetProcessDPIAware. SHIL_JUMBO is fixed at 256 pixels regardless of the dpi-aware setting.

setupapi

.
Summary
The CM_Get_Child function obtains a device instance handle to the child node of a specified device node, in the local machine's device tree. If the operation succeeds, the function returns CR_SUCCESS. Otherwise, it returns one of the CR_-prefixed error codes defined in Cfgmgr32.h
.
Summary
The CM_Get_DevNode_Registry_Property function retrieves a specified device property from the registry. If the operation succeeds, the function returns CR_SUCCESS. Otherwise, it returns one of the CR_-prefixed error codes that are defined in Cfgmgr32.h.
.

property, A CM_DRP_-prefixed constant value that identifies the device property to be obtained from the registry. These constants are defined in Cfgmgr32.h.

.

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.

.
Summary
The CM_Get_Sibling function obtains a device instance handle to the next sibling node of a specified device node (devnode) in the local machine's device tree. If the operation succeeds, the function returns CR_SUCCESS. Otherwise, it returns one of the CR_-prefixed error codes defined in Cfgmgr32.h

urlmon

.

     fixed (byte* pd = dst){ fixed(int* ps = data){ CopyMemory(pd, ps, size); } }

ole32

.

Guids generated with this will return the name using the FmtIdToPropStgName Function, and can be used to generate a new IPropertyStorage interface with IPropertySetStorage.Create(). The name returned will be filled to 26 chars with the letter 'a' due to the fixed size of a Guid and the fact that we're passing all zeros in the BitArray after the name finishes to reach this size.

shlwapi

.

    Init_FixedProgId = 0x800,

user32

.

    <VBFixedString(128), System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValTStr, SizeConst:=128)> Public szCSDVersion As String '  Maintenance string for PSS usage

.

To bad that this cannot be resized out of the fixed screen resolution size.

.

This is apparently not accurate as the P/Invoke layer automatically generates a marshaling stub at a fixed address:

comctl32

.

This only appears to be an issue with VS2008, and it may have been fixed by the time you are reading this, so try to run the project first, and if you click on one of the 'TaskDialog' buttons and see it popup (ie you dont see an exception) then you do not need to take these steps, if you do get an exception, follow the steps below:

.

This only appears to be an issue with VS2008, and it may have been fixed by the time you are reading this, so try to run the project first, and if you click on one of the 'TaskDialog' buttons and see it popup (ie you dont see an exception) then you do not need to take these steps, if you do get an exception, follow the steps below:

gdi32

.

    private const byte FIXED_PITCH = 1;

.

    FIXED_PITCH = 1,

.

        /// #define FIXED_PITCH         1

.

            FIXED_PITCH = 1,

.

            // Fixed Pitch & ANSI_CHARSET

.

            List<string> mono = (from f in allFonts where ((f.LogFont.elfLogFont.lfPitchAndFamily & 0x3) == (int)GdiFonts.FontPitch.FIXED_PITCH) & (GdiFonts.FontLanguageCharSet)f.LogFont.elfLogFont.lfCharSet == GdiFonts.FontLanguageCharSet.ANSI_CHARSET select f.LogFont.elfFullName).ToList<string>();

.

    private const byte FIXED_PITCH = 1;

.

    FIXED_PITCH = 1,

.

        /// #define FIXED_PITCH         1

.

            FIXED_PITCH = 1,

.

            // Fixed Pitch & ANSI_CHARSET

.

            List<string> mono = (from f in allFonts where ((f.LogFont.elfLogFont.lfPitchAndFamily & 0x3) == (int)GdiFonts.FontPitch.FIXED_PITCH) & (GdiFonts.FontLanguageCharSet)f.LogFont.elfLogFont.lfCharSet == GdiFonts.FontLanguageCharSet.ANSI_CHARSET select f.LogFont.elfFullName).ToList<string>();

.

public struct FIXED

.

    [MarshalAs(UnmanagedType.Struct)] public FIXED eM11;

.

    [MarshalAs(UnmanagedType.Struct)] public FIXED eM12;

.

    [MarshalAs(UnmanagedType.Struct)] public FIXED eM21;

.

    [MarshalAs(UnmanagedType.Struct)] public FIXED eM22;

.

    [MarshalAs(UnmanagedType.Struct)] public FIXED x;

.

    [MarshalAs(UnmanagedType.Struct)] public FIXED y;

.

    OEM_FIXED_FONT  = 10,

.

    ANSI_FIXED_FONT = 11,

.

    SYSTEM_FIXED_FONT   = 16,

.

    OEM_FIXED_FONT = 10

.

    ANSI_FIXED_FONT = 11

.

    SYSTEM_FIXED_FONT = 16

.

   MM_MAX_FIXEDSCALE = MM_TWIPS

.

static int MM_MAX_FIXEDSCALE = MM_TWIPS;

.

    const int OEM_FIXED_FONT = 10;

.

    const int ANSI_FIXED_FONT = 11;

.

    const int SYSTEM_FIXED_FONT = 16;

kernel32

.

        fixed char FaceName[LF_FACESIZE];

.

The code below correctly obtains the compressed file size also if above 4GB. (Fixed VB and C# code, 2012 Eske Rahn)

.

  /// The GetDriveType function determines whether a disk drive is a removable, fixed, CD-ROM, RAM disk, or network drive

.

    /// <summary>The drive is a type that cannot be removed, for example, a fixed hard drive.</summary>

.

    Fixed = 3,        //DRIVE_FIXED

.

    DRIVE_FIXED = 3

.

    LMEM_FIXED = 0x0000,

.

    LPTR = (LMEM_FIXED | LMEM_ZEROINIT),

.

    NONZEROLPTR = (LMEM_FIXED)

.

    <VBFixedString(260), MarshalAs(UnmanagedType.ByValTStr, SizeConst:=260)> Public szExeFile As String

.

        fixed char FaceName[32]; // this will require the assembly to be unsafe

coredll

.

            // Obtains the app icon (the resource number is fixed for all apps) for the current

.
RichardW
Fixed the example code. It didn't work because the range of volume values are 0 to 65535 and the value passed in the example was 65536, which is set the right volume to 1 (out of 65535) and the left volume to 0.

comdlg32

.

     CF_FIXEDPITCHONLY = 0x00004000,

winspool

.

I had to fixed Matthias solution, because it doesn't work well for me. Exception is no more occurs, but when some setting is changed in printer properties it isn't used by printer. I've changed second call of DocumentProperties method. The third-from-last paramter MUST be in this case devModeData.

netapi32

.

    Const NERR_BufTooSmall As Long = 2123&      ' Buffer too small for fixed-length data.

.

    Const NERR_BufTooSmall As Long = 2123&          ' Buffer too small for fixed-length data.

.

                Throw New Exception("NetShareGetInfo: NERR_BufTooSmall -> Buffer too small for fixed-length data.")

.

     Result = 2123&                 '   Buffer too small for fixed-length data.

.

                // previous line has been causing "arithmetic operation resulted in an overflow" exception on x86 systems for me. Fixed with the .Add method.

.

[2006-03-09] VB sample fixed by Jaime Smith (can't cast Int32 to IntPtr, users and Users cannot both be used in the same scope in VB)

.

[2009-05-20] C# sample fixed by IEBasara

iphlpapi

.

    private struct FIXED_INFO

.

Declare Function FIXED_INFO Lib "iphlpapi.dll" (TODO) As TODO

.
Documentation
[FIXED_INFO] on MSDN
.

public static extern int GetNetworkParams(IntPtr pFixedInfo, ref UInt32 pBufOutLen);

.

    Public Shared Function GetNetworkParams(pFixedInfo As IntPtr, ByRef pBufOutLen As Integer) As Integer

.

Returns a FIXED_INFO struct.

.

int infoLen = Marshal.SizeOf(typeof(FIXED_INFO));

.

FIXED_INFO info = (FIXED_INFO)Marshal.PtrToStructure(infoPtr, typeof(FIXED_INFO));

.

    Private Structure FIXED_INFO

.

    Private Shared Function GetNetworkParams(pFixedInfo As IntPtr, ByRef pBufOutLen As Integer) As Integer

.

        Dim info As FIXED_INFO = Marshal.PtrToStructure(infoPtr, GetType(FIXED_INFO))

.

        ' We can now access the FIXED_INFO fields here.

Structures

.

    <VBFixedArray(1)> Dim wcProvChar() As Short

.

    public Int32 dmDisplayFixedOutput;

.

POINTL was incorrectly declared to use longs instead of ints, this has been fixed.

.

    public Int32 dmDisplayFixedOutput;

53: FIXED
.

struct FIXED {

.

Structure FIXED

.
Documentation
[FIXED] on MSDN
.

         LF32_FIXED    0x00000001

.

    public fixed byte e_magic_byte[2];       // Magic number

.

    public fixed UInt16 e_res1[4];    // Reserved words

.

    public fixed UInt16 e_res2[10];    // Reserved words

.

    ''' fixed size structure, and this field is needed to find the end of the COFF  

.

      ' Number of symbols in the COFF symbol table, if present.  COFF symbols are a fixed size

.

// this is compelete and Fixed version.

.

    '''  The number of directories is not fixed. Check the NumberOfRvaAndSizes member before looking for a specific directory.

.

    ' directories is not fixed.  Check NumberOfRvaAndSizes before looking for a specific directory.

.

    ' directories is not fixed.  Check NumberOfRvaAndSizes before looking for a specific directory.

.

From MSDN: The number of directories is not fixed. Check the NumberOfRvaAndSizes member before looking for a specific directory.

.

            FIXED_PITCH = 1,

.

        FIXED_PITCH = 1

59: MAT2
.

   public FIXED eM11;

.

   public FIXED eM12;

.

   public FIXED eM21;

.

   public FIXED eM22;

.

   Public eM11 As FIXED

.

   Public eM12 As FIXED

.

   Public eM21 As FIXED

.

   Public eM22 As FIXED

.

FIXED

60: POINT
.

   public FIXED x;

.

   public FIXED y;

.

   Public x As FIXED

.

   Public y As FIXED

.

FIXED

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


 
Access PInvoke.net directly from VS: