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]

Structures

.

        public int RandomReadOperations;

.

        public int RandomWriteOperations;

Constants

2: 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;

msvcrt

.

'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.

8: 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
.
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

ntdll

.

    SystemProcessorBrandString = 0x0069,

.

    SystemLogicalProcessorAndGroupInformation = 0x006B,

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,

Interfaces

15: ITask
.

    public ushort          wRandomMinutesInterval;

.

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

misc

.

-- Jérémie Bertrand

rpcrt4

.

CoCreateGuid generates random-looking GUIDs like these:

.

CoCreateGuid generates random-looking GUIDs like these:

user32

.

        Random myRandom = new Random();

.

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

netapi32

.

public static string GetActiveServerAndShare(string[] arguments)

.

        public int RandomReadOperations;

.

        public int RandomWriteOperations;

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

Enums

.

    FloatDenormalOperand = 0xc000008d,

rasapi32

.

        RASEO_UseCountrAndAreaCodes = 0x00000001,

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

iphlpapi

.

        IpSuffixOriginRandom,


 
Access PInvoke.net directly from VS: