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

shell32

.
Summary
[SHOpenFolderAndSelectItems] - Opens a Windows Explorer window with specified items in a particular folder selected.
.

public static extern int SHOpenFolderAndSelectItems(IntPtr pidlFolder, uint cidl, [In, MarshalAs(UnmanagedType.LPArray)] IntPtr[] apidl, uint dwFlags);

.

  Public Shared Function SHOpenFolderAndSelectItems(ByVal pidlFolder As IntPtr, ByVal cidl As UInteger, <MarshalAs(UnmanagedType.LPArray)> ByVal apidl() As IntPtr, ByVal dwFlags As UInteger) As Integer

.

    public static extern int SHOpenFolderAndSelectItems(IntPtr pidlFolder, uint cidl, [In, MarshalAs(UnmanagedType.LPArray)] IntPtr[] apidl, uint dwFlags);

.

    public static void OpenFolderAndSelectItem(string folderPath, string file)

.

        SHOpenFolderAndSelectItems(nativeFolder, (uint)fileArray.Length, fileArray, 0);

.

    SafeNativeMethods.SHOpenFolderAndSelectItems(pidlFolder, pidl.Length, pidl, 0)

.

    Public Shared Function SHOpenFolderAndSelectItems(ByVal pidlFolder As IntPtr, ByVal cidl As UInteger, <MarshalAs(UnmanagedType.LPArray)> ByVal apidl() As IntPtr, ByVal dwFlags As UInteger) As Integer

.
Documentation
[SHOpenFolderAndSelectItems] on MSDN

netapi32

.

public static string GetActiveServerAndShare(string[] arguments)

.

        public int RandomReadOperations;

.

        public int RandomWriteOperations;

xolehlp

.

Alright, okay listen, keep your pants on, she's over in the cafe. God, how do you do this? What made you change your mind, George? Yeah I know, If you put your mind to it you could accomplish anything. That Biff, what a character. Always trying to get away with something. Been on top of Biff ever since high school. Although, if it wasn't for him- I noticed you band is on the roster for dance auditions after school today. Why even bother Mcfly, you haven't got a chance, you're too much like your own man. No McFly ever amounted to anything in the history of Hill Valley. It was meant to be. Anyway, if Grandpa hadn't hit him, then none of you would have been born.

Interfaces

.

    public ushort          wRandomMinutesInterval;

.

    [MarshalAs(UnmanagedType.U2)] public ushort        wRandomMinutesInterval;

oleaut32

.

Alright, okay listen, keep your pants on, she's over in the cafe. God, how do you do this? What made you change your mind, George? Yeah I know, If you put your mind to it you could accomplish anything. That Biff, what a character. Always trying to get away with something. Been on top of Biff ever since high school. Although, if it wasn't for him- I noticed you band is on the roster for dance auditions after school today. Why even bother Mcfly, you haven't got a chance, you're too much like your own man. No McFly ever amounted to anything in the history of Hill Valley. It was meant to be. Anyway, if Grandpa hadn't hit him, then none of you would have been born.

misc

.

-- Jérémie Bertrand

Structures

.

        public int RandomReadOperations;

.

        public int RandomWriteOperations;

Delegates

.

Alright, okay listen, keep your pants on, she's over in the cafe. God, how do you do this? What made you change your mind, George? Yeah I know, If you put your mind to it you could accomplish anything. That Biff, what a character. Always trying to get away with something. Been on top of Biff ever since high school. Although, if it wasn't for him- I noticed you band is on the roster for dance auditions after school today. Why even bother Mcfly, you haven't got a chance, you're too much like your own man. No McFly ever amounted to anything in the history of Hill Valley. It was meant to be. Anyway, if Grandpa hadn't hit him, then none of you would have been born.

secur32

.

Alright, okay listen, keep your pants on, she's over in the cafe. God, how do you do this? What made you change your mind, George? Yeah I know, If you put your mind to it you could accomplish anything. That Biff, what a character. Always trying to get away with something. Been on top of Biff ever since high school. Although, if it wasn't for him- I noticed you band is on the roster for dance auditions after school today. Why even bother Mcfly, you haven't got a chance, you're too much like your own man. No McFly ever amounted to anything in the history of Hill Valley. It was meant to be. Anyway, if Grandpa hadn't hit him, then none of you would have been born.

iphlpapi

.

        IpSuffixOriginRandom,

rpcrt4

.

CoCreateGuid generates random-looking GUIDs like these:

.

CoCreateGuid generates random-looking GUIDs like these:

user32

.

Alright, okay listen, keep your pants on, she's over in the cafe. God, how do you do this? What made you change your mind, George? Yeah I know, If you put your mind to it you could accomplish anything. That Biff, what a character. Always trying to get away with something. Been on top of Biff ever since high school. Although, if it wasn't for him- I noticed you band is on the roster for dance auditions after school today. Why even bother Mcfly, you haven't got a chance, you're too much like your own man. No McFly ever amounted to anything in the history of Hill Valley. It was meant to be. Anyway, if Grandpa hadn't hit him, then none of you would have been born.

.

        Random myRandom = new Random();

.

        MoveWindow(id, myRandom.Next(1024), myRandom.Next(768), Rect.right - Rect.left, Rect.bottom - Rect.top, true);

kernel32

.

    public void ClearAndSetEvent(IntPtr hEventOverlapped)

.

  deviceIoOverlapped.ClearAndSetEvent(hEvent.SafeWaitHandle.DangerousGetHandle());

.

    Dim expected As String = fFoldername + "\" + Left(fPrefix, 3)  'Only part of the expected answer. The other part is random.

.

Arguably one of the most frequently used and most important PInvokes used, this is the only way in .NET to get a high performance counter for measurement, unique seeding of Random Variables (although you could perhaps transfer a GUID to a numeric equivalent), and in general what this global consultant would consider a 'must include' in almost any application where Instrumentation is a must.

.

    RandomAccess = 0x10000000,

rasapi32

.

        RASEO_UseCountrAndAreaCodes = 0x00000001,

ntdll

.

    SystemProcessorBrandString = 0x0069,

.

    SystemLogicalProcessorAndGroupInformation = 0x006B,

msvcrt

23: memcpy
.

'Prima mi creo da un vettore di caratteri una area di memoria non gestita con la stringa "Ciao" quindi la copio in un altra area non gestita con MemCpy, e quindi la ritrasformo in un vettore di caratteri, che posso quindi convertire in una stringa !!! Provato e testato. Funziona. Salute a tutti. Andrea Casagrande.

24: rand
.
Summary
The rand function returns a pseudorandom integer in the range 0 to RAND_MAX. Use the srand function to seed the pseudorandom-number generator before calling rand.
.

    rand() As Integer

.

Random.Next()

.
Documentation
[rand] on MSDN
25: srand
.
Summary
The srand function sets the starting point for generating a series of pseudorandom integers. To reinitialize the generator, use 1 as the seed argument. Any other value for seed sets the generator to a random starting point. rand retrieves the pseudorandom numbers that are generated. Calling rand before any call to srand generates the same sequence as calling srand with seed passed as 1.
.

    srand(ByVal seed As Integer)

.

New Random(Seed As Integer)

.
Documentation
[srand] on MSDN

printui

.

Alright, okay listen, keep your pants on, she's over in the cafe. God, how do you do this? What made you change your mind, George? Yeah I know, If you put your mind to it you could accomplish anything. That Biff, what a character. Always trying to get away with something. Been on top of Biff ever since high school. Although, if it wasn't for him- I noticed you band is on the roster for dance auditions after school today. Why even bother Mcfly, you haven't got a chance, you're too much like your own man. No McFly ever amounted to anything in the history of Hill Valley. It was meant to be. Anyway, if Grandpa hadn't hit him, then none of you would have been born.

advapi32

.

                         "GrandPrivilege failed. SecurityEntity: {0}",

.

    Boolean ClearAndSavelog (string logName, string savePath)

.
Summary
Generates a random cryptographic key and returns a handle to that key by the reference parameter phKey.
.
Summary
The CryptGenRandom function fills a buffer with cryptographically random bytes.
.

static extern bool CryptGenRandom(IntPtr hProv, uint dwLen, byte[] pbBuffer);

.

Declare Function CryptGenRandom Lib "advapi32.dll" (ByVal hProv As IntPtr, ByVal dwLen As Integer, ByVal pbBuffer As Byte()) As Boolean

.

byte[] newRandom = new byte[10];

.

if (!CryptGenRandom(hProv, (uint)(newRandom.Length), newRandom))

.
Documentation
[CryptGenRandom] on MSDN

Constants

31: O_
.

const int _O_RANDOM      = 0x0010;  /* file access is primarily random */

.

const int O_RANDOM      =  _O_RANDOM;

.

    public static PropertyKey PKEY_DrvPkg_BrandingIcon = new PropertyKey(0xcf73bb51, 0x3abf, 0x44a2, 0x85, 0xe0, 0x9a, 0x3d, 0xc7, 0xa1, 0x21, 0x32, 7);     // DEVPROP_TYPE_STRING_LIST

.

    public static PropertyKey WPD_RESOURCE_BRANDING_ART = new PropertyKey(0xB633B1AE, 0x6CAF, 0x4A87, 0x95, 0x89, 0x22, 0xDE, 0xD6, 0xDD, 0x58, 0x99, 0);

.

UInt32 STATUS_FLOAT_DENORMAL_OPERAND     = (UInt32)0xC000008DL;

.

private const uint FILE_FLAG_RANDOM_ACCESS       = 0x10000000;

.

        /// This object is not allowed to change its grandparent container. Moves are not forbidden on this object, but are restricted to sibling containers.

.

        public const int ERROR_DS_MODIFYDN_WRONG_GRANDPARENT = 8582;

Enums

.

    FloatDenormalOperand = 0xc000008d,

avifil32

.

Alright, okay listen, keep your pants on, she's over in the cafe. God, how do you do this? What made you change your mind, George? Yeah I know, If you put your mind to it you could accomplish anything. That Biff, what a character. Always trying to get away with something. Been on top of Biff ever since high school. Although, if it wasn't for him- I noticed you band is on the roster for dance auditions after school today. Why even bother Mcfly, you haven't got a chance, you're too much like your own man. No McFly ever amounted to anything in the history of Hill Valley. It was meant to be. Anyway, if Grandpa hadn't hit him, then none of you would have been born.


 
Access PInvoke.net directly from VS: