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]

mpr

.

    static extern UInt32 MprAdminUserGetInfo(

.

        UInt32 Level,

.

        UInt32 result = MprAdminUserGetInfo(serverName, userId, 1, ref rasUser);

.

    static extern UInt32 MprAdminUserSetInfo(

.

        UInt32 Level,

.

        UInt32 result = MprAdminUserGetInfo(serverName, userId, 1, ref rasUser);

.

  //                              string lpUsername, System.UInt32 dwFlags );

.

public static extern UInt32 WNetOpenEnum(ResourceScope dwScope, ResourceType dwType, ResourceUsage dwUsage, NetResource lpNetResource, ref IntPtr lphEnum);

comctl32

.

        Dim cbSize As UInt32

.

        Dim fFlags As UInt32

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,

shell32

.

    void SetTabActive(IntPtr hWndTab, IntPtr hWndMDI, UInt32 tbatFlags);

.

        UInt32 pchEaten,

.

        UInt32 pdwAttributes);    

.

            UInt32 cidl,

.

        UInt32 cidl,

.

        UInt32 cidl,    // number of IntPtr's in incoming array

.

        UInt32 rgfReserved,

.

          UInt32 cidl,

.

          UInt32 rgfReserved,

.

static extern Boolean SHChangeNotifyUnregister(UInt32 hNotify);

.

static extern UInt32 SHChangeNotifyRegister(

.

static extern Boolean SHChangeNotifyUnregister(UInt32 hNotify);

.

uint driveNumber = Convert.ToUInt32(bytes[0] - Encoding.ASCII.GetBytes(new [] {'A'})[0]);

.

uint driveNumber = Convert.ToUInt32(bytes[0] - Encoding.ASCII.GetBytes(new [] {'A'})[0]);

.

    ByVal dwFlags As UInt32,

.

sii.cbSize = (UInt32) Marshal.SizeOf(typeof(SHSTOCKICONINFO));

.

static extern bool SHObjectProperties(uint32 hwnd, uint32 shopObjectType, [MarshalAs(UnmanagedType.LPWStr)] string pszObjectName, [MarshalAs(UnmanagedType.LPWStr)] string pszPropertyPage);

.

    (ByVal hwnd As UInt32, ByVal shopObjectType As UInt32, _

.

Took me forever (okay, less than an hour) to figure out that this function failed with Integers or Longs and it wanted UInt32 for hwnd and shopObjectType.

.

    (ByVal hwnd As UInt32, ByVal shopObjectType As UInt32, _

.

Private Shared Sub SHParseDisplayName(<MarshalAs(UnmanagedType.LPWStr)> ByVal name As String, ByVal bindingContext As IntPtr, <Out()> ByRef pidl As IntPtr, ByVal sfgaoIn As UInt32, <Out()> ByRef sfgaoOut As UInt32)

.

static extern UInt32 SHSetUnreadMailCount(string pszMailAddress, UInt32 dwCount, string pszShellExecuteCommand);

msdelta

.

                      UInt32 HashAlgId,

.

                      UInt32 HashAlgId,

gdi32

.

    ByRef pbmi As BITMAPINFO, ByVal iUsage As System.UInt32, _

.

    ByVal dwOffset As System.UInt32) As Int32

.

            public UInt32 ntmFlags;

.

            public UInt32 ntmSizeEM;

.

            public UInt32 ntmCellHeight;

.

            public UInt32 ntmAvgWidth;

.

        public extern static Int32 EnumFontFamiliesEx(IntPtr hdc, ref LOGFONT lpLogfont, FONTENUMPROC lpEnumFontFamExProc, IntPtr lParam, UInt32 dwFlags);

.

        public delegate Int32 FONTENUMPROC(ref ENUMLOGFONT lpelf, ref NEWTEXTMETRIC lpntm, UInt32 FontType, IntPtr lParam);

.

            public UInt32 ntmFlags;

.

            public UInt32 ntmSizeEM;

.

            public UInt32 ntmCellHeight;

.

            public UInt32 ntmAvgWidth;

.

        public extern static Int32 EnumFontFamiliesEx(IntPtr hdc, ref LOGFONT lpLogfont, FONTENUMPROC lpEnumFontFamExProc, IntPtr lParam, UInt32 dwFlags);

.

        public delegate Int32 FONTENUMPROC(ref ENUMLOGFONT lpelf, ref NEWTEXTMETRIC lpntm, UInt32 FontType, IntPtr lParam);

.

    Private Shared Function SetBkColor(ByVal hdc As IntPtr, ByVal crColor As Integer) As UInt32

.

    Private Shared Function SetTextColor(ByVal hdc As IntPtr, ByVal crColor As Integer) As UInt32

wtsapi32

.

static extern bool WTSQueryUserToken(UInt32 sessionId, out IntPtr Token);

.

Declare Function WTSQueryUserToken Lib "wtsapi32.dll" (ByVal SessionId As UInt32, ByRef Token As IntPtr) As Boolean

.

  Private Shared Function WTSSendMessage(ByVal hServer As IntPtr, ByVal SessionId As Int32, ByVal title As String, ByVal titleLength As UInt32, ByVal message As String, ByVal messageLength As UInt32, ByVal style As UInt32, ByVal timeout As UInt32, ByRef pResponse As UInt32, ByVal bWait As Boolean) As Boolean

.

    Private Shared Function WTSSendMessage(ByVal hServer As IntPtr, ByVal SessionId As Int32, ByVal title As String, ByVal titleLength As UInt32, ByVal message As String, ByVal messageLength As UInt32, ByVal style As UInt32, ByVal timeout As UInt32, ByRef pResponse As UInt32, ByVal bWait As Boolean) As Boolean

winhttp

.

            ref UInt32 lpdwNumberOfBytesAvailable

winmm

.

static extern UInt32 midiConnect(IntPtr hMidi, IntPtr hmo, IntPtr pReserved);

.

UInt32 Connect(IntPtr midiInputHandle, IntPtr midiOutputHandle)

.

static extern UInt32 midiDisconnect(IntPtr hMidi, IntPtr hmo, IntPtr pReserved);

.

UInt32 Disconnect(IntPtr midiInputHandle, IntPtr midiOutputHandle)

.

Declare Function midiOutShortMsg Lib "winmm.dll" (hMidiOut As Intptr,dwMsg As UInt32) As UInt32

.

uint msg = BitConverter.ToUInt32(data, 0);

.

msg = BitConverter.ToUInt32(data, 0);

.

   ref MixerControlDetails pmxcd, UInt32 fdwDetailsmixer);

.

     private UInt32 cbStruct;

.

     private UInt32 dwControlID;

.

     private UInt32 cChannels;

.

//     private UInt32 cMultipleItems; //Unioned with hwndOwner /* if _MULTIPLE, the number of items per channel */

.

     private UInt32 cbDetails;

.

     public UInt32 StructSize

.

     public UInt32 ControlID

.

     public UInt32 Channels

.

     public UInt32 MultipleItems

.

        get { return (UInt32)this.hwndOwner; }

.

     public UInt32 DetailsItemSize

.

   ref MIXERLINECONTROLS pmxlc, UInt32 fdwControls);

.

   ref MIXERLINE pmxl, UInt32 fdwInfo);

.

Declare Function mixerGetNumDevs Lib "winmm.dll" () As UInt32

.

   IntPtr dwCallback, IntPtr dwInstance, UInt32 fdwOpen);

.

   ref MixerControlDetails pmxcd, UInt32 fdwDetails);

.

     private UInt32 cbStruct;

.

     private UInt32 dwControlID;

.

     private UInt32 dwControlType;

.

     private UInt32 fdwControl;

.

     private UInt32 cMultipleItems;

.

     public UInt32 StructSize

.

     public UInt32 ControlID

.

        set { this.dwControlType = (UInt32)value; }

.

     public UInt32 MultipleItems

.

     private UInt32 dwReserved3;

.

     private UInt32 dwReserved4;

.

     private UInt32 dwReserved5;

.

     private UInt32 dwReserved6;

.

     public UInt32 UnsignedMinimum

.

     public UInt32 UnsignedMaximum

.

     public UInt32 Reserved1

.

     public UInt32 Reserved2

.

     public UInt32 Reserved3

.

     public UInt32 Reserved4

.

     public UInt32 Reserved5

.

     public UInt32 Reserved6

.

     private UInt32 cSteps;

.

     //private UInt32 cbCustomData; //Unioned with cSteps

.

     //private UInt32 dwReserved1; //Unioned with cSteps

.

     private UInt32 dwReserved2;

.

     private UInt32 dwReserved3;

.

     private UInt32 dwReserved4;

.

     private UInt32 dwReserved5;

.

     private UInt32 dwReserved6;

.

     public UInt32 Steps

.

     public UInt32 CustomData

.

     public UInt32 Reserved1

.

     public UInt32 Reserved2

.

     public UInt32 Reserved3

.

     public UInt32 Reserved4

.

     public UInt32 Reserved5

.

     public UInt32 Reserved6

.

static extern UInt32 timeGetDevCaps( ref TimeCaps timeCaps,

.

            UInt32 sizeTimeCaps );

.

Declare Function timeGetDevCaps Lib "winmm.dll" (ByRef lpTimeCaps As TimeCaps, ByVal uSize As UInt32) As UInt32

.

TIMERR_NOERROR is defined as UInt32 0 value.

.

static extern UInt32 timeGetSystemTime( ref MmTime mmTime, UInt32 sizeMmTime );

.

static extern UInt32 timeKillEvent( UInt32 timerEventId );

.

static extern UInt32 timeSetEvent( UInt32 msDelay, UInt32 msResolution,

.

            TimerEventHandler handler, ref UInt32 userCtx, UInt32 eventType );

dnsapi

.

  Public Shared Function DnsFlushResolverCacheEntry(hostName As String) As UInt32

.

  Public Shared Function DnsFlushResolverCacheEntry(hostName As String) As UInt32

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


 
Access PInvoke.net directly from VS: