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

difxapi

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,xolehlp,twain_32,winmm,msvcrt,Constants,Delegates,Enums,Interfaces,Structures

gsapi

.

    static void Main(string[] args)

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,xolehlp,twain_32,winmm,wininet,comdlg32,imm32,ntdsapi,odbccp32,Constants,Delegates,Enums,Interfaces,Structures

mqrt

.

Marvelous rivetting stuff bent as a nine bob note taking the mick owt terribly Sonic Screwdriver, it's me peepers a bit wonky jolly hockey sticks the fuzz on his bill. Cor blimey' naff one would like curry sauce lost her marbles bloody shambles down South what a load of cobblers because there was nothing on the gogglebox see a man about a dog, bangers and mash easy peasy yorkshire mixture bog off goggledegook chinwag nuthouse cornish pasty. Ey up pigeons in Trafalgar Square clotted cream on the beat posh nosh real ale come hither man and his whippet jolly, oo ecky thump I'd reet fancy a you mean it ain't me noggin' bog off and thus tosser what a load of cobblers.

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,xolehlp,twain_32,winmm,wininet,comdlg32,imm32,ntdsapi,odbccp32,Constants,Delegates,Enums,Interfaces,Structures

hhctrl

.

ãAàӑfÙ+–4aÚ¯šS¹n1_kÿ:–'±Ó•Äac¬çìý–o‘ þÕÅNÚâ-þ”dÖ9&Õ”¦‹u8’#ÏÏôÇ0(–s³bÃEFÐ+ÆAIU™¬ålóí¤glç)pšÉü¡ÅÚ`?Ü‹Œ`Ö£ËÖvâß–õ2É@¯E÷Α1ÆP°ª†“N K*(¤‹¯§yA*ˆpÕÖìäo(ÏȖ¼¨ÆZ{À6p>4o~”‰ç¯üӏê

.

    param.pszText = "Without specifying the font instead of text you may obtain the abracadabra";

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,xolehlp,twain_32,winmm,wininet,comdlg32,imm32,ntdsapi,odbccp32,iprop,Constants,Delegates,Enums,Interfaces,Structures

setupapi

.

ü+8†ìoN‡2ÕUµZaIÝsÓn‹Sñša‹³O<¾ P¥@ð

.
Summary
The CM_Get_Child function obtains a device instance handle to the child node of a specified device node, in the local machine's device tree. If the operation succeeds, the function returns CR_SUCCESS. Otherwise, it returns one of the CR_-prefixed error codes defined in Cfgmgr32.h
.

property, A CM_DRP_-prefixed constant value that identifies the device property to be obtained from the registry. These constants are defined in Cfgmgr32.h.

.

Also Microsoft.Win32.RegistryValueKind only contains enumerations for the basic kinds.

.

// from SetupDiEnumDeviceInterfaces and SetupDiGetDeviceInterfaceDetail so please see those examples

.
Summary
The CM_Get_DevNode_Status function obtains the status of a device instance from its device node, in the local machine's device tree.
.

    // build a Device Interface Detail Data structure

.

    SP_DEVICE_INTERFACE_DETAIL_DATA didd = new SP_DEVICE_INTERFACE_DETAIL_DATA();

.

    // now we can get some more detailed information

.

    if (SetupDiGetDeviceInterfaceDetail(h, ref dia, ref didd, nBytes, ref nRequiredSize, ref da))

.
Summary
The CM_Get_Sibling function obtains a device instance handle to the next sibling node of a specified device node, in the local machine's device tree.
.
Summary
The CM_Get_Sibling function obtains a device instance handle to the next sibling node of a specified device node (devnode) in the local machine's device tree. If the operation succeeds, the function returns CR_SUCCESS. Otherwise, it returns one of the CR_-prefixed error codes defined in Cfgmgr32.h
.
Summary
The CM_Locate_DevNode function obtains a device instance handle to the device node that is associated with a specified device instance identifier, on the local machine.
.
Summary
The CM_Locate_DevNode function obtains a device instance handle to the device node that is associated with a specified device instance identifier, on the local machine.
.

Private Type Device_Interface_Detail

.

Private Declare Function SetupDiGetDeviceInterfaceDetail _

.

Lib “setupapi.dll” Alias “SetupDiGetDeviceInterfaceDetailA” _

.

DeviceInterfaceDetailData As Any, _

.

ByVal DeviceInterfaceDetailDataSize As Long, _

.

Dim FunctionClassDeviceData As Device_Interface_Detail

.

Success = SetupDiGetDeviceInterfaceDetail(PnPHandle, _

.

Debug.Print “Open failed on ” & DeviceName

.

     Console.WriteLine("Failed to open INF file. Error code - {0}.", iCode);

.

        Console.WriteLine("Failure line - {0}.", ErrorLine);

.

    Console.WriteLine("Failed to open INF file. Error code - {0}.", iCode)

.

        Console.WriteLine("Failure line - {0}.", ErrorLine)

.

A caller of this function is required have administrative privileges, otherwise the function fails.

.

SPOST_PATH OEMSourceMediaLocation contains a path to the source media. For example, if the media is on a floppy, this path might be "A:\". If OEMSourceMediaLocation is NULL, the path is assumed to be the path where the INF is located. If the INF has a corresponding PNF in that location, the PNF file's source media information will be transferred to the destination PNF file.

.

SPOST_URL OEMSourceMediaLocation contains a universal resource locator (URL) specifying the Internet location from where the INF/driver files were retrieved. If OEMSourceMediaLocation is NULL, it is assumed that the default Code Download Manager location was used.

.

SP_COPY_NOOVERWRITE Copy only if the specified files don't currently exist in the INF directory. If the INF does currently exist, this API will fail and GetLastError returns ERROR_FILE_EXISTS. In this case, the existing INF file's filename will be placed into the appropriate field in the destination INF file's information output buffers.

.

[out, optional] Pointer to a buffer to receive the INF file name assigned to it at the time it was copied to the INF directory. The buffer, if specified, should typically be MAX_PATH in length. If the SP_COPY_NOOVERWRITE flag is specified and the SetupCopyOEMInf function fails with a return code of ERROR_FILE_EXISTS, this buffer will contain the name of the existing INF file. If the SP_COPY_OEMINF_CATALOG_ONLY flag is specified, this buffer will contain the destination INF filename if the INF file is already present in the INF directory. Otherwise, this buffer will be set to the empty string. This parameter can be NULL.

.

in Size of the DestinationInfFileName buffer, in characters, or zero if the buffer is not specified. If DestinationInfFileName is specified and this buffer size is less than the size required to return the destination INF filename (including full path), this function will fail. In this case GetLastError will return ERROR_INSUFFICIENT_BUFFER.

.

The SetupCopyOEMInf function failed. For extended error information, call GetLastError.

.

If the specified INF file already exists a further check is performed to determine if the specified INF file contains a CatalogFile= entry in its Version section. If it does, the INF files's \Inf primary filename with a ".CAT" extension is used to determine if the catalog is already installed. If there is a catalog installed, but it isn't the same as the catalog associated with the source INF, this is not considered to be a match and enumerations continue. It is possible to have multiple identical INF files with unique catalogs contained in \Inf directory. If an existing match is not found, the INF and CAT files are installed under a new and unique name.

.

In cases where the INF file must be copied to the \Inf directory, any digital signature verification failures are reported

.

A pointer to a DWORD-typed variable that receives the number of GUIDs that are returned (if the number is less than or equal to the size, in GUIDs, of the array that is pointed to by the ClassGuidList parameter). If this number is greater than the size of the ClassGuidList array, it indicates how large the ClassGuidList array must be to contain all of the class GUIDs.

.

A pointer to a buffer that receives the NULL-terminated string that contains the name of the class that is specified by the pointer in the ClassGuid parameter.

.

in Handle to the device information set containing the devices for which to return element information.

.

in Zero-based index to the list of interfaces in the device information set. You should first call this function with the MemberIndex parameter set to zero to obtain the first interface. Then, repeatedly increment MemberIndex and retrieve an interface until this function fails and GetLastError returns ERROR_NO_MORE_ITEMS (259).

.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

.

A call to SetupDiEnumDeviceInterfaces retrieves a pointer to a structure that identifies a specific device interface in the previously retrieved DeviceInfoSet array. The call specifies a device interface by passing an array index. To retrieve information about all of the device interfaces, an application can loop through the array, incrementing the array index until the function returns zero, indicating that there are no more interfaces. The GetLastError API function then returns No more data is available.

.

   int i = 0;            //To author: Could you, please, check it once again? My compiler tells me, it suppose to be uint instead of int.

.

       // build a Device Interface Detail Data structure

.

       SP_DEVICE_INTERFACE_DETAIL_DATA didd = new SP_DEVICE_INTERFACE_DETAIL_DATA();

.

       // now we can get some more detailed information

.

       if (SetupDiGetDeviceInterfaceDetail(h, ref dia, ref didd, nBytes, ref nRequiredSize, ref da))

.

       // build a Device Interface Detail Data structure

.

       SP_DEVICE_INTERFACE_DETAIL_DATA didd = new SP_DEVICE_INTERFACE_DETAIL_DATA();

.

       // now we can get some more detailed information

.

       if (SetupDiGetDeviceInterfaceDetail(h, ref dia, ref didd, nBytes, ref nRequiredSize, ref da))

.

public static extern Boolean SetupDiGetDeviceInterfaceDetail(

.

   ref SP_DEVICE_INTERFACE_DETAIL_DATA deviceInterfaceDetailData,

.

   UInt32 deviceInterfaceDetailDataSize,

.

Public Declare Auto Function SetupDiGetDeviceInterfaceDetail2 Lib "setupapi.dll" Alias "SetupDiGetDeviceInterfaceDetailW" ( _

.

    ByRef deviceInterfaceDetailData As SP_DEVICE_INTERFACE_DETAIL_DATA, _

.

    ByVal deviceInterfaceDetailDataSize As Int32, _

.

Public Declare Auto Function SetupDiGetDeviceInterfaceDetail Lib "setupapi.dll" ( _

.

    ByRef DeviceInterfaceDetailData As SP_DEVICE_INTERFACE_DETAIL_DATA, _

.

    ByVal DeviceInterfaceDetailDataSize As UInteger, _

.

SP_DEVICE_INTERFACE_DETAIL_DATA

.

SP_DEVICE_INTERFACE_DETAIL_DATA

.

SP_DEVICE_INTERFACE_DETAIL_DATA

.

SP_DEVICE_INTERFACE_DETAIL_DATA needs a ByVal TCHAR[ANYSIZE_ARRAY] member, which could conceivably be any size. This does not bode well for determining the correct size, however DevicePath should be no longer than MAX_PATH (256).

.

       // build a Device Interface Detail Data structure

.

       SP_DEVICE_INTERFACE_DETAIL_DATA didd = new SP_DEVICE_INTERFACE_DETAIL_DATA();

.

       // now we can get some more detailed information

.

       if (SetupDiGetDeviceInterfaceDetail(h, ref dia, ref didd, nBytes, ref nRequiredSize, ref da))

.

    Dim devEnumInterfaceResult, devDetailResult, devEnumResult, destructionResult, registryPropertyResult As Boolean

.

       Dim didd As SP_DEVICE_INTERFACE_DETAIL_DATA = Nothing

.

        devDetailResult = SetupDiGetDeviceInterfaceDetail(h, dia, didd, 1000, reqedBuffer, da)

.

        devDetailResult = SetupDiGetDeviceInterfaceDetail(h, dia, didd, reqedBuffer, reqedBuffer, da)

.

        If devDetailResult Then

.
Documentation
[SetupDiGetDeviceInterfaceDetail] on MSDN
.

deviceInfoSet, Handle to the device information set that contains the interface and its underlying device

.

     SPDRP_BASE_CONTAINERID        = 0x00000024  // Base ContainerID (R)

.

       // build a Device Interface Detail Data structure

.

       SP_DEVICE_INTERFACE_DETAIL_DATA didd = new SP_DEVICE_INTERFACE_DETAIL_DATA();

.

       // now we can get some more detailed information

.

       if (SetupDiGetDeviceInterfaceDetail(h, ref dia, ref didd, nBytes, ref nRequiredSize, ref da))

.

     Console.WriteLine("Failed to open INF file. Error code - {0}.", iCode);

.

        Console.WriteLine("Failure line - {0}.", ErrorLine);

.

    Console.WriteLine("Failed to open INF file. Error code - {0}.", iCode)

.

        Console.WriteLine("Failure line - {0}.", ErrorLine)

.

     Console.WriteLine("Failed to open INF file. Error code - {0}.", iCode);

.

        Console.WriteLine("Failure line - {0}.", ErrorLine);

.

    Console.WriteLine("Failed to open INF file. Error code - {0}.", iCode)

.

        Console.WriteLine("Failure line - {0}.", ErrorLine)

.

     Console.WriteLine("Failed to open INF file. Error code - {0}.", iCode);

.

        Console.WriteLine("Failure line - {0}.", ErrorLine);

.

    Console.WriteLine("Failed to open INF file. Error code - {0}.", iCode)

.

        Console.WriteLine("Failure line - {0}.", ErrorLine)

.
RequiredSize Optional pointer to a variable that receives the required size for the buffer pointed to by the ReturnBuffer parameter, in characters. If ReturnBuffer is specified and the actual size needed is larger than the value specified by ReturnBufferSize, the function fails and does not store the string in the buffer. In this case, a call to GetLastError returns ERROR_INSUFFICIENT_BUFFER. For the Unicode version of this function, the required size is in characters. This includes the null terminator.
.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

.

If this function is called with a ReturnBuffer of NULL and a ReturnBufferSize of zero, the function puts the buffer size needed to hold the specified data into the variable pointed to by RequiredSize. If the function succeeds in this, the return value is a nonzero value. Otherwise, the return value is zero and extended error information can be obtained by calling GetLastError. You can call the function once to get the required buffer size, allocate the necessary memory, and then call the function a second time to retrieve the data. Using this technique, you can avoid errors due to an insufficient buffer size.

.

     Console.WriteLine("Failed to open INF file. Error code - {0}.", iCode);

.

        Console.WriteLine("Failure line - {0}.", ErrorLine);

.

    Console.WriteLine("Failed to open INF file. Error code - {0}.", iCode)

.

        Console.WriteLine("Failure line - {0}.", ErrorLine)

.
FileName Pointer to a null-terminated string containing the name (and optional path) of the INF file to be opened. If the filename does not contain path separator characters, it is searched for, first in the \inf directory, and then in the \system32 directory. If the filename contains path separator characters, it is assumed to be a full path specification and no further processing is performed on it.
.
InfClass Optional pointer to a null-terminated string containing the class of INF file desired. This string must match the Class value of the Version section (for example, Class=Net). If there is no entry in the Class value, but there is an entry for ClassGUID in the Version section, the corresponding class name for that GUID is retrieved and used for the comparison.
.

If the load fails because the INF file type does not match InfClass, the function returns INVALID_HANDLE_VALUE and a call to GetLastError returns ERROR_CLASS_MISMATCH.

.

     Console.WriteLine("Failed to open INF file. Error code - {0}.", iCode);

.

        Console.WriteLine("Failure line - {0}.", ErrorLine);

.

    Console.WriteLine("Failed to open INF file. Error code - {0}.", iCode)

.

        Console.WriteLine("Failure line - {0}.", ErrorLine)

.

      if (inf.Contains(textBox1.Text))

gdi32

.

protected override void OnPaint(PaintEventArgs e) {

35: BitBlt
.

    SRCPAINT    = 0x00EE0086,

.

    MERGEPAINT  = 0x00BB0226,

.

    PATPAINT    = 0x00FB0A09,

.

protected override void OnPaint(PaintEventArgs e) {

.

        throw new Exception("GetEnhMetaFileBits failed.", new Win32Exception(lastError));

.

        throw new Exception("GetEnhMetaFileBits failed.", new Win32Exception(lastError));

.

/// <returns>If the function succeeds, the return value is a handle to the compatible bitmap (DDB). If the function fails, the return value is <see cref="System.IntPtr.Zero"/>.</returns>

.

///        If the function fails, the return value is <see cref="System.IntPtr.Zero"/>.

.

If the function succeeds, the return value is the handle to a memory DC. If the function fails, the return value is NULL.

.

The BITMAPINFO structure defines the dimensions and color information for a DIB, it contains the members

.

BITMAPINFOHEADER structure (contains information about the dimensions of color format) and bmiColors which contains one of the following:

.

See MSDN Documentation for BITMAPINFO concerning specific details concerning structure members.

.

hSection is a handle to a file mapping object that the function will use to create the DIB and can be NULL. If hSection is not NULL, it must be a handle to a file mapping object created by calling the CreateFileMapping function (otherwise CreateDIBSection will fail). Moreover, the CreateDIBSection function will locate the bitmap’s bit values at offset dwOffset in the file mapping object referred to by hSection. An application can retrieve the hSection handle by calling the GetObject function with the HBITMAP returned by CreateDIBSection.

.

If hSection is NULL, the O/S will allocate memory for the DIB (CreateDIBSection will ignore the dwOffset parameter). An application cannot later obtain a handle to this memory: the dshSection member of the DIBSECTION structure will be NULL.

.

If the function succeeds, the return value is a handle to the newly created device-independent bitmap (and ppvBits will point to the bitmap’s bit values). If the function fails, the return value is NULL (and ptr ppvBits will be NULL). To get extended error information, call GetLastError.

.

in Pointer to a DEVMODE structure containing device-specific initialization data for the device driver. The DocumentProperties function retrieves this structure filled in for a specified device. The lpdvmInit parameter must be NULL if the device driver is to use the default initialization (if any) specified by the user.

.

If the function succeeds, the return value is the handle to an information context. If the function fails, the return value is NULL.

.

void PaintLine3(IntPtr hbitmap, Point start, Point end, bool erase)

.

/// if string is returned. Function was failed.

.

/// <remarks>Created by Jim Vazquez Castan. jim.vazquez@gmail.com</remarks>

.

                // This paints the current form black

.

    private void Form_Paint( object p_SenderObject, System.Windows.Forms.PaintEventArgs p_Arguments )

.

                // This paints the current form black

.

/// <returns><para>If the function succeeds, the return value is nonzero.</para><para>If the function fails, the return value is zero.</para></returns>

.

/// <remarks>An application must not delete a DC whose handle was obtained by calling the <c>GetDC</c> function. Instead, it must call the <c>ReleaseDC</c> function to free the DC.</remarks>

.

    THAI_CHARSET = 222,

.

            THAI_CHARSET = 0x000000DE,

.

        static void Main(string[] args)

.

    THAI_CHARSET = 222,

.

            THAI_CHARSET = 0x000000DE,

.

        static void Main(string[] args)

49: Escape
.
Summary
Enables applications to access capabilities of a particular device not directly available through GDI.
.

                // This paints the current form black

.

/// <para>If the function fails, the return value is zero.</para></returns>

.

/// <summary>The ABCFLOAT structure contains the A, B, and C widths of a font character.</summary>

.

    static void Main(string[] args)

.

    Private Shared Sub Main(args As String())

.

/// If the function fails, the return value is zero.

.

If the function succeeds, the return value is the number of bytes returned. If the function fails, the return value is GDI_ERROR.

.

You can then call the method a second time with initialized array and defined data length, and the byte array then contains the raw bytes.

.

    /// <returns>If the function succeeds, the return value is the number of bytes returned. If the function fails, the return value is GDI_ERROR.</returns>

.

            // Now init the byte array and load the data by calling GetFontData once again

.
Summary
.

static extern uint GetKerningPairs(IntPtr hdc, uint nNumPairs,

.

   [Out] KERNINGPAIR [] lpkrnpair);

.
Documentation
[GetKerningPairs] on MSDN
.

      // said was needed

.

      // Now, make the call again to actually get the data

.

// the GDI class contains static "gdi32.dll" calls

.

// the GDI class contains static "gdi32.dll" calls

59: GM_
.

    ///   SetWorldTransform or ModifyWorldTransform; calls to those functions will fail.

.

      ///   SetWorldTransform or ModifyWorldTransform; calls to those functions will fail.

.

The GDI32.dll does not contain a GradientFill() function. The actual entry point is GdiGradientFill(). That's why the 'EntryPoint' attribute is present.

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


 
Access PInvoke.net directly from VS: