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]

opengl32

.

[MarshalAs(UnmanagedType.U4)] UInt32 first,

.

[MarshalAs(UnmanagedType.U4)] UInt32 count,

.

[MarshalAs(UnmanagedType.U4)] UInt32 listBase,

.

        public UInt32 FontBase = 0;

advapi32

.

   UInt32 BufferLengthInBytes,

.

   out UInt32 ReturnLengthInBytes);

.

   UInt32 Zero,

.

      internal const UInt32 STANDARD_RIGHTS_REQUIRED = 0x000F0000;

.

      internal const UInt32 STANDARD_RIGHTS_READ = 0x00020000;

.

      internal const UInt32 TOKEN_ASSIGN_PRIMARY = 0x0001;

.

      internal const UInt32 TOKEN_DUPLICATE = 0x0002;

.

      internal const UInt32 TOKEN_IMPERSONATE = 0x0004;

.

      internal const UInt32 TOKEN_QUERY = 0x0008;

.

      internal const UInt32 TOKEN_QUERY_SOURCE = 0x0010;

.

      internal const UInt32 TOKEN_ADJUST_PRIVILEGES = 0x0020;

.

      internal const UInt32 TOKEN_ADJUST_GROUPS = 0x0040;

.

      internal const UInt32 TOKEN_ADJUST_DEFAULT = 0x0080;

.

      internal const UInt32 TOKEN_ADJUST_SESSIONID = 0x0100;

.

      internal const UInt32 TOKEN_READ = (STANDARD_RIGHTS_READ | TOKEN_QUERY);

.

      internal const UInt32 TOKEN_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED |

.

     internal UInt32 HighPart;

.

        Public LowPart As UInt32

.

        Public HighPart As UInt32

.

        Public Attributes As UInt32

.

        Public PrivilegeCount As UInt32

.

            UInt32 iSubAuth = BitConverter.ToUInt32(sidBytes, idxAuth);

.

     UInt32             environment,

.

    Public Function CreateProcessWithLogonW(ByVal userName As String, ByVal domain As String, ByVal password As String, ByVal logonFlags As UInt32, ByVal applicationName As String, ByVal commandLine As String, ByVal creationFlags As UInt32, ByVal environment As UInt32, ByVal currentDirectory As String, ByRef startupInfo As StartupInfo, ByRef processInformation As ProcessInformation) As Boolean

.

    Public Infinite As System.UInt32 = Convert.ToUInt32(&HFFFFFFF)

.

    Public Function CreateProcessWithLogonW(ByVal userName As String, ByVal domain As String, ByVal password As String, ByVal logonFlags As UInt32, ByVal applicationName As String, ByVal commandLine As String, ByVal creationFlags As UInt32, ByVal environment As UInt32, ByVal currentDirectory As String, ByRef startupInfo As StartupInfo, ByRef processInformation As ProcessInformation) As Boolean

.

    Public Function GetExitCodeProcess(ByVal process As IntPtr, ByRef exitCode As UInt32) As Boolean

.

    Public Function WaitForSingleObject(ByVal handle As IntPtr, ByVal milliseconds As UInt32) As UInt32

.

    Dim exitCode As System.UInt32 = Convert.ToUInt32(123456)

.

        CreateProcessWithLogonW(user, domain, password, Convert.ToUInt32(1), _

.

        command, command, Convert.ToUInt32(0), Convert.ToUInt32(0), _

.

        public const UInt32 Infinite = 0xffffffff;

.

            UInt32 logonFlags,

.

            UInt32 creationFlags,

.

            UInt32 environment,

.

        public static extern bool GetExitCodeProcess(IntPtr process, ref UInt32 exitCode);

.

        public static extern UInt32 WaitForSingleObject(IntPtr handle, UInt32 milliseconds);

.

            UInt32 exitCode = 123456;

.

                    (UInt32) 1,

.

                    (UInt32) 0,

.

                    (UInt32) 0,

.

     public UInt32 flags;

.

     public UInt32 type;

.

        public UInt32 Flags;

.

            public UInt32 Flags;

.

            public UInt32 CredentialBlobSize;

.

            public UInt32 AttributeCount;

.

static extern bool CredWrite([In] ref Credential userCredential, [In] UInt32 flags);

.

     public UInt32 flags;

.

     public UInt32 type;

.

     public UInt32 credentialBlobSize;

.

     public UInt32 persist;

.

     public UInt32 attributeCount;

.

     userCredential.type = (UInt32)CRED_TYPE.CRED_TYPE_DOMAIN_PASSWORD;

.

     userCredential.persist = (UInt32)CRED_PERSIST.CRED_PERSIST_ENTERPRISE;

.

     userCredential.credentialBlobSize = (UInt32)bpassword.Length;

.

public static extern bool CredWrite([In] ref Credential userCredential, [In] UInt32 flags);

.

     public UInt32 flags;

.

     public UInt32 type;

.

     public UInt32 credentialBlobSize;

.

     public UInt32 persist;

.

     public UInt32 attributeCount;

.

     [UInt32]$dwIndex = 0

.

     [UInt32]$pdwProvType = 0

.

     [UInt32]$pcbTypeName = 0

.

     [UInt32]$dwIndex = 0

.

     [UInt32]$pdwProvType = 0

.

     [UInt32]$pcbProvName = 0

.

    UInt32 dwProvType,

.

    UInt32 dwFlags,

.

const UInt32 CRYPT_USER_DEFAULT = 0x00000002;

.

const UInt32 CRYPT_MACHINE_DEFAULT = 0x00000001;

.

public static extern bool CryptImportKey(IntPtr hProv, byte[] pbKeyData, UInt32 dwDataLen, IntPtr hPubKey, UInt32 dwFlags, ref IntPtr hKey);

.

    ByVal dwDesiredAccess As UInt32, _

.

Since you can't use UInt32 constants in VB.NET, here is one way of passing in a value for dwDesiredAccess

.

    ret = DuplicateTokenEx(Token, UInt32.Parse(GRANTED_ALL, System.Globalization.NumberStyles.HexNumber), sa, SecurityImpersonation, TokenType, DupedToken)

.

    ByVal dwDesiredAccess As UInt32, _

.

Since you can't use UInt32 constants in VB.NET, here is one way of passing in a value for dwDesiredAccess

.

    ret = DuplicateTokenEx(Token, UInt32.Parse(GRANTED_ALL, System.Globalization.NumberStyles.HexNumber), sa, SecurityImpersonation, TokenType, DupedToken)

.

      int dwServiceState, IntPtr lpServices, UInt32 cbBufSize,

.

      int dwServiceState, IntPtr lpServices, UInt32 cbBufSize,

.

    ByVal TokenInformation As IntPtr, ByVal TokenInformationLength As System.UInt32, _

.

    ByRef ReturnLength As System.UInt32) As Boolean

.

  static extern UInt32 InitiateShutdown(

.

    UInt32 dwGracePeriod,

.

    UInt32 dwShutdownFlags,

.

    UInt32 dwReason);

.

     ByVal dwGracePeriod As UInt32, _

.

     ByVal dwShutdownFlags As UInt32, _

.

     ByVal dwReason As UInt32) As UInt32 ' returns ERROR_SUCCESS (&H0) if successful

.

    Friend Enum ShutdownFlags As UInt32

.

            UInt32 resultPolicy = LsaOpenPolicy(ref systemName, ref ObjectAttributes, (int)access, out policy);

.

            UInt32 winErrorCode = LsaNtStatusToWinError(resultPolicy);

.

            UInt32 ntstatus = LsaRetrievePrivateData(policy, key, ref result);

.

            UInt32 winErrorCode = LsaNtStatusToWinError(ntstatus);

.

            UInt32 ntstatus = LsaStorePrivateData(policy, key, value);

.

            UInt32 winErrorCode = LsaNtStatusToWinError(ntstatus);

.

        private static extern UInt32 LsaRetrievePrivateData(

.

            public UInt32 Attributes;

.

        private static extern UInt32 LsaOpenPolicy(

.

        private static extern UInt32 LsaNtStatusToWinError(UInt32 status);

.

    UInt32 DesiredAccess, out IntPtr TokenHandle);

.

    public const UInt32 STANDARD_RIGHTS_REQUIRED = 0x000F0000;

.

    public const UInt32 STANDARD_RIGHTS_READ = 0x00020000;

.

    public const UInt32 TOKEN_ASSIGN_PRIMARY = 0x0001;

.

    public const UInt32 TOKEN_DUPLICATE = 0x0002;

.

    public const UInt32 TOKEN_IMPERSONATE = 0x0004;

.

    public const UInt32 TOKEN_QUERY = 0x0008;

.

    public const UInt32 TOKEN_QUERY_SOURCE = 0x0010;

.

    public const UInt32 TOKEN_ADJUST_PRIVILEGES = 0x0020;

.

    public const UInt32 TOKEN_ADJUST_GROUPS = 0x0040;

.

    public const UInt32 TOKEN_ADJUST_DEFAULT = 0x0080;

.

    public const UInt32 TOKEN_ADJUST_SESSIONID = 0x0100;

.

    public const UInt32 TOKEN_READ = (STANDARD_RIGHTS_READ | TOKEN_QUERY);

.

    public const UInt32 TOKEN_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED | TOKEN_ASSIGN_PRIMARY |

.

    public static extern bool OpenProcessToken(IntPtr ProcessHandle, UInt32 DesiredAccess, out IntPtr TokenHandle);

.

public static extern Boolean QueryServiceConfig2( IntPtr hService, UInt32 dwInfoLevel, IntPtr buffer, UInt32 cbBufSize, out UInt32 pcbBytesNeeded );

.

        UInt32 dwBytesNeeded;

.

        UInt32 dwBytesNeeded;

.

        const UInt32 INFINITE = 0xFFFFFFFF;

.

        Console.WriteLine( "Reset Period: {0}", ( UInt32 )failureActions.dwResetPeriod != INFINITE

.

            action.dwDelay = ( UInt32 )Marshal.ReadInt32( failureActions.lpsaActions, offset );

.

        public UInt32 dwDelay;

.

    public static extern IntPtr OpenSCManager( String lpMachineName, String lpDatabaseName, UInt32 dwDesiredAccess );

.

    public static extern IntPtr OpenService( IntPtr hSCManager, String lpServiceName, UInt32 dwDesiredAccess );

.

    public static extern Boolean QueryServiceConfig2( IntPtr hService, UInt32 dwInfoLevel, IntPtr buffer, UInt32 cbBufSize, out UInt32 pcbBytesNeeded );

.

    private const UInt32 SERVICE_CONFIG_DESCRIPTION = 0x01;

.

    private const UInt32 SERVICE_CONFIG_FAILURE_ACTIONS = 0x02;

.

public static extern Boolean QueryServiceConfig2( IntPtr hService, UInt32 dwInfoLevel, IntPtr buffer, UInt32 cbBufSize, out UInt32 pcbBytesNeeded );

.

        UInt32 dwBytesNeeded;

.

        UInt32 dwBytesNeeded;

.

        const UInt32 INFINITE = 0xFFFFFFFF;

.

        Console.WriteLine( "Reset Period: {0}", ( UInt32 )failureActions.dwResetPeriod != INFINITE

.

            action.dwDelay = ( UInt32 )Marshal.ReadInt32( failureActions.lpsaActions, offset );

.

        public UInt32 dwDelay;

.

    public static extern IntPtr OpenSCManager( String lpMachineName, String lpDatabaseName, UInt32 dwDesiredAccess );

.

    public static extern IntPtr OpenService( IntPtr hSCManager, String lpServiceName, UInt32 dwDesiredAccess );

.

    public static extern Boolean QueryServiceConfig2( IntPtr hService, UInt32 dwInfoLevel, IntPtr buffer, UInt32 cbBufSize, out UInt32 pcbBytesNeeded );

.

    private const UInt32 SERVICE_CONFIG_DESCRIPTION = 0x01;

.

    private const UInt32 SERVICE_CONFIG_FAILURE_ACTIONS = 0x02;

.

static extern Boolean ReadEventLog(IntPtr hEventLog, EVT_READ_FLAGS dwReadFlags, UInt32 dwRecordOffset, IntPtr lpBuffer, UInt32 nNumberOfBytesToRead, out UInt32 pnBytesRead, out UInt32 pnMinNumberOfBytesNeeded);

.

public static int ReadBlockOfRecords(IntPtr hEventLog, out IntPtr pBuff, UInt32 dwRecordNumber)

.

        UInt32 dwBytesRead = 0;

.

        UInt32 dwMinBytes = 0;

.

        UInt32 dwBytesToRead = 524287;//max buffer size

.

        ref UInt32 lpcbSecurityDescriptor);

.

static extern Int32 RegLoadKey(UInt32 hKey, String lpSubKey, String lpFile);

.

    UInt32 hKey,

.

        ref UInt32 TokenInformation, UInt32 TokenInformationLength);

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 );

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);

iphlpapi

.

        private static extern UInt32 MyAddIPAddress( UInt32 Address, UInt32 IpMaskint, int IfIndex,

.

        UInt32 Result =  MyAddIPAddress((uint)IPAdd.Address,

.

    Public Internal As UInt32

.

    Public InternalHigh As UInt32

.

    Public Offset As UInt32

.

    Public OffsetHigh As UInt32

.

static extern int GetBestInterface(UInt32 DestAddr, out UInt32 BestIfIndex);

.

DestAddr is a 32 bit representation of the four IP bytes. For .NET 1.0, you can get this from IPAddress.Address. In .NET 1.1, this is obsolete. You can use BitConverter.ToUInt32(IPAddress.GetAddressBytes()) instead.

.

    public static extern int GetBestInterface(UInt32 destAddr, out UInt32 bestIfIndex);

.

        UInt32 ipv4AddressAsUInt32 = BitConverter.ToUInt32(ipv4Address.GetAddressBytes(), 0);

.

        UInt32 interfaceindex;

.

        int result = Win32ApiCalls.GetBestInterface(ipv4AddressAsUInt32, out interfaceindex);

.

GetIpAddrTable Lib "iphlpapi.dll" (ByRef ipTable As IntPtr, ByRef tableSize As IntPtr, ByVal ordered As Boolean) As UInt32

.

static UInt32 GetIpAddressTable( [Out] IntPtr ipTable, [In,Out] IntPtr tableSize, bool sort);

.

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

.

    internal static extern UInt32 PfAddFiltersToInterface(IntPtr ih, UInt32 cInFilters,

.

    [MarshalAsAttribute(UnmanagedType.Struct)] ref PPF_FILTER_DESCRIPTOR pfiltIn, UInt32 cOutFilters,

.

        public UInt32 dwRule;

.

        public UInt32* SrcAddr;

.

        public UInt32* SrcMask;

.

        public UInt32* DstAddr;

.

        public UInt32* DstMask;

.

        public UInt32 fLateBound;

.

        public UInt32 dwRule;

.

        public UInt32* SrcAddr;

.

        public UInt32* SrcMask;

.

        public UInt32* DstAddr;

.

        public UInt32* DstMask;

.

        public UInt32 fLateBound;

.

    internal static UInt32 lIpFromString(string sIpAddress)

.

        UInt32 lIp = 0;

.

            lIp |= (UInt32.Parse(octets[i]) << (i * 8));

.

        UInt32 lLocalIp = lIpFromString(localAddress);

.

        public UInt32 dwRule;

.

        public UInt32* SrcAddr;

.

        public UInt32* SrcMask;

.

        public UInt32* DstAddr;

.

        public UInt32* DstMask;

.

        public UInt32 fLateBound;

.

    internal static UInt32 lIpFromString(string sIpAddress)

.

        UInt32 lIp = 0;

.

            lIp |= (UInt32.Parse(octets[i]) << (i * 8));

.

        UInt32 lLocalIp = lIpFromString(localAddress);

.

        public UInt32 dwRule;

.

        public UInt32* SrcAddr;

.

        public UInt32* SrcMask;

.

        public UInt32* DstAddr;

.

        public UInt32* DstMask;

.

        public UInt32 fLateBound;

.

    internal static UInt32 lIpFromString(string sIpAddress)

.

        UInt32 lIp = 0;

.

            lIp |= (UInt32.Parse(octets[i]) << (i * 8));

.

        UInt32 lLocalIp = lIpFromString(localAddress);

.

    static extern UInt32 PfDeleteInterface(IntPtr pInterface);

.

        public UInt32 dwRule;

.

        public UInt32* SrcAddr;

.

        public UInt32* SrcMask;

.

        public UInt32* DstAddr;

.

        public UInt32* DstMask;

.

        public UInt32 fLateBound;

.

    public static extern UInt32 PfTestPacket(IntPtr pInInterface, IntPtr pOutInterface, uint cBytes, IntPtr pbPacket, ref PFFORWARD_ACTION ppAction);

.

      ByVal DestIP As UInt32, ByVal SrcIP As UInt32, _

.

The DestIP and SrcIP arguments should be UInt32 to avoid System.OverflowException when the last nibble of the IP-address is .128 or greater.

.

    SendARP(CType(addr.Address, UInt32), 0, mac, len)

.

uint uintAddress = BitConverter.ToUInt32(dst.GetAddressBytes(), 0);

.

    Public Internal As UInt32

.

    Public InternalHigh As UInt32

.

    Public Offset As UInt32

.

    Public OffsetHigh As UInt32

pdh

.

static extern UInt32 PdhLookupPerfNameByIndex(string szMachineName, uint dwNameIndex, StringBuilder szNameBuffer, ref uint pcchNameBufferSize);

.

UInt32 iRet = 0;

Structures

.

    /// The uiParam value must be set to (System.UInt32)Marshal.SizeOf(typeof(ANIMATIONINFO)) when using this structure.

.

        this.cbSize = (System.UInt32)Marshal.SizeOf(typeof(ANIMATIONINFO));

.

      /// Always must be set to (System.UInt32)Marshal.SizeOf(typeof(ANIMATIONINFO)).

.

      public System.UInt32 cbSize;

.

        public UInt32 dwSize;

.

        internal UInt32 dwSize;

.

    internal UInt32 dwSize;

.

             this.dwSize = (UInt32)Marshal.SizeOf(typeof(Bluetooth_Find_Radio_Params));

.

        internal UInt32 dwSize;

.

        internal UInt32 ulClassOfDevice;

.

        this.dwSize = (UInt32)Marshal.SizeOf(typeof(BluetoothRadioInfo));

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


 
Access PInvoke.net directly from VS: