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

pstorec

.

The liquor soon mounted into their heads, as it generally does even with the arrantest topers newly landed from sea, and they began capering about most obstreperously.

ole32

.

   void TestCancel();

.
Summary
.

static extern int CreateStreamOnHGlobal(IntPtr hGlobal, bool fDeleteOnRelease,

.

    Declare Function CreateStreamOnHGlobal Lib "ole32" (ByVal hGlobal As IntPtr, ByVal fDeleteOnRelease As Boolean, ByRef ppstm As UCOMIStream) As Long

.
Documentation
.

       [System.Runtime.InteropServices.DllImport("OLE32.DLL", EntryPoint = "CreateStreamOnHGlobal")] // Create a COM stream from a pointer in unmanaged memory

.

    extern public static int CreateStreamOnHGlobal(IntPtr ptr, bool delete, out System.Runtime.InteropServices.ComTypes.IStream pOutStm);

.

                if (CreateStreamOnHGlobal(nativePtr, true, out comStream) == S_OK) // Create IStream from allocated memory that has buffer data

.

      [System.Runtime.InteropServices.DllImport("OLE32.DLL", EntryPoint = "CreateStreamOnHGlobal")]

.

    extern public static int CreateStreamOnHGlobal(IntPtr ptr, bool delete, out System.Runtime.InteropServices.ComTypes.IStream pOutStm);

.

         if (CreateStreamOnHGlobal(ptrIStream, true, out IPtrStream) == 0)

.

    [System.Runtime.InteropServices.DllImport("OLE32.DLL", EntryPoint = "CreateStreamOnHGlobal")]

.

    extern public static int CreateStreamOnHGlobal(IntPtr ptr, bool delete, out System.Runtime.InteropServices.ComTypes.IStream pOutStm);

.

         if (CreateStreamOnHGlobal(ptrIStream, true, out IPtrStream) == 0)

8: STGC
.
Summary
.

static extern int StgCreateStorageEx([MarshalAs(UnmanagedType.LPWStr)] string

.
Documentation
[StgCreateStorageEx] on MSDN
.
Summary
.

static extern int StgCreateStorageEx([MarshalAs(UnmanagedType.LPWStr)] string

.
Documentation
[StgCreateStorageEx] on MSDN
.

            WriteStorage(storageRoot, fileName, writer);

.

    private static void WriteStorage(StorageInfo storageInfo, string storageName, XmlWriter writer)

.

        writer.WriteStartElement("storage");

.

        writer.WriteAttributeString("name", storageName);

.

            WriteStorage(subStorage, subStorage.Name, writer);

.

            string hexData = ConvertStreamBytesToHex(stream);

.

            writer.WriteStartElement("stream");

.

            writer.WriteAttributeString("name", stream.Name);

.

            writer.WriteAttributeString("data", hexData);

.

    private static string ConvertStreamBytesToHex(StreamInfo streamInfo)

avifil32

.
Summary
The AVIFileCreateStream function creates a new stream in an existing file and creates an interface to the new stream.
.

static extern int AVIFileCreateStream(IntPtr pfile, out IntPtr ppavi, ref AVISTREAMINFO psi);

.

Declare Function AVIFileCreateStream Lib "avifil32.dll" Alias "AVIFileCreateStreamA" (ByVal pfile As IntPtr, ByRef ppavi As IntPtr, ByRef psi As AVISTREAMINFO) As Integer

.
Documentation
[AVIFileCreateStream] on MSDN
.

Test

.

Test

Constants

14: CB_
.

    CB_DELETESTRING = 0x0144,

.

public const int CB_DELETESTRING      = 0x0144;

.

        CB_DELETESTRING = &H144

.

    Public Const CB_DELETESTRING As Integer = &H144

.

None. Test.

.

The IsGUIThread function tests whether the calling thread is already a graphical user interface (GUI) thread. It can also optionally convert the thread to a GUI thread.

.

    public const int PRINTACTION_TESTPAGE     = 4;

.

    public const int PRINTACTION_TESTPAGE     = 4;

19: SND
.

testttttttt

20: TCM_
.

public const UInt32 TCM_HITTEST = (TCM_FIRST + 13);

.

    // (int)SNDMSG((hwndTC), TCM_HITTEST, 0, (LPARAM)(TC_HITTESTINFO FAR*)(pinfo))

.

    Private Const TCM_HITTEST As UInt32 = (TCM_FIRST + 13)

.

    '     (int)SNDMSG((hwndTC), TCM_HITTEST, 0, (LPARAM)(TC_HITTESTINFO FAR*)(pinfo))

.

        public const int ERROR_DS_SEMANTIC_ATT_TEST = 8383;

.

        public const int ERROR_DS_AUX_CLS_TEST_FAIL = 8389;

.

        public const int ERROR_DS_SUB_CLS_TEST_FAIL = 8391;

.

        /// Source and destination of a cross-domain move do not agree on the object's epoch number.  Either source or destination does not have the latest version of the object.

.

        /// Source and destination of a cross-domain move do not agree on the object's current name.  Either source or destination does not have the latest version of the object.

.

        /// Source and destination for a cross-domain move are not in agreement on the naming contexts in the forest.  Either source or destination does not have the latest version of the Partitions container.

.

        /// Source and destination of a cross-domain move do not agree on the identity of the source object.  Either source or destination does not have the latest version of the source object.

.

        /// Object being moved across-domains is already known to be deleted by the destination server.  The source server does not have the latest version of the source object.

.

        /// The certification path terminates with the test root which is not trusted with the current policy settings.

.

        public const int CERT_E_UNTRUSTEDTESTROOT = (int)(0x800B010D - 0x100000000);

22: WM
.
WM_DELETEITEM 0x2D Sent to the owner of a list box or combo box when the list box or combo box is destroyed or when items are removed by the LB_DELETESTRING, LB_RESETCONTENT, CB_DELETESTRING, or CB_RESETCONTENT message. The system sends a WM_DELETEITEM message for each deleted item. The system sends the WM_DELETEITEM message for any deleted list box or combo box item with nonzero item data.
.
WM_NCHITTEST 0x84 The WM_NCHITTEST message is sent to a window when the cursor moves, or when a mouse button is pressed or released. If the mouse is not captured, the message is sent to the window beneath the cursor. Otherwise, the message is sent to the window that has captured the mouse.
.

private const UInt32 WM_NCHITTEST          = 0x0084;

.

   WM_NCHITTEST = &H84

.

WM_NCHITTEST          equ 084h

oleaut32

.

The sample cannot be used on DCOM (remote COM). It is not tested.

query

.

The liquor soon mounted into their heads, as it generally does even with the arrantest topers newly landed from sea, and they began capering about most obstreperously.

ipaqutil

.
Summary
Get the actual IPAQ Serial # which is exposed in Settings/HP Asset Viewer. Tested on a IPAQ 6500 series which has the required dll as part of the OS.

urlmon

.

   Public Module CopyMemoryTest

.

    //rename crystal.jpg to .gif to test functionality!

.

  result = FindMimeFromData(0, "file://c:/test/form1.frm", vbNullString, 0, vbNullString, 0, buffAddr, 0)

.

Presently a rioting noise was heard without. Starting up, the landlord cried, "That's the Grampus's crew. I seed her reported in the offing this morning; a three years' voyage, and a full ship. Hurrah, boys; now we'll have the latest news from the Feegees."

.

Capitalise on low hanging fruit to identify a ballpark value added activity to beta test. Override the digital divide with additional clickthroughs from DevOps. Nanotechnology immersion along the information highway will close the loop on focusing solely on the bottom line.

wininet

.

    ' 1MB in size should be enough for this test

shlwapi

.

The liquor soon mounted into their heads, as it generally does even with the arrantest topers newly landed from sea, and they began capering about most obstreperously.

.

    //nunit test case

.

    [Test]

.

    public void TestGetAbsolutePath()

.

        Assert.AreEqual(@"c:\abc\123.txt",IO.GetAbsolutePath(@"c:\abc\","123.txt"),"Test 1");

.

        Assert.AreEqual(@"c:\abc\123.txt", IO.GetAbsolutePath(@"c:\abc\efg\", @"..\123.txt"), "Test 1");

.

    /// Test code for PathCompactPathEx

.

    /// Test code for PathCompactPathEx

.

string str = @"c:\path1\path2\test";

.

// Result: str  == @"path1\path2\test"

.

bool found = PathFindOnPath(sb, new String [] {"c:\\test", "c:\\junk"} );

.

'THIS IS UNTESTED!!!

.

    //nunit test

.

    [Test]

.

    public void TestIsRelative()

.

        Assert.AreEqual(true,IO.IsRelativePath(@"test.txt"),"Test 1");

.

        Assert.AreEqual(true, IO.IsRelativePath(@"..\test.txt"), "Test 2");

.

        Assert.AreEqual(true, IO.IsRelativePath(@"..\..\test.txt"), "Test 3");

.

        Assert.AreEqual(false, IO.IsRelativePath(@"C:\test.txt"), "Test 4");

.

'nunit test

.

<Test> _

.

Public Sub TestIsRelative()

.

      Assert.AreEqual(true,IsRelativePath("test.txt"),"Test 1")

.

      Assert.AreEqual(true, IsRelativePath("..\test.txt"), "Test 2")

.

      Assert.AreEqual(true, IsRelativePath("..\..\test.txt"), "Test 3")

.

      Assert.AreEqual(false, IsRelativePath("C:\test.txt"), "Test 4")

.
Summary
PathIsURL - Tests a given string to determine if it conforms to a valid URL format.
.

/// Tests a given string to determine if it conforms to a valid URL format.

.

''' Tests a given string to determine if it conforms to a valid URL format.

.

''' <param name="pszSpec">A pointer to a null-terminated string of maximum length MAX_PATH that contains the file type for which to search. For example, to test whether pszFile is a .doc file, pszSpec should be set to "*.doc".</param>

.

if(PathMatchSpec("C:\\test.txt", "*.txt"))

.

StringBuilder str = new StringBuilder(@"C:\TEST\sample.txt");

.

// Result: bRet == true && str.ToString() == @"C:\TEST"

.

bool b = PathUnExpandEnvStrings(@"C:\Program Files\Test", sb, sb.Capacity);

.

// Result: b == true && sb.ToString() == @"%ProgramFiles%\Test"

.

Dim blnOK As Boolean = PathUnExpandEnvStrings("C:\Program Files\Test", sb, sb.Capacity)

.

If blnOK = True Then strUnExpandEnvStrings = sb.ToString ' Should be %ProgramFiles%\Test on English OS

.

[DllImport("shlwapi.dll", CharSet = CharSet.Unicode, ExactSpelling = true, PreserveSig = false, EntryPoint = "SHCreateStreamOnFileEx")]

.

static extern void SHCreateStreamOnFileEx(string fileName, uint grfmode, uint dwAttributes, bool fCreate, System.Runtime.InteropServices.ComTypes.IStream streamNull, ref System.Runtime.InteropServices.ComTypes.IStream stream);

.

static extern IStream SHCreateStreamOnFileEx(string pszFile, uint grfMode, uint dwAttributes, bool fCreate, IStream pstmTemplate);

.

Declare Function SHCreateStreamOnFileEx Lib "shlwapi.dll" (TODO) As TODO

.

[DllImport("shlwapi.dll", CharSet = CharSet.Unicode, ExactSpelling = true, PreserveSig = false, EntryPoint = "SHCreateStreamOnFileEx")]

.

static extern void SHCreateStreamOnFileEx(string fileName, uint grfmode, uint dwAttributes, bool fCreate, System.Runtime.InteropServices.ComTypes.IStream streamNull, ref System.Runtime.InteropServices.ComTypes.IStream stream);

.

Declare Function SHCreateStreamOnFileEx Lib "shlwapi.dll" (TODO) As TODO

.

Private Sub Test()

fbwflib

.

Code is tested on Windows Embedded Standard 7 32bit.

.

Code is tested on Windows Embedded Standard 7 32bit.

.

Code is tested on Windows Embedded Standard 7 32bit.

.

Code is tested on Windows Embedded Standard 7 32bit.

.

Code is tested on Windows Embedded Standard 7 32bit.

.

Code is tested on Windows Embedded Standard 7 32bit.

.

Code is tested on Windows Embedded Standard 7 32bit.

.

Code is tested on Windows Embedded Standard 7 32bit.

.

Code is tested on Windows Embedded Standard 7 32bit.

.

Code is tested on Windows Embedded Standard 7 32bit.

.

Code is tested on Windows Embedded Standard 7 32bit.

.

Code is tested on Windows Embedded Standard 7 32bit.

.

Code is tested on Windows Embedded Standard 7 32bit.

.

Code is tested on Windows Embedded Standard 7 32bit.

iphlpapi

.

        IfOperStatusTesting,

.
Summary
The PfTestPacket function tests the specified packet and returns the action that would be performed given the specified interface.
.

    [DllImport("iphlpapi.dll", EntryPoint = "PfTestPacket")]

.

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

.

Declare Function PfTestPacket Lib "iphlpapi.dll" (TODO) As TODO

.

    /// The PfTestPacket function tests the specified packet and returns the action that would be performed given the specified interface.

.

    /// <param name="cBytes">[in] Specifies the size, in bytes, of the test packet specified by the pbPacket parameter.</param>

.

    /// <param name="pbPacket">[in] Pointer to a network packet to test with the specified interface (or interfaces).</param>

.
Documentation
[PfTestPacket] on MSDN

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


 
Access PInvoke.net directly from VS: