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]

msdelta

.

                      UInt32 HashAlgId,

.

                      UInt32 HashAlgId,

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

setupapi

.

static extern int CM_Get_Child(out UInt32 pdnDevInst, UInt32 dnDevInst, int ulFlags);

.

static extern int CM_Get_Device_ID_Size(out int pulLen, UInt32 dnDevInst, int flags = 0);

.

// devInst is an uint32 - this matters on 64-bit

.

static extern int CM_Get_DevNode_Status(out UInt32 status, out UInt32 probNum, UInt32 devInst, int flags);

.

   out UInt32 pdnDevInst,

.

   UInt32 dnDevInst,

.

      UInt32 ptrPrevious;

.

static extern int CM_Get_Sibling(out UInt32 pdnDevInst, UInt32 dnDevInst, int ulFlags);

.

static extern UInt32 CM_Reenumerate_DevNode_Ex(UInt32 dnDevInst, UInt32 ulFlags, IntPtr hMachine);

.

Declare Function CM_Reenumerate_DevNode_Ex Lib "setupapi.dll" (dnDevInst As UInt32, ulFlags As UInt32, hMachine As IntPtr) As UInt32

.

     UInt32 devRoot;

.

    static extern int CM_Request_Device_Eject(UInt32 devinst, out PNP_VETO_TYPE pVetoType, System.Text.StringBuilder pszVetoName, int ulNameLength, int ulFlags);

.

Dim ErrorLine As UInt32 = 0

.

        UInt32 Flags,

.

        UInt32 ClassGuidListSize,

.

        out UInt32 RequiredSize);

.

     UInt32 InstallFunction,

.

static extern bool SetupDiClassGuidsFromName(string ClassName, ref Guid ClassGuidArray1stItem, UInt32 ClassGuidArraySize, out UInt32 RequiredSize);

.

    UInt32 RequiredSize = 0;

.

        UInt32 ErrorCode;

.

    UInt32 ClassNameSize,

.

    out UInt32 RequiredSize

.

   UInt32 memberIndex,

.

   UInt32 memberIndex,

.

    ByVal memberIndex As UInt32, ByRef deviceInterfaceData As SP_DEVICE_INTERFACE_DATA) As Boolean

.

    public static extern IntPtr SetupDiGetClassDevs(ref Guid classGuid, IntPtr enumerator, IntPtr hwndParent, UInt32 flags);

.

    public static extern Boolean SetupDiEnumDeviceInterfaces(IntPtr hDevInfo, IntPtr devInfo, ref Guid interfaceClassGuid, UInt32 memberIndex, ref SP_DEVICE_INTERFACE_DATA deviceInterfaceData);

.

   UInt32 deviceInterfaceDetailDataSize,

.

   ref UInt32 requiredSize,

.

            Dim RegType As UInt32 = Reg_Types.REG_SZ

.

            Dim RequiredSize As UInt32

.

        out UInt64 propertyType, // or Uint32 ?

.

        UInt32 flags);

.

        out UInt64 propertyType, // or Uint32 ?

.

        UInt32 flags);

.

    out UInt32 propertyRegDataType,

.

    out UInt32 requiredSize

.

    out UInt32 propertyRegDataType,

.

    out UInt32 requiredSize

.

          Uint32 RequiredSize;

.

          Uint32 RegType;

.

UInt32 RequiredSize = 0;

.

UInt32 regType = REG_SZ;

.

Dim ErrorLine As UInt32 = 0

.

Dim ErrorLine As UInt32 = 0

.

Dim ErrorLine As UInt32 = 0

.

Dim ErrorLine As UInt32 = 0

.

Dim ErrorLine As UInt32 = 0

powrprof

.

private static extern UInt32 CallNtPowerInformation(

.

     UInt32 nInputBufferSize,

.

     UInt32 nOutputBufferSize

.

Private Shared Function CallNtPowerInformation(InformationLevel As Int32, lpInputBuffer As IntPtr, nInputBufferSize As UInt32, lpOutputBuffer As IntPtr, nOutputBufferSize As UInt32) As UInt32

.

    (UInt32)Marshal.SizeOf(typeof(SYSTEM_BATTERY_STATE))

.

    public static extern UInt32 PowerDuplicateScheme(

.

    public static extern UInt32 PowerGetActiveScheme(IntPtr UserRootPowerKey, ref IntPtr ActivePolicyGuid);

.

    public static extern UInt32 PowerReadFriendlyName(

.

        ref UInt32 BufferSize);

.

    public static extern UInt32 PowerReadFriendlyName(

.

        ref UInt32 BufferSize);

.

    internal static extern UInt32 PowerSettingAccessCheck(

.

    private static extern UInt32 PowerSettingAccessCheck(

.

    internal static UInt32 PowerSettingAccessCheck(PowerSettingAccessFlags accessFlags)

.

    public static extern UInt32 PowerWriteFriendlyName(

.

            UInt32 BufferSize);

crypt32

.

static extern UInt32 CertGetNameString(IntPtr CertContext, UInt32 lType, UInt32 lFlags, IntPtr pTypeParameter, System.Text.StringBuilder str, UInt32 cch);

.

        UInt32 cchString = 255 ;

.

        System.UInt32 nChars = CertGetNameString(certContext,

.

Public Shared Function CryptAcquireCertificatePrivateKey(<[In]> ByVal pCert As IntPtr, <[In]> ByVal dwFlags As UInt32, <[In]> ByVal pvReserved As IntPtr, <[In], Out> ByRef phCryptProv As IntPtr, <[In], Out> ByRef pdwKeySpec As UInt32, <[In], Out> ByRef pfCallerFreeProv As Boolean) As Boolean

.

        public UInt32 cCTLEntry;

.

        public UInt32 cExtension;

fbwflib

.

     UInt32 threshold,

.

     ref  UInt32 size);

.

     ref  UInt32 size);

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

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


 
Access PInvoke.net directly from VS: