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]

psapi

.

namespace EnumDriversTest

.

namespace Test

.

namespace EnumDriversTest

.

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

netapi32

.

With all the different information you can get with just one command; this one sure is difficult. Very, very little documentation on this because Microsoft probably doesn't want easy access to these. My company has allowed me to contribute my findings as long as I mention it. We are Digital Boundary Group, based in London, Ontario, Canada, and we do penetration testing. Please visit us at http://digitalboundary.net I will be allowed to continue my contributions as long as my company does not lose credit for its contributions.

.

public static test(string strDomain)

.

            string ServerName = @"\\test01";

.

    string shareName = "testshare";

.

    string shareDesc = "This is a test share kekelar2000";

.

Function Test-NetBIOSName{

.

#TEST

.

Test-NetBIOSName “myserver” 1

.

        public long BytesTransmitted;

mpr

.

    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.

userenv

.

            StringBuilder testData = new StringBuilder("");

.

                if ((testData.Length > 0) && (*current == 0) && (current != start)) {

.

                String data = testData.ToString();

.

                testData.Length = 0;

.

                testData.Append((char)*current);

.

    Sid oSid = new Sid(@"csharp\test");

mapi32

.

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.

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

rapi

.

CeCopyFile("\\test.txt", "\\test2.txt", false);

.

CeCreateDirectory("\\test", System.IntPtr.Zero);

.

CeCreateFile("\\test.txt", GENERIC_READ | GENERIC_WRITE, 0, 0, CREATE_NEW, FILE_ATTRIBUTE_NORMAL, 0);

.

CeDeleteFile("\\test.txt");

.

IntPtr hFindFile = CeFindFirstFile("\\windows\\test.dll",ref findData)

.

    wsprintf( outBuffer, _T("This is just a Test!") );

.

    int nNumberOfbytesToRead,

.

uint ret = CeRegOpenKeyEx(HKEY_LOCAL_MACHINE,"Software\\TestApp\\Settings",0,0x1,out key);

.

uint ret = CeRegOpenKeyEx(HKEY_CURRENT_USER,"Software\\TestApp\\Settings",0,0x1,out key);

.

uint ret = SMLib.CeRegOpenKeyEx(HKEY_CURRENT_USER,"Software\\TestApp\\Settings",0,0x1,out key);

.

ret = CeRegOpenKeyEx(HKEY_CURRENT_USER,"Software\\TestApp\\Settings",0,0x1,out key);

.

uint ret = CeRegOpenKeyEx(HKEY_CURRENT_USER,"Software\\TestApp\\Settings",0,0x1,out key);

.

    Dim ret As UInteger = CeRegOpenKeyEx(HKEY_CURRENT_USER, "Software\TestApp\Settings", 0, &H1, key)

.

    int nNumberOfBytesToWrite,

misc

56: FAQ
.

Here is a test Playground

.

    Structure MDICREATESTRUCT

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.

secur32

.

using TestMe;

.

            int BytesToAllocate = 0;

.

                BytesToAllocate += Marshal.ReadInt32(pBuffers,CurrentOffset);    

.

            Buffer = new byte[BytesToAllocate];

.

                int BytesToCopy = Marshal.ReadInt32(pBuffers,CurrentOffset);    

.

                Marshal.Copy(SecBufferpvBuffer,Buffer,BufferIndex,BytesToCopy);

.

                BufferIndex += BytesToCopy;

.

namespace SSPITest

.

    class TestMe

.

Whidbey makes it trivial to Kerberize your application using NegotiateStream. Check the Beta documentation for details...

.

static extern TODO NegotiateStream(TODO);

.

Declare Function NegotiateStream Lib "secur32.dll" (TODO) As TODO

.
Documentation
[NegotiateStream] on MSDN

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


 
Access PInvoke.net directly from VS: