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
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

Search Results for "TEST" in [All]

gdi32

.

Sample Code: (Tested on Windows 8.1 Professional 64 Bit)

.

                int test=ExtEscape( hDC, QUERYESCSUPPORT, 4, BLOB, 0, IntPtr.Zero);

.

                if(test==0) return false; // printer driver does not support GETTECHNOLOGY Checks.

.

                    test = ExtEscape(hDC,QUERYESCSUPPORT,isz,BLOB,0, IntPtr.Zero);

.

                    if(test!=0) return true; // if any of the checks pass, return true

.

Sample Code test:

.

    private static string BytesToString(byte[] bytes)

.

        return BytesToString(nameBytes);

.

test

.

public class Test{

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

Enums

9: CDS
.

    Test = 2,

.

    Test = 2

.

    // color, but rather the overall brightness of the controls - 0x00 is darkest, 0xFF is lightest.

11: FOS
.

    FOS_NOTESTFILECREATE = 0x00010000,

.

    NOTESTFILECREATE = &H10000

.

public enum HitTestThemeBackgroundCode : ushort

.

Public Enum HitTestThemeBackgroundCode As UShort

.
Documentation
[HitTestThemeBackgroundCode] on MSDN
.

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

.

    [Description("The certification path terminates with the test root which is not trusted with the current policy settings.")]

.

    public const int CERT_E_UNTRUSTEDTESTROOT = unchecked((int)0x800B010D);

.

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

.

    <Description("The certification path terminates with the test root which is not trusted with the current policy settings.")> _

.

    Public Const CERT_E_UNTRUSTEDTESTROOT As Integer = CInt(&H800b010dUI)

14: LB_
.

    LB_DELETESTRING = 0x0182,

.

    LB_DELETESTRING = &H182

.

            HITTEST                  = (FIRST + 18),

.

            SUBITEMHITTEST           = (FIRST + 57),

.

            INSERTMARKHITTEST        = (FIRST + 168),

.

    OF_EXIST     = 0x00004000,  // Opens a file and then closes it. Used to test that a file exists

.

    OFN_NOTESTFILECREATE = 0x10000

.

    OFN_NOTESTFILECREATE = &H10000

.

    OFN_NOTESTFILECREATE As Long = &H10000

.

        REG_LATEST_FORMAT = 2,

.

The size of the structure in C is not defined (because it is a bitfield) and will vary from compiler to compiler. It is 32 bits on Windows XP, but it is possible that the size is 64 bits on Windows 64 (not tested). Therefore use long for the type of the enum to be on the safe side.

20: SPI
.

      /// Sets the keyboard repeat-delay setting. The uiParam parameter must specify 0, 1, 2, or 3, where zero sets the shortest delay

.

      /// The pvParam parameter must point to an integer that receives a value which ranges between 1 (slowest) and 20 (fastest).

.

      /// Sets the current mouse speed. The pvParam parameter is an integer between 1 (slowest) and 20 (fastest). A value of 10 is the default.

.

In WM_SYSCOMMAND messages, the four low-order bits of the wParam parameter are used internally by the system. To obtain the correct result when testing the value of wParam, an application must combine the value 0xFFF0 with the wParam value by using the bitwise AND operator.

.

enum  WindowHitTestRegions {

.

Enum  WindowHitTestRegions

.
Documentation
[WindowHitTestRegions] on MSDN
.

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

.

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

.

    NCHITTEST = 0x0084,

.

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

.

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

.

    WM_NCHITTEST = &H84

.

    ''' To obtain the correct result when testing the value of wParam,

.

    ''' The hit-test value returned by the <c>DefWindowProc</c> function as a

.

    ''' result of processing the <see cref="WindowsMessages.WmNchitTest"/> message.

.

    ''' The hit-test value returned by the <c>DefWindowProc</c> function as a

.

    ''' result of processing the <see cref="WindowsMessages.WmNchitTest"/> message.

.

    ''' The hit-test value returned by the <c>DefWindowProc</c> function as a

.

    ''' result of processing the <see cref="WindowsMessages.WmNchitTest"/> message.

.

    ''' The hit-test value returned by the <c>DefWindowProc</c> function as a

.

    ''' result of processing the <see cref="WindowsMessages.WmNchitTest"/> message.

.

    WmNchitTest = &H84

.

    ''' The hit-test value returned by the <c>DefWindowProc</c> function

.

    ''' as a result of processing the <see cref="WindowsMessages.WmNchitTest"/> message.

.

    ''' For a list of hit-test values, see <see cref="WindowsMessages.WmNchitTest"/>.

.

    ''' The low-order word specifies the hit-test value returned by the

.

    ''' <c>DefWindowProc</c> function from processing the <see cref="WmNchitTest"/> message.

.

    ''' For a list of hit-test values, <see cref="WmNchitTest"/>.

.

    ''' The low-order word specifies the hit-test value returned by the

.

    ''' <c>DefWindowProc</c> function from processing the <see cref="WmNchitTest"/> message.

.

    ''' For a list of hit-test values, <see cref="WmNchitTest"/>.

.

    ''' The low-order word specifies the hit-test value returned by the

.

    ''' <c>DefWindowProc</c> function from processing the <see cref="WmNchitTest"/> message.

.

    ''' For a list of hit-test values, <see cref="WmNchitTest"/>.

.
WM_NCHITTEST:
.

You may want to use the custom-built WindowHitTestRegions enumeration for the Result generated by this message.

.
Documentation
[wm_nchittest] on MSDN

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;

Interfaces

.

        /// categories are not tested. </param>

.

        /// categories are not tested.

.

untested!

.

    'Converted code has not been tested.

.
Summary
Part of the Task Scheduler 1.0 Interfaces, which consists of IEnumWorkItems, ITask, ITaskScheduler, ITaskTrigger and IScheduledWorkItem. There is some helper code below for actually using the iterator as the marshalling seemed impossible without resorting to the unmanaged helper functions in System.Runtime.InteropServices.Marshal. Not all methods have been tested, so be careful!
.
Note
Not tested.
.

    /// object through <see cref="SetSite"/>. Callers can also retrieve the latest site passed

36: IPart
.

untested

.

    ' CAUTION: This method is untested! It returns a value, so probably should be StringBuilder, but this

.
Summary
Part of the Task Scheduler 1.0 Interfaces, which consists of IEnumWorkItems, ITask, ITaskScheduler, ITaskTrigger and IScheduledWorkItem. Generally this is useless - use ITask (which inherits from IScheduledWorkItem) instead. Not all methods have been tested, so be careful!
.

    void GetViewStateStream(UInt32 grfMode, IntPtr ppStrm);

.

'''Caution: This code has not been tested yet, but it has been cross checked against the C# code above

.

    void CreateStream(

.

    void CreateStorage(

.

    Sub CreateStream(ByVal pwcsName As String,

.

    Sub CreateStorage(ByVal pwcsName As String,

42: ITask
.
Summary
Part of the Task Scheduler 1.0 Interfaces, which consists of IEnumWorkItems, ITask, ITaskScheduler, ITaskTrigger and IScheduledWorkItem. The C# definition contains some helper code. Not all methods have been tested, so be careful!
.
Summary
Part of the Task Scheduler 1.0 Interfaces, which consists of IEnumWorkItems, ITask, ITaskScheduler, ITaskTrigger and IScheduledWorkItem. There is some helper code below. Not all methods have been tested, so be careful!
.
Summary
Part of the Task Scheduler 1.0 Interfaces, which consists of IEnumWorkItems, ITask, ITaskScheduler, ITaskTrigger and IScheduledWorkItem. The C# definition contains some helper code. Not all methods have been tested, so be careful!

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

winhttp

.

I tested this method in sync method, it is ok. But according to MSDN and C++ code, the second param should be NULL when use async method. This function cann't work.

.

static extern bool WinHttpReadData(IntPtr hRequest,byte[] lpBuffer,int dwNumberOfBytesToRead,ref int lpdwNumberOfBytesRead);

.

Declare Function WinHttpReadData Lib "winhttp.dll" (ByVal hRequest As IntPtr, ByVal lpBuffer As Byte(), ByVal dwNumberOfBytesToRead As Integer, ByRef lpdwNumberOfBytesRead As Integer) As Boolean

.

            uint dwNumberOfBytesToWrite,

.

Declare Function WinHttpWriteData Lib "winhttp.dll" (ByVal hRequest As IntPtr, ByVal lpBuffer As IntPtr, ByVal dwNumberOfBytesToWrite As UInteger, ByRef lpdwNumberOfBytesWritten As UInteger) As Boolean

shell32

51: api
.

teste

.

However, tests indicates that the upon return, the contents of both iconPath and index parameters are the same after the function returns successfully.

.

    public partial class IconTest : Form

.

    public IconTest()

.
Summary
IsNetDrive - Tests whether a drive is a network drive.
.

/// Tests whether a drive is a network drive.

.

/// An integer that indicates which drive letter you want to test.

.

''' Tests whether a drive is a network drive.

.

''' An integer that indicates which drive letter you want to test.

.
Summary
IsUserAnAdmin - Tests whether the current user is a member of the Administrator's group.
.

/// Tests whether the current user is a member of the Administrator's group.

.

''' Tests whether the current user is a member of the Administrator's group.

.

fileSpec.Append("Bad*file?<test>.txt");

.

            return MyComputer;  // must test for string.Empty

.

SHCreateDirectoryEx(IntPtr.Zero, @"D:\test\", IntPtr.Zero);

.

Be careful with the string structure fields: UnmanagedType.LPTStr will be marshalled as unicode string so only the first character will be recognized by the function. Use UnmanagedType.LPStr instead. [Tested on Win7]

.

The hwnd field should be the handle of the required parent calling window (see http://msdn.microsoft.com/en-us/library/bb762169.aspx). passing in <parent window>.Handle (in C#) works in XP, but in Vista it does not. What works on Vista is passing in 0 (IntPtr.Zero). I have tested this on WP SP2 and it works there as well.

.

Public Class SHGetNameFromIDList#_TEST

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


 
Access PInvoke.net directly from VS: