Desktop Functions: Smart Device Functions:
|
Search Results for "TEST" in [All]pstorec1: 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. ole32
void TestCancel(); 3: CoTestCancel
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
[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 6: OleSave
[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
10: StgOpenStorage
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
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 12: AVIFileOpen Test 13: AVIFileOpenW Test Constants14: CB_
CB_DELETESTRING = 0x0144,
public const int CB_DELETESTRING = 0x0144;
CB_DELETESTRING = &H144
Public Const CB_DELETESTRING As Integer = &H144 None. Test. 16: IsGUIThread 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. 17: ShellAPI
public const int PRINTACTION_TESTPAGE = 4; 18: ShellAPI
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)) 21: WINERROR
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
private const UInt32 WM_NCHITTEST = 0x0084;
WM_NCHITTEST = &H84
WM_NCHITTEST equ 084h oleaut3223: VarBstrFromDisp The sample cannot be used on DCOM (remote COM). It is not tested. query24: 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. ipaqutilurlmon26: CopyMemory
Public Module CopyMemoryTest 27: FindMimeFromData
//rename crystal.jpg to .gif to test functionality!
result = FindMimeFromData(0, "file://c:/test/form1.frm", vbNullString, 0, vbNullString, 0, buffAddr, 0) 28: 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." 29: 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. wininet
' 1MB in size should be enough for this test shlwapi31: 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. 32: 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"); 33: PathCompactPath
/// Test code for PathCompactPathEx
/// Test code for PathCompactPathEx
string str = @"c:\path1\path2\test";
// Result: str == @"path1\path2\test" 36: PathFindOnPath
bool found = PathFindOnPath(sb, new String [] {"c:\\test", "c:\\junk"} ); 37: 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") 38: 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. 39: 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 44: StrCmpLogicalW
Private Sub Test() fbwflib45: 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. 50: 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. iphlpapi
IfOperStatusTesting, 60: PfTestPacket
[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> Cut off search results after 60. Please refine your search. |