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

getuname

.

     ''' <param name="wCharCode">Character code (code-point)</param>

.

     ''' <param name="codePoint">Code point to get localizaed name of</param>

.

     ''' Localized name of character represented by <paramref name="codePoint"/>. The name is localized to current system locale, not to current thread UI culture.

.

     ''' Returns null if <paramref name="codePoint"/> is not supported by Windows function for getting character names (i.e. <paramref name="codePoint"/> is greater than <see cref="UInt16.MaxValue"/>) or if name cannot be obtained or windows function call failed.

.

     ''' <exception cref="ArgumentOutOfRangeException"><paramref name="codePoint"/> is greater than 0x10FFFF</exception>

.

     Public Function GetCharacterName(codePoint As UInteger) As String

.

     If codePoint > &H10FFFFUI Then Throw New ArgumentOutOfRangeException("codePoint")

.

     If codePoint > UShort.MaxValue Then Return Nothing

.

         ret = API.Misc.GetUName(codePoint, buff)

hhctrl

.

[DllImport("hhctrl.ocx", SetLastError=true, EntryPoint = "HtmlHelpW", CharSet = CharSet.Unicode)]

.

<DllImport("hhctrl.ocx", SetLastError:=True, EntryPoint:="HtmlHelpW", CharSet:=CharSet.Unicode)> _

.

[DllImport("hhctrl.ocx", SetLastError = true, EntryPoint = "HtmlHelpW", CharSet = CharSet.Unicode)]

.

    class POINT

.

        public POINT()

.

        public POINT(int x, int y)

.

        internal POINT pt;

.

    Point current_cursor_location = Control.MousePosition;

.

    param.pt = new POINT(current_cursor_location.X, current_cursor_location.Y);

ntdsapi

.

CharSet = CharSet.Unicode, EntryPoint = "DsBindWithCredW", SetLastError = true)]

.

CharSet = CharSet.Unicode, EntryPoint = "DsBindWithCredW", SetLastError = true)]

.

EntryPoint = "DsFreePasswordCredentials", SetLastError = true)]

.

        IntPtr pDCinfos; // pointer to array of DS_DOMAIN_CONTROLLER_INFO_2

.

EntryPoint = "DsMakePasswordCredentialsW", SetLastError = true)]

.

    private static DS_SCHEMA_GUID_MAP[] parseGuids(IntPtr guidMap, int numGuids, bool freePointer)

.

        IntPtr guidPointer = guidMap;

.

                (long)guidPointer + i * typeSize

.

        if (freePointer)

.

        DsFreeSchemaGuidMap(guidPointer);

.

CharSet = CharSet.Unicode, EntryPoint = "DsUnBindW", SetLastError = true)]

wininet

.

        EntryPoint = "DeleteUrlCacheEntryA",

.

      EntryPoint:="DeleteUrlCacheEntryA", _

.

    [DllImport(@"wininet", SetLastError = true, CharSet = CharSet.Auto, EntryPoint = "DeleteUrlCacheGroup", CallingConvention = CallingConvention.StdCall)]

.

       EntryPoint:="DeleteUrlCacheGroup", _

.

[DllImport(@"wininet",SetLastError=true,CharSet=CharSet.Auto,EntryPoint="FindFirstUrlCacheEntryA",CallingConvention=CallingConvention.StdCall)]

.

       EntryPoint:="FindFirstUrlCacheEntryA", _

.

       EntryPoint:="FindFirstUrlCacheGroup", _

.

        EntryPoint:="FindNextUrlCacheEntryA", _

.

       EntryPoint:="FindNextUrlCacheGroup", _

.

lpszCommand (in) A pointer to a string that contains the command to send to the FTP server.

.

dwContext (in) A pointer to a variable that contains an application-defined value used to identify the application context in callback operations.

.

phFtpCommand (out) A pointer to a handle that is created if a valid data socket is opened. The fExpectResponse parameter must be set to TRUE for phFtpCommand to be filled.

.

    [DllImport("wininet.dll", EntryPoint = "InternetConnectW", CharSet = CharSet.Auto, SetLastError = true)]

.

    [DllImport("wininet.dll", EntryPoint = "InternetOpenW", CharSet = CharSet.Auto, SetLastError = true)]

.

    [DllImport("wininet.dll", EntryPoint = "FtpPutFile")]

.

    [DllImport("wininet.dll", EntryPoint = "FtpGetFile", SetLastError = true, CharSet = CharSet.Auto)]

.

    [DllImport("wininet.dll", EntryPoint = "FtpOpenFile", SetLastError = true, CharSet = CharSet.Auto)]

.

    [DllImport("wininet.dll", EntryPoint = "InternetCloseHandle")]

.

    [DllImport("wininet.dll", EntryPoint = "GetLastError")]

.

    // (in) Pointer to a string that contains the canonical URL to be cracked

.

    // (out) Pointer to a URL_COMPONENTS structure that receives the URL components

.

///     C++ ( lpdwFlags [out]. Type: LPDWORD )<br />Pointer to a variable that receives the connection description. This

.

[DllImport("wininet.dll", EntryPoint = "InternetQueryOption")]

.

    <DllImport("wininet.dll", SetLastError:=True, CharSet:=CharSet.Auto, EntryPoint:="PrivacySetZonePreferenceW", CallingConvention:=CallingConvention.StdCall)> _

.

    <DllImport("wininet.dll", SetLastError:=True, CharSet:=CharSet.Auto, EntryPoint:="PrivacySetZonePreferenceW", CallingConvention:=CallingConvention.StdCall)> _

ntdll

.

        FileReparsePointInformation

.

        FileReparsePointInformation,      // 33

.

        FileReparsePointInformation,        // 33

.

            FileAttributes.ReparsePoint,

.

        //Return pointer to PEB base address

.

        return infoPtr;//don't forget to free the pointer with Marshal.FreeHGlobal after you're done with it

.

        Marshal.FreeHGlobal(infoPtr);//free pointer when not Successful

.
Summary
Retrieves the specified system information. Specify the information you want, a pointer to hold the results.
.

/// <param name="Size">The allocation size of the buffer pointed to by Info</param>

.

        Marshal.FreeHGlobal(infoPtr);  //free pointer when not Successful

printui

.
Summary
PrintUIEntryW is the main entrypoint to the printer configuration functions in the PrintUI.dll.

mpr

.

  //    [DllImport("Mpr.dll", EntryPoint="WNetAddConnection2", CallingConvention=CallingConvention.Winapi)]

setupapi

.

outputDeviceInstance, Caller-supplied pointer to the device instance handle to the child node that this function retrieves. The retrieved handle is bound to the local machine.

.

pulRegDataType, Optional, can be NULL. A pointer to a location that receives the registry data type, specified as a REG_-prefixed constant defined in Winnt.h.

.

buffer, Optional, can be NULL. A pointer to a caller-supplied buffer that receives the requested device property. If this value is NULL, the function supplies only the length of the requested data in the address pointed to by pulLength.

.

length, A pointer to a ULONG variable into which the function stores the length, in bytes, of the requested device property. If the Buffer parameter is set to NULL, the ULONG variable must be set to zero. If the Buffer parameter is not set to NULL, the ULONG variable must be set to the length, in bytes, of the caller-supplied buffer.

.

DEVINST is a DWORD, not a pointer. This matters on 64-bit platforms.

.

outputDeviceInstance, Caller-supplied pointer to the device instance handle to the sibling node that this function retrieves. The retrieved handle is bound to the local machine.

.

DEVINST is a DWORD, not a pointer. This matters on 64-bit platforms.

.

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

.

[out, optional] Pointer to a variable that receives the size (in characters) required to store the destination INF file name including a terminating NULL. If the SP_COPY_OEMINF_CATALOG_ONLY flag is specified, this variable will receive a string length only if the INF file already exists in the INF directory. Otherwise, this variable will be set to zero. This parameter can be NULL.

.

[out, optional] Pointer to a string that is set upon successful return (or ERROR_FILE_EXISTS) to point to the beginning of the filename component of the path stored in the DestinationInfFileName parameter. If the SP_COPY_OEMINF_CATALOG_ONLY flag is specified, the DestinationInfFileName parameter may be an empty string. In this case, the character pointer will be set to NULL upon successful return. This parameter can be NULL.

.

A GUID array that receives a list of setup class GUIDs. This pointer is optional and can be NULL.

.

The number of GUIDs in the array that is pointed to by the ClassGuildList parameter. If ClassGuidList is NULL, ClassGuidSize must be zero.

.

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.

.

    //Inputs:   pointer to hdev, SP_DEV_INFO, bool

.

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.

.

The size, in characters, of the buffer that is pointed to by the ClassName parameter. The maximum size, in characters, of a NULL-terminated class name is MAX_CLASS_NAME_LEN. For more information about the class name size, see the following Comments section.

.

A pointer to a variable that receives the number of characters that are required to store the requested NULL-terminated class name. This pointer is optional and can be NULL.

.

    EntryPoint:="SetupDiDestroyDeviceInfoList", _

.

    EntryPoint:="SetupDiEnumDeviceInfo", _

.

out Pointer to an SP_DEVINFO_DATA structure that receives information about this element. You must set the cbSize member to sizeof(SP_DEVINFO_DATA) before calling this function.

.

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.

.

This signature has the drawback that it does not allow passing a null pointer as the first parameter, which is one of the common usages cited at [SetupDiGetClassDevs]: "To return devices for all device setup classes, set the DIGCF_ALLCLASSES flag, and set the ClassGuid parameter to NULL."

.

    EntryPoint:="SetupDiGetClassDevsW", _

.

    EntryPoint:="SetupDiGetClassDevsW", _

.

deviceInfoData, Pointer to an SP_DEVINFO_DATA structure that defines the device instance.

.

propertyRegDataType, Pointer to a variable that receives the registry data Type. This parameter can be NULL.</param>

.

propertyBuffer, Pointer to a buffer that receives the requested device property.</param>

.

requiredSize, Pointer to a variable that receives the required buffer size, in bytes. This parameter can be NULL.</param>

.

    EntryPoint:="SetupDiOpenClassRegKeyExW", _

.

    //Inputs:   pointer to hdev, SP_DEV_INFO, bool

.
Section Pointer to a null-terminated string specifying the section of the INF files to search in.
.
Key Optional pointer to a null-terminated string specifying the key to search for within the section. The null-terminated string should not exceed the size of the destination buffer. This parameter can be NULL. If Key is NULL, the first line in the section is returned.
.
Context Pointer to a structure that receives the context information used internally by the INF handle. Applications must not overwrite values in this structure.
.
ContextIn Pointer to the INF file context retrieved by a call to the SetupFindFirstLine function.
.
ContextOut Pointer to a variable in which this function returns the context of the found line. ContextOut can point to ContextIn if the caller wishes.
.
ContextIn Pointer to the INF file context retrieved by a call to the SetupFindFirstLine function.
.
ContextOut Pointer to a variable in which this function returns the context of the found line. ContextOut can point to ContextIn if the caller wishes.
.
Context Pointer to the context for a line in an INF file.
.
ReturnBuffer Optional pointer to a buffer that receives the null-terminated string. You should ensure the destination buffer is the same size or larger than the source buffer. This parameter can be NULL. See the Remarks section.
.
ReturnBufferSize Size of the buffer pointed to by ReturnBuffer, in characters. This includes the null terminator.
.
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 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.

.
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.
.
ErrorLine Optional pointer to a variable to which this function returns the (1-based) line number where an error occurred during loading of the INF file. This value is generally reliable only if GetLastError does not return ERROR_NOT_ENOUGH_MEMORY. If an out-of-memory condition does occur, ErrorLine may be 0.

advapi32

.

    [DllImport("advapi32.dll", SetLastError=true, EntryPoint="ClearEventLog")]

.

                 serviceStatus.CheckPoint++;

.

     [DllImport ("advapi32.dll", EntryPoint = "OpenSCManagerW", ExactSpelling = true, CharSet = CharSet.Unicode, SetLastError = true)]

.

     [DllImport ("advapi32.dll", EntryPoint = "QueryServiceStatus", CharSet = CharSet.Auto)]

.

Dispose of the sid pointer using Marshal.FreeHGlobal() to avoid a memory leak

.

    [DllImport("advapi32.dll", EntryPoint = "GetLengthSid", CharSet = CharSet.Auto)]

.

The Unicode version of this function, CreateProcessAsUserW, can modify the contents of this string. Therefore, this parameter cannot be a pointer to read-only memory (such as a const variable or a literal string). If this parameter is a constant string, the function may cause an access violation.

.

    Dim MyPointer As IntPtr = Marshal.AllocHGlobal(4)

.

    Marshal.WriteInt32(MyPointer, StdOutputHandle)

.

    Dim MyErrorPointer As IntPtr = Marshal.AllocHGlobal(4)

.

    Marshal.WriteInt32(MyErrorPointer, StdErrorHandle)

.

    startupInfo.stdOutput = MyPointer  

.

    startupInfo.stdError = MyErrorPointer    

.

    [DllImport("advapi32.dll", EntryPoint = "CredDeleteW", CharSet = CharSet.Unicode)]

.

    [DllImport("advapi32.dll", EntryPoint = "CredDeleteW", CharSet = CharSet.Unicode)]

.

                    // we need to get this as a pointer because we'll have

.

[DllImport("advapi32.dll", EntryPoint="CredReadW", CharSet = CharSet.Unicode, SetLastError=true)]

.

        [DllImport("Advapi32.dll", EntryPoint = "CredReadW", CharSet = CharSet.Unicode, SetLastError = true)]

.

[DllImport("Advapi32.dll", SetLastError=true, EntryPoint="CredWriteW", CharSet=CharSet.Unicode)]

.

[DllImport("Advapi32.dll", SetLastError=true, EntryPoint="CredWriteW", CharSet=CharSet.Unicode)]

.
Summary
Encrypts the data in pbData using the encryption key pointed to by hKey which contains the encryption algorithm that is used.
.

[DllImport("advapi32.dll", EntryPoint = "CryptEnumProviders", SetLastError = true)]

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


 
Access PInvoke.net directly from VS: