Desktop Functions: Smart Device Functions:
|
Search Results for "POINT" in [All]getuname1: 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) hhctrl2: HtmlHelp
[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); ntdsapi3: DsBind
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); 9: DsUnBind
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", _ 16: FtpCommand 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. 17: FtpGetFile
[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")] 18: InternetCrackUrl
// (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 25: NtQueryObject
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
/// <param name="Size">The allocation size of the buffer pointed to by Info</param>
Marshal.FreeHGlobal(infoPtr); //free pointer when not Successful printui27: PrintUIEntryW mpr
// [DllImport("Mpr.dll", EntryPoint="WNetAddConnection2", CallingConvention=CallingConvention.Winapi)] setupapi29: CM_Get_Child 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. 31: CM_Get_Parent DEVINST is a DWORD, not a pointer. This matters on 64-bit platforms. 32: CM_Get_Sibling 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. 33: SetupCopyOEMInf [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
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. 48: SetupOpenInfFile
advapi3249: ClearEventLog
[DllImport("advapi32.dll", SetLastError=true, EntryPoint="ClearEventLog")] 50: ControlService
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 54: CredDelete
[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 56: CredRead
[DllImport("advapi32.dll", EntryPoint="CredReadW", CharSet = CharSet.Unicode, SetLastError=true)] 57: CredRead
[DllImport("Advapi32.dll", EntryPoint = "CredReadW", CharSet = CharSet.Unicode, SetLastError = true)] 58: CredWrite
[DllImport("Advapi32.dll", SetLastError=true, EntryPoint="CredWriteW", CharSet=CharSet.Unicode)]
[DllImport("Advapi32.dll", SetLastError=true, EntryPoint="CredWriteW", CharSet=CharSet.Unicode)] 59: CryptEncrypt
[DllImport("advapi32.dll", EntryPoint = "CryptEnumProviders", SetLastError = true)] Cut off search results after 60. Please refine your search. |