Desktop Functions: Smart Device Functions:
|
Search Results for "TEST" in [All]psapi
namespace EnumDriversTest
namespace Test
namespace EnumDriversTest 4: lorem28 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." netapi32With 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) 7: NetRemoteTOD
string ServerName = @"\\test01"; 8: NetShareAdd
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() fbwflib12: FbwfAddExclusion 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. 17: FbwfEnableFilter 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); 27: DeleteProfile
Sid oSid = new Sid(@"csharp\test"); mapi3228: lorem38 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. shlwapi29: lorem30 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. 30: PathCombine
//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"); 31: PathCompactPath
/// Test code for PathCompactPathEx
/// Test code for PathCompactPathEx
string str = @"c:\path1\path2\test";
// Result: str == @"path1\path2\test" 34: PathFindOnPath
bool found = PathFindOnPath(sb, new String [] {"c:\\test", "c:\\junk"} ); 35: PathIsRelative
'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") 36: 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. 37: PathMatchSpec
''' <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 42: StrCmpLogicalW
Private Sub Test() rapi43: CeCopyFile
CeCopyFile("\\test.txt", "\\test2.txt", false);
CeCreateDirectory("\\test", System.IntPtr.Zero); 45: CeCreateFile
CeCreateFile("\\test.txt", GENERIC_READ | GENERIC_WRITE, 0, 0, CREATE_NEW, FILE_ATTRIBUTE_NORMAL, 0); 46: CeDeleteFile
CeDeleteFile("\\test.txt"); 47: CeFindFirstFile
IntPtr hFindFile = CeFindFirstFile("\\windows\\test.dll",ref findData) 48: CeRapiInvoke
wsprintf( outBuffer, _T("This is just a Test!") ); 49: CeReadFile
int nNumberOfbytesToRead, 50: CeRegCreateKeyEx
uint ret = CeRegOpenKeyEx(HKEY_LOCAL_MACHINE,"Software\\TestApp\\Settings",0,0x1,out key); 51: CeRegDeleteKey
uint ret = CeRegOpenKeyEx(HKEY_CURRENT_USER,"Software\\TestApp\\Settings",0,0x1,out key); 52: CeRegOpenKeyEx
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); 54: CeRegSetValueEx
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) 55: CeWriteFile
int nNumberOfBytesToWrite, misc56: FAQ Here is a test Playground
Structure MDICREATESTRUCT query58: lorem30 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... 60: NegotiateStream
static extern TODO NegotiateStream(TODO);
Declare Function NegotiateStream Lib "secur32.dll" (TODO) As TODO Cut off search results after 60. Please refine your search. |