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

ole32

.

public static extern void CoFreeUnusedLibrariesEx(UInt32 unloadDelay, UInt32 reserved);

.

public static void FreeDllsNow(UInt32 pause)

.

        CoFreeUnusedLibrariesEx(pause, (UInt32)0);

.

public static extern void CoFreeUnusedLibrariesEx(UInt32 unloadDelay, UInt32 reserved);

.

public static void FreeDllsNow(UInt32 pause)

.

          CoFreeUnusedLibrariesEx(pause, (UInt32)0);

.

7/6/2012 Dan Woerner : Changed olepro32.dll to oleaut32.dll because olepro32 doesn't work for x64, also changed the uint/UINT32/(and IntPtr reserved) to int because they are easier to deal with

.

    UInt32 cObjects, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 4, ArraySubType = UnmanagedType.IUnknown)] object[] lplpUnk,

.

    UInt32 cPages, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 6)] Guid[] lpPageClsID,

.

    uint lcid, UInt32 dwReserved, IntPtr lpvReserved);

uxtheme

.

Public Shared Function DrawThemeTextEx(hTheme As IntPtr, hdc As IntPtr, iPartId As Integer, iStateId As Integer, text As [String], length As Integer, flags As UInt32, ByRef rect As RECT, ByRef poptions As DTBGOPTS) As Int32

.

public extern static UInt32 GetThemeSysColor(IntPtr hTheme, int iColorId);

.

Public Shared Function GetThemeSysColor(hTheme As IntPtr, iColorId As Integer) As UInt32

.

public extern static Int32 GetThemeTextExtent(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, String text, int textLength, UInt32 textFlags, ref RECT boundingRect, out RECT extentRect);

.

public extern static Int32 GetThemeTextExtent(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, String text, int textLength, UInt32 textFlags, int boundingRect, out RECT extentRect);

.

public extern static Int32 HitTestThemeBackground(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, UInt32 dwOptions, ref RECT pRect, IntPtr hrgn, POINT ptTest, out HitTestThemeBackgroundCode code);

.

Public Shared Function HitTestThemeBackground(hTheme As IntPtr, hdc As IntPtr, iPartId As Integer, iStateId As Integer, dwOptions As UInt32, ByRef pRect As RECT, _

winhttp

.

            ref UInt32 lpdwNumberOfBytesAvailable

netapi32

.

using DWORD = System.UInt32;

.

using DWORD = System.UInt32;

.

static extern UInt32 DsGetSiteName([MarshalAs(UnmanagedType.LPTStr)]string ComputerName, out IntPtr SiteNameBuffer);

.

    <Out()> ByRef SiteNameBuffer As IntPtr) As UInt32

.

UInt32 result = DsGetSiteName(ComputerName, out pBuffer);

.

    Dim result As UInt32 = DsGetSiteName("MEASUS", pBuffer)

.

Declare Function NetDfsAdd Lib "NETAPI32.DLL" (<Runtime.InteropServices.MarshalAs(Runtime.InteropServices.UnmanagedType.LPWStr)> ByVal DfsEntryPath As String, <Runtime.InteropServices.MarshalAs(Runtime.InteropServices.UnmanagedType.LPWStr)> ByVal ServerName As String, <Runtime.InteropServices.MarshalAs(Runtime.InteropServices.UnmanagedType.LPWStr)> ByVal ShareName As String, <Runtime.InteropServices.MarshalAs(Runtime.InteropServices.UnmanagedType.LPWStr)> ByVal Comment As String, ByVal Flags As Uint32) As Long

.

        Dim State As UInt32

.

        Dim NumberOfStorages As UInt32

.

    UInt32 State;

.

    UInt32 NumberOfStorages;

.

    Dim State As UInt32

.

    Dim NumberOfStorages As UInt32

.

    UInt32 level,    //info level

.

    UInt32 level, //info level

.

    UInt32 totalentries //number of entries

.

        UInt32 level,

.

        UInt32 totalentries

.

        UInt32 level,

.

        UInt32 totalentries

.

            public UInt32 sv101_platform_id;

.

            [MarshalAs(System.Runtime.InteropServices.UnmanagedType.U4)] public UInt32 sv101_version_major;

.

            [MarshalAs(System.Runtime.InteropServices.UnmanagedType.U4)] public UInt32 sv101_version_minor;

.

            [MarshalAs(System.Runtime.InteropServices.UnmanagedType.U4)] public UInt32 sv101_type;

.

    Public sesi502_num_opens As UInt32

.

    Public sesi502_time As UInt32

.

    Public sesi502_idle_time As UInt32

.

    Public sesi502_user_flags As UInt32

.

static extern UInt32 NetShareSetInfo(String servername, String netname, UInt32 level, ref object buf, out UInt32 parm_err);

.

using DWORD = System.UInt32;

.

using NET_API_STATUS = System.UInt32;

.

using DWORD = System.UInt32;

.

using NET_API_STATUS = System.UInt32;

.

  const UInt32 USE_NOFORCE = 0;

.

  const UInt32 USE_FORCE = 1;

.

  const UInt32 USE_LOTS_OF_FORCE = 2;

.

  private static extern UInt32 NetUseDel(

.

      UInt32 ForceCond

.

    ByVal Level As UInt32, _

.

    ByVal PreferedMaximumSize As UInt32, _

.

    Public ui2_status As UInt32

.

    Public ui2_asg_type As UInt32

.

    Public ui2_refcount As UInt32

.

    Public ui2_usecount As UInt32

.

        NetUseEnum(Nothing, 2, lBuffer, UInt32.MaxValue, lRead, lTotal, lHandle)

.

     UInt32 level,

.

     out UInt32 parm_err);

.

             UInt32 prefmaxlen,

.

When the data to receive is larger than the specified in 'prefmaxlen', an error code 234 is returned. You can pass 0xFFFFFFFF (which required the change from int to UInt32) in this parameter and then the needed amount of memory will be allocated.

.

             UInt32 prefmaxlen,

.

            UInt32 prefmaxlen,

.

The prefmaxlen parameter is DWORD, changed it to UInt32. This was already done for the netusergetgroups http://www.pinvoke.net/default.aspx/netapi32.netusergetgroups. Otherwise MAX_PREFERRED_LENGTH could not be passed which is defined as (DWORD)-1.

.

        out UInt32 parm_err

.

        out UInt32 parm_err

.

static extern UInt32 NetValidateName(string lpServer,string lpName, string lpAccount,string lpPassword, int NameType);

.

static extern UInt32 NetValidateName(string lpServer,string lpName, string lpAccount,string lpPassword, NET_SETUP_NAMETYPE NameType);

.

    public static extern UInt32 NetValidateName(string lpServer,string lpName,string lpAccount,string lpPassword,

.

    public static extern UInt32 NetValidateName(string lpServer,string lpName, string lpAccount,string lpPassword, int NameType);

.

    UInt32 rtn = NetValidateName(null, "jrich523.wordpress.com", null, null, 3);

.

    public static extern UInt32 NetValidateName(string lpServer,string lpName,string lpAccount,string lpPassword,

imm32

.

          UInt32 dwMode,  

user32

.

Public Shared Function AttachThreadInput(ByVal idAttach As System.UInt32, ByVal idAttachTo As System.UInt32, ByVal fAttach As Boolean) As Boolean

.

        internal const UInt32 SC_SIZE     =0xF000;

.

        internal const UInt32 SC_MOVE     =0xF010;

.

        internal const UInt32 SC_MINIMIZE     =0xF020;

.

        internal const UInt32 SC_MAXIMIZE     =0xF030;

.

        internal const UInt32 SC_NEXTWINDOW   =0xF040;

.

        internal const UInt32 SC_PREVWINDOW   =0xF050;

.

        internal const UInt32 SC_CLOSE    =0xF060;

.

        internal const UInt32 SC_VSCROLL      =0xF070;

.

        internal const UInt32 SC_HSCROLL      =0xF080;

.

        internal const UInt32 SC_MOUSEMENU    =0xF090;

.

        internal const UInt32 SC_KEYMENU      =0xF100;

.

        internal const UInt32 SC_ARRANGE      =0xF110;

.

        internal const UInt32 SC_RESTORE      =0xF120;

.

        internal const UInt32 SC_TASKLIST     =0xF130;

.

        internal const UInt32 SC_SCREENSAVE   =0xF140;

.

        internal const UInt32 SC_HOTKEY       =0xF150;

.

        internal const UInt32 SC_DEFAULT      =0xF160;

.

        internal const UInt32 SC_MONITORPOWER =0xF170;

.

        internal const UInt32 SC_CONTEXTHELP  =0xF180;

.

        internal const UInt32 SC_SEPARATOR    =0xF00F;

.

        internal const UInt32 MF_BYCOMMAND    =0x00000000;

.

        internal const UInt32 MF_BYPOSITION       =0x00000400;

.

    internal const UInt32 MF_INSERT       =0x00000000;

.

    internal const UInt32 MF_CHANGE       =0x00000080;

.

    internal const UInt32 MF_APPEND       =0x00000100;

.

    internal const UInt32 MF_DELETE       =0x00000200;

.

    internal const UInt32 MF_REMOVE       =0x00001000;

.

    internal const UInt32 MF_BYCOMMAND    =0x00000000;

.

    internal const UInt32 MF_BYPOSITION       =0x00000400;

.

    internal const UInt32 MF_SEPARATOR    =0x00000800;

.

    internal const UInt32 MF_ENABLED      =0x00000000;

.

    internal const UInt32 MF_GRAYED       =0x00000001;

.

    internal const UInt32 MF_DISABLED     =0x00000002;

.

    internal const UInt32 MF_UNCHECKED    =0x00000000;

.

    internal const UInt32 MF_CHECKED      =0x00000008;

.

    internal const UInt32 MF_USECHECKBITMAPS  =0x00000200;

.

    internal const UInt32 MF_STRING       =0x00000000;

.

    internal const UInt32 MF_BITMAP       =0x00000004;

.

    internal const UInt32 MF_OWNERDRAW    =0x00000100;

.

    internal const UInt32 MF_POPUP        =0x00000010;

.

    internal const UInt32 MF_MENUBARBREAK     =0x00000020;

.

    internal const UInt32 MF_MENUBREAK    =0x00000040;

.

    internal const UInt32 MF_UNHILITE     =0x00000000;

.

    internal const UInt32 MF_HILITE       =0x00000080;

.

    internal const UInt32 MF_DEFAULT      =0x00001000;

.

    internal const UInt32 MF_SYSMENU      =0x00002000;

.

    internal const UInt32 MF_HELP         =0x00004000;

.

    internal const UInt32 MF_RIGHTJUSTIFY     =0x00004000;

.

    internal const UInt32 MF_MOUSESELECT      =0x00008000;

.

    internal const UInt32 MF_END          =0x00000080;  /* Obsolete -- only used by old RES files */

.

    internal const UInt32 MFT_STRING      =MF_STRING;

.

    internal const UInt32 MFT_BITMAP      =MF_BITMAP;

.

    internal const UInt32 MFT_MENUBARBREAK    =MF_MENUBARBREAK;

.

    internal const UInt32 MFT_MENUBREAK       =MF_MENUBREAK;

.

    internal const UInt32 MFT_OWNERDRAW       =MF_OWNERDRAW;

.

    internal const UInt32 MFT_RADIOCHECK      =0x00000200;

.

    internal const UInt32 MFT_SEPARATOR       =MF_SEPARATOR;

.

    internal const UInt32 MFT_RIGHTORDER      =0x00002000;

.

    internal const UInt32 MFT_RIGHTJUSTIFY    =MF_RIGHTJUSTIFY;

.

    internal const UInt32 MFS_GRAYED      =0x00000003;

.

    internal const UInt32 MFS_DISABLED    =MFS_GRAYED;

.

    internal const UInt32 MFS_CHECKED     =MF_CHECKED;

.

    internal const UInt32 MFS_HILITE      =MF_HILITE;

.

    internal const UInt32 MFS_ENABLED     =MF_ENABLED;

.

    internal const UInt32 MFS_UNCHECKED       =MF_UNCHECKED;

.

    internal const UInt32 MFS_UNHILITE    =MF_UNHILITE;

.

    internal const UInt32 MFS_DEFAULT     =MF_DEFAULT;

.

    private const UInt32 WM_CLOSE = 0x0010;

.

   Private Const WM_CLOSE As UInt32 = &H10

.

    public UInt32 cbSize;

.

    public UInt32 dwFlags;

.

    public UInt32 uCount;

.

    public UInt32 dwTimeout;

.

    fInfo.cbSize = Convert.ToUInt32(Marshal.SizeOf(fInfo));

.

    fInfo.uCount = UInt32.MaxValue;

.

        fInfo.cbSize = Convert.ToUInt32(Marshal.SizeOf(fInfo));

.

        fInfo.uCount = UInt32.MaxValue;

.

    public UInt32 cbSize;

.

    public UInt32 dwFlags;

.

    public UInt32 uCount;

.

    public UInt32 dwTimeout;

.

    fInfo.cbSize = Convert.ToUInt32(Marshal.SizeOf(fInfo));

.

    fInfo.uCount = UInt32.MaxValue;

.

        fInfo.cbSize = Convert.ToUInt32(Marshal.SizeOf(fInfo));

.

        fInfo.uCount = UInt32.MaxValue;

.

  ByVal cchItemText As UInt32) As Boolean

.

     dwTime : uint32

.

    lastInputInfo.cbSize = (UInt32)Marshal::SizeOf(lastInputInfo);

.

     let now = uint32 Environment.TickCount

.

internal const UInt32 MF_BYCOMMAND =0x00000000;

.

internal const UInt32 MF_BYPOSITION =0x00000400;

.

const UInt32 MIM_MAXHEIGHT    =       0x00000001;

.

const UInt32 MIM_BACKGROUND   =       0x00000002;

.

const UInt32 MIM_HELPID       =       0x00000004;

.

const UInt32 MIM_MENUDATA     =       0x00000008;

.

const UInt32 MIM_STYLE    =       0x00000010;

.

const UInt32 MIM_APPLYTOSUBMENUS =    0x80000000;

.

internal const UInt32 MF_BYCOMMAND =0x00000000;

.

internal const UInt32 MF_BYPOSITION =0x00000400;

.

    enum QueueStatusFlags : UInt32

.

       Public dwType as UInt32

.

    info.cbSize = Convert.ToUInt32(Marshal.SizeOf(info))

.

    const UInt32 SW_HIDE =         0;

.

    const UInt32 SW_SHOWNORMAL =       1;

.

    const UInt32 SW_NORMAL =       1;

.

    const UInt32 SW_SHOWMINIMIZED =    2;

.

    const UInt32 SW_SHOWMAXIMIZED =    3;

.

    const UInt32 SW_MAXIMIZE =     3;

.

    const UInt32 SW_SHOWNOACTIVATE =   4;

.

    const UInt32 SW_SHOW =         5;

.

    const UInt32 SW_MINIMIZE =     6;

.

    const UInt32 SW_SHOWMINNOACTIVE =  7;

.

    const UInt32 SW_SHOWNA =       8;

.

    const UInt32 SW_RESTORE =      9;

.

Private Shared Function LoadImage(ByVal hInst As IntPtr, ByVal lpszName As String, ByVal uType As UInt32, _

.

ByVal cxDesired As Integer, ByVal cyDesired As Integer, ByVal fuLoad As UInt32) As IntPtr

.

Public Shared Function LoadString(ByVal hInstance As IntPtr, ByVal uID As UInt32, ByVal lpBuffer As Text.StringBuilder, ByVal nBufferMax As Integer) As Integer

.

Note that when performing arithmetic operations in vb.net (3.0) to resize a window (For example, calculating the height and width on the basis of two int32's) you should convert the resulting variable to an uint32 (unsigned integer) before passing it to the DLL. The below code is a badly coded example of this. The RECT used in this code is the size of second window. The first two examples behave as expected, but the latter example resizes the window to minimal size.

.

- MoveWindow(hwnd, (RECT.left RECT.right) / 2, (RECT.top RECT.bottom) / 2, UInt32.Parse(RECT.right - RECT.left), UInt32.Parse(RECT.bottom - RECT.top), True)

.

class method PostMessage(hWnd: IntPtr; Msg: UInt32; wParam, lParam: IntPtr): Boolean; external;

.

Friend Shared Function PostThreadMessage(ByVal idThread As UInt32, ByVal msg As UInt32, ByVal wParam As IntPtr, ByVal lParam As IntPtr) As Boolean

.

static extern Int32 ReadProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress,[In, Out] byte[] buffer, UInt32 size, out IntPtr lpNumberOfBytesRead);

.

    RealGetWindowClass(hWnd, pszType, (UInt32)pszType.Capacity);

.

///  private UInt32 queryCancelAutoPlay = 0;

.

///      if ((UInt32)m.Msg == queryCancelAutoPlay)

.

class method RegisterWindowMessage(lpString: String): UInt32; external;

.

private UInt32 queryCancelAutoPlay = 0;

.

    if ((UInt32)m.Msg == queryCancelAutoPlay)

.

  private static extern UInt32 SendMessage(

.

      UInt32 wMsg,

.

        UInt32 size,

.

        UInt32 size,

.

        UInt32 dwSize,

.

        out UInt32 numberOfBytesRead

.

        UInt32 wMsg,

.

        UInt32 wMsg,

.

        UInt32 wParam,

.

        UInt32 lParam

.

    Dim theClickMessage As UInteger = Convert.ToUInt32("0x00F5", 16)    '= BM_CLICK value

.

Friend Shared Function SendInput(<[In]()> ByVal nInput As UInt32,

.

  <[In]()> ByVal cbInput As Int32) As UInt32

.

    static extern IntPtr SendMessage(IntPtr hWnd, UInt32 Msg, int wParam, int lParam);

.

       const UInt32 SW_HIDE =     0;

.

       const UInt32 SW_SHOWNORMAL =       1;

.

       const UInt32 SW_NORMAL =       1;

.

       const UInt32 SW_SHOWMINIMIZED =    2;

.

       const UInt32 SW_SHOWMAXIMIZED =    3;

.

       const UInt32 SW_MAXIMIZE =     3;

.

       const UInt32 SW_SHOWNOACTIVATE =   4;

.

       const UInt32 SW_SHOW =     5;

.

       const UInt32 SW_MINIMIZE =     6;

.

       const UInt32 SW_SHOWMINNOACTIVE =  7;

.

       const UInt32 SW_SHOWNA =       8;

.

       const UInt32 SW_RESTORE =      9;

.

When using the SPI_GETANIMATION or SPI_SETANIMATION actions, the uiParam value must be set to (System.UInt32)Marshal.SizeOf(typeof(ANIMATIONINFO)).

.

    private static extern Int32 SystemParametersInfo(UInt32 uiAction, UInt32 uiParam, String         pvParam, UInt32 fWinIni);

.

    private static UInt32 SPI_SETDESKWALLPAPER = 20;

.

    private static UInt32 SPIF_UPDATEINIFILE = 0x1;

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


 
Access PInvoke.net directly from VS: