Desktop Functions: Smart Device Functions:
|
Search Results for "out" in [All]oleacc
public static extern uint AccessibleChildren( IAccessible paccContainer, int iChildStart, int cChildren, [Out] object[] rgvarChildren, out int pcObtained);
Declare Function AccessibleChildren Lib "oleacc.dll" (ByVal paccContainer As IAccessible, ByVal iChildStart As Integer, ByVal cChildren As Integer, <[Out]()> ByVal rgvarChildren() As Object, ByRef pcObtained As Integer) As UInteger
Function AccessibleChildren(ByVal paccContainer As IAccessible, ByVal iChildStart As Integer, ByVal cChildren As Integer, <[Out]()> ByVal rgvarChildren() As Object, ByRef pcObtained As Integer) As UInteger AccessibleChildren(accessible, 0, accessible.accChildCount, childs, out obtained);
public static extern uint AccessibleObjectFromEvent( IntPtr hwnd, uint dwObjectID, uint dwChildID, out IAccessible ppacc, [MarshalAs(UnmanagedType.Struct)] out object pvarChild);
AccessibleObjectFromEvent(hwnd, 0, 0, out accWindow, out objChild);
out IAccessible ppacc, [MarshalAs(UnmanagedType.Struct)] out object pvarChild);
public static extern IntPtr AccessibleObjectFromPoint(POINT pt, [Out, MarshalAs(UnmanagedType.Interface)] out IAccessible accObj, [Out] out object ChildID); This function retrieves the lowest-level accessible object in the object hierarchy at the given point specified in screen coordinates where 0, 0 is the upper left corner. If the element at the point is not an accessible object (that is, does not support IAccessible), then the function retrieves the IAccessible interface of the parent object. The parent object must provide information about the child element through the IAccessible interface.
public static IAccessible GetAccessibleObject(POINT pt, out int ChildID)
IntPtr success = AccessibleObjectFromPoint(pt, out accObj, out varChildID);
public static extern IntPtr AccessibleObjectFromPoint(POINT pt, [Out, MarshalAs(UnmanagedType.Interface)] out IAccessible accObj, [Out] out object ChildID); This function retrieves the lowest-level accessible object in the object hierarchy at a given point in screen coordinates where (0, 0) is the upper left corner. If the element at the point is not an accessible object (that is, does not support IAccessible), then the function retrieves the IAccessible interface of the parent object. The parent object must provide information about the child element through the IAccessible interface.
public static IAccessible GetAccessibleObject(POINT pt, out int ChildID)
IntPtr success = AccessibleObjectFromPoint(pt, out accObj, out varChildID);
[In, Out, MarshalAs(UnmanagedType.IUnknown)] ref object ppvObject); 6: GetRoleText
public static extern uint GetRoleText( uint dwRole, [Out] StringBuilder lpszRole, uint cchRoleMax);
Private Shared Function GetRoleText(ByVal role As Integer, ByVal outRole As StringBuilder, ByVal outRoleSize As Integer) As Integer 7: GetStateText
public static extern uint GetStateText( uint dwStateBit, [Out] StringBuilder lpszStateBit, uint cchStateBitMax ); 8: hello //cout << "loading" << endl; 9: IAccessible
if ( SendMessageTimeout(hWnd, nMsg, UIntPtr.Zero, IntPtr.Zero,
SendMessageTimeoutFlags.SMTO_ABORTIFHUNG, 1000, out lRes) == IntPtr.Zero )
handler = AccessibleObjectFromPoint(location,out iAccessible,out ChildId);
public static extern IntPtr AccessibleObjectFromPoint(MouseHook.POINT pt, [Out, MarshalAs(UnmanagedType.Interface)] out IAccessible accObj, [Out] out object ChildID); If you are calling this API from .NET Framework version 2.0 or higher, be sure to put the STAThread attribute on your main(), or manually set the ApartmentState property of the thread you are calling this from to ApartmentStates.STA, or you will get an error code of 0x8001010D which is a “cannot call out exception because of an input synchronous call”. imm32
[StructLayout(LayoutKind.Sequential)]
IntPtr hKL = GetKeyboardLayout(0); query13: LoadIFilter
[MarshalAs(UnmanagedType.IUnknown)] object pUnkOuter,
<MarshalAs(UnmanagedType.IUnknown)> ByVal pUnkOuter As Object, _ version
static extern int GetFileVersionInfoSize(string fileName, [Out]IntPtr dummy);
Declare Function GetFileVersionInfoSize Lib "version.dll" (fileName As String, <Out> dummy As IntPtr) As Integer userenv
static extern bool CreateEnvironmentBlock( out IntPtr lpEnvironment, IntPtr hToken, bool bInherit ); 16: CreateProfile
static extern int CreateProfile( [MarshalAs(UnmanagedType.LPWStr)] String pszUserSid, [MarshalAs(UnmanagedType.LPWStr)] String pszUserName, [Out, MarshalAs(UnmanagedType.LPWStr)] System.Text.StringBuilder pszProfilePath, uint cchProfilePath);
public static extern int CreateProfile([MarshalAs(UnmanagedType.LPWStr)] String pszUserSid, [MarshalAs(UnmanagedType.LPWStr)] String pszUserName, [Out, MarshalAs(UnmanagedType.LPWStr)] System.Text.StringBuilder pszProfilePath, uint cchProfilePath);
__out PGROUP_POLICY_OBJECT* ppGPOList 18: GetGPOList
out IntPtr pGPOList); 19: LoadUserProfile [in, out] Pointer to a PROFILEINFO structure. LoadUserProfile will fail and return ERROR_INVALID_PARAMETER if the dwSize member of the structure is not set to sizeof(PROFILEINFO) or if the lpUserName member is NULL. For more information, see the following Remarks section. mapi32
/*[MarshalAs(UnmanagedType.Interface)]*/ out IStream ppXmlStream); 21: MapiMessage
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
<StructLayout(LayoutKind.Sequential)> _ 22: MAPISendMail
msg.files = GetAttachments(fileName, out msg.fileCount);
IntPtr GetAttachments(string fileName, out int fileCount)
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] hhctrlé缺ø®=c»6Rda#6}C¥´ØkbùñVÍ{Åô0 2ä:]nX¦Ðí_Sëb Èô£Z00IUFï[P]¥Ì^Í*È"±A||ÿObËÐná[ý ·K5øÇ V¾4ä 6¶3'ÁôëÊa[7§ÄhiåÚ´tfºÎ§ãä¿´W ¯.ÿðÉ9ÂæÙKMç×Öu.kZ¸ ÂߺÍ:~?ÇKð Y²qÎjâPý4¿%ã\ûÿéîýoUt<Ϲ©«Ñ¬Nïw}uS¼q@ô)ã¤y$äµÿ v1ÌO/ÆXcè+iDS»ÐPuϱWõC}@?÷-Z3Ü(Í _ùsÎÐ= 24: HtmlHelp
[StructLayout(LayoutKind.Sequential), CLSCompliant(false)]
[StructLayout(LayoutKind.Sequential)]
[StructLayout(LayoutKind.Sequential)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
param.pszText = "Without specifying the font instead of text you may obtain the abracadabra"; hidReturn Value - Returns TRUE if the routine succeeds. Otherwise, it returns FALSE if the buffer was not a preparsed data buffer.
Public Shared Function HidD_GetAttributes(DeviceObject As Handle, out Attributes As HIDD_ATTRIBUTES) As Boolean
[ StructLayout( LayoutKind.Sequential ) ]
<StructLayout(LayoutKind.Sequential)> _ Attributes [out] 27: HidD_GetFeature
Declare Function HidD_GetFeature Lib "hid.dll" (ByVal HidDeviceObject As SafeFileHandle, out lpReportBuffer As Byte, ReportBufferLength As Int32) As Boolean 28: HidD_GetHidGuid
static extern void HidD_GetHidGuid(out Guid Guid); HidD_GetHidGuid(out guid); The HidD_SetOutputReport routine sends an output report to a top-level collection.
static private extern Boolean HidD_SetOutputReport(
Pointer to a caller-allocated output report buffer that the caller uses to specify a report ID.
For more information about this parameter, see the Remarks section.
Specifies the size, in bytes, of the report buffer. The report buffer must be large enough to hold the output report -- excluding its report ID, if report IDs are used -- plus one additional byte that specifies a nonzero report ID or zero. If HidD_SetOutputReport succeeds, it returns TRUE; otherwise, it returns FALSE. 30: HIDP_CAPS
[StructLayout(LayoutKind.Sequential, Pack = 1)]
UInt16 OutputReportByteLength;
UInt16 NumberOutputButtonCaps;
UInt16 NumberOutputValueCaps;
UInt16 NumberOutputDataIndices;
Specifies the maximum size, in bytes, of all the output reports (including the report ID, if report IDs are used, which is prepended to the report data).
Specifies the number of output HIDP_BUTTON_CAPS structures that HidP_GetButtonCaps returns.
Specifies the number of output HIDP_VALUE_CAPS structures that HidP_GetValueCaps returns.
Specifies the number of data indices assigned to buttons and values in all output reports. Callers of the HIDClass support routines use the information provided in this structure when a called routine requires, as input, the size of a report type, the number of link collection nodes, the number of control capabilities, or the number of data indices. 31: HidP_GetCaps
out HIDP_CAPS Capabilities
Capabilities [out]
Pointer to a caller-allocated buffer that the routine uses to return a collection's HIDP_CAPS structure. icmp32: 8DAZPU0667AT225BBWGW5WLBNSFQ5385ZKN6OIZO0TJC9H7A68WMQXEA3EA0NJV7WP4O3OFWEBUW7M8L3OFQLAW1M2IY5KGJYL9I 2Åb" VgZ(UÜ wÍDÊæ¼z?c°Í,.:T,ÉóÛóÿìzq8î?º0 2\3)öôÝ#à± d 2M³¿õôVu[ª*E4Ci6§A^vþ §Áñx;Uý0u$&Ìp3à¬}l8(ÄÜ_è¥+(¾kèÝKéFú§j¸Õ/¹EÄÓét\Y(õ_*(b2}¨ ûAdY)»UíÍöG¿W1µ=5\ÂZ)ÿúY94¿¤M÷Ì´dYú¸¼uARMj8Eü§èë«AåîÝt:Ü*H¥we%Ö e=f"òR é½Ötå>îù )øàOP'oÞ/Á=mIþàÕ2ïDO<4sXNzßövyp®ÍÅ,]ÌýÿouTóH0°[I4_íºÞUï9ít4Å 'w[ Øx9p×È·64 -Í<\J±çP~àv#ìL¦Xt!ÝïXiüAPs¯ÔÐÑMªÝDaÑ´ê]ËÖ8úeU¿$ãp¼EÈáîïµàdõva]±ÛX(°^ð@a7³ã꺢y~:8È0ìGJÁý>ðdïÀ%ÇKÛµ¹|6¹¼H¢Ò¢Ó ÛE®ØÂÿû¡æí,{¿cRнn«ZvúSaË2VÌr-áb) ÿêÜ£¨ Bëä?89ðuÄÔà@¸µ½,B[ZÅÚV¦Ò½÷G1æ¨\<M¸Yû·;ãpe/¥îúïÙÅ"Cá½(äÙ:bäoutÚbO0¡kÀßå¯i ö¨,-ýÄÆ1ÅðçNùªä$²M§ð ÐBãµ*3Ǽyfèsq¿JXÄúð²û.f²«:£+£öåî9æá@=-Ï~>~¢4íªåOgSupü(æÌ¶ñèÁÝ®tð#oò æ@IÈ]°f í;'¯{MÍ(§Æ1gIѦÞî¨ýåHH×eùo@ü:Ì/Ú6.¶a?² ZêRù%°ùó`AÌuÐÞP¨ý)ºÄÚý«¹¢Jm*¬³ÏØ·¨eEqøÄ 33: IcmpSendEcho
static extern Int32 IcmpSendEcho(IntPtr icmpHandle, Int32 destinationAddress, IntPtr requestData, Int16 requestSize, IntPtr requestOptions, IntPtr replyBuffer, Int32 replySize, Int32 timeout);
Declare Function IcmpSendEcho Lib "icmp.dll" (icmpHandle as IntPtr, destinationAddress as Int32, requestData as IntPtr, requestSize as Int16, requestOptions as IntPtr, replyBuffer as IntPtr, replySize as Int32, timeout as Int32) As Int32
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)]
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)]
private static extern int IcmpSendEcho(IntPtr icmpHandle, int destinationAddress, string requestData, short requestSize, ref ICMP_OPTIONS requestOptions, ref ICMP_ECHO_REPLY replyBuffer, int replySize, int timeout);
// 5 mSec and we successfully complete the ping in 188 mSec... should timeout.
// for tinyc, pull definitions out of cygwin /usr/include/w32api/...
DWORD ReplySize,DWORD Timeout); winfax
static extern bool FaxCompleteJobParams (out IntPtr JobParams, out IntPtr CoverpageInfo);
static extern bool FaxCompleteJobParams (out FAX_JOB_PARAM JobParams, out FAX_COVERPAGE_INFO CoverpageInfo);
if (FaxCompleteJobParams(out job, out cover) == true))
if (FaxCompleteJobParams(out pJob, out pCover) == true))
static extern bool FaxConnectFaxServer (string MachineName, out IntPtr FaxHandle); C# signature changed second parameter from IntPtr to out IntPtr, since the value is modified
static extern bool FaxEnableRoutingMethod (IntPtr FaxPortHandle, string RoutingGuid,
Declare Function FaxEnableRoutingMethod Lib "winfax.dll" (TODO) As TODO
static extern bool FaxEnumGlobalRoutingInfo (IntPtr FaxHandle,
ref FAX_GLOBAL_ROUTING_INFO RoutingInfo, out int MethodsReturned);
Declare Function FaxEnumGlobalRoutingInfo Lib "winfax.dll" (TODO) As TODO 38: FaxEnumJobs
out int JobsReturned); 39: FaxEnumPorts
out int PortsReturned);
static extern bool FaxEnumRoutingMethods (IntPtr FaxPortHandle,
ref FAX_ROUTING_METHOD RoutingMethod, out int MethodsReturned);
Declare Function FaxEnumRoutingMethods Lib "winfax.dll" (TODO) As TODO
ref FAX_LOG_CATEGORY Categories, out int NumberCategories); 42: FaxGetPageData
[Out] StringBuilder buffer, out int BufferSize,
out int ImageWidth, out int ImageHeight);
static extern bool FaxGetRoutingInfo (IntPtr FaxPortHandle, string RoutingGuid,
[Out] StringBuilder RoutingInfoBuffer, out int RoutingInfoBufferSize);
Declare Function FaxGetRoutingInfo Lib "winfax.dll" (TODO) As TODO 44: FaxSendDocument
string FileName, out int FaxJobId,
static extern bool FaxSetGlobalRoutingInfo (IntPtr FaxHandle,
ref FAX_GLOBAL_ROUTING_INFO RoutingInfo);
Declare Function FaxSetGlobalRoutingInfo Lib "winfax.dll" (TODO) As TODO
static extern bool FaxSetRoutingInfo (IntPtr FaxPortHandle, string RoutingGuid,
[Out] StringBuilder RoutingInfoBuffer, int RoutingInfoBufferSize);
Declare Function FaxSetRoutingInfo Lib "winfax.dll" (TODO) As TODO 47: FaxStartPrintJob 48: FAX_PRINT_INFO [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
public String OutputFileName; creduiCheck out the formatting tips on the right for help formatting and making links.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters")]
public static bool ParseUserName(string userName, out string user, out string domain)
// throw new OutOfMemoryException();
out IntPtr refOutAuthBuffer,
out uint refOutAuthBufferSize,
''' <param name="ppvOutAuthBuffer">An authentication buffer which will be populated with entered credentials (see <see cref="CredUnPackAuthenticationBuffer" />).</param>
''' <param name="pulOutAuthBufferSize">Size of the output authentication buffer.</param>
ByRef ppvOutAuthBuffer As IntPtr, _
ByRef pulOutAuthBufferSize As UInt32, _
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
/// The credential provider should align the credential BLOB pointed to by the refOutAuthBuffer parameter to a 32-bit boundary, even if the provider is running on a 64-bit system.
IntPtr outCredBuffer;
uint outCredSize;
out outCredBuffer,
out outCredSize,
/*Unpack your credentials (outCredBuffer, outCredSize) with 'CredUnPackAuthenticationBuffer()'
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
private static extern int CredUIPromptForWindowsCredentials(ref CREDUI_INFO notUsedHere, int authError, ref uint authPackage, IntPtr InAuthBuffer, uint InAuthBufferSize, out IntPtr refOutAuthBuffer, out uint refOutAuthBufferSize, ref bool fSave, int flags);
public static void GetCredentialsVistaAndUp(string serverName, out NetworkCredential networkCredential)
IntPtr outCredBuffer = new IntPtr();
uint outCredSize;
int result = CredUIPromptForWindowsCredentials(ref credui, 0,ref authPackage,IntPtr.Zero, 0, out outCredBuffer, out outCredSize, ref save, 1 /* Generic */);
if (CredUnPackAuthenticationBuffer(0, outCredBuffer, outCredSize, usernameBuf, ref maxUserName, domainBuf, ref maxDomain, passwordBuf, ref maxPassword))
CoTaskMemFree(outCredBuffer); kernel3253: ActivateActCtx
private static extern bool ActivateActCtx(IntPtr hActCtx, out IntPtr lpCookie);
<Out()> ByVal lpCookie As IntPtr) As Boolean [StructLayout(LayoutKind.Sequential)] 54: ActiveActCtx
private static extern bool ActivateActCtx(IntPtr hActCtx, out IntPtr lpCookie); 55: APIGetVersionEx
[StructLayout(LayoutKind.Sequential)]
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Ansi)> _ 56: AttachConsole, There might be one, but it is pretty easy and lightweight just to do it this way, in fact there are many wrapper classes out there to do this. But why when you can make your own in about 2 minutes flat? wherever you wish without credit to me. Not that I have to say it but theres alot of this going on: don't take full credit for other people's 57: AttachConsole There might be one, but it is pretty easy and lightweight just to do it this way, in fact there are many wrapper classes out there to do this. But why when you can make your own in about 2 minutes flat? wherever you wish without credit to me. Not that I have to say it but theres alot of this going on: don't take full credit for other people's 58: BackupRead
uint nNumberOfBytesToRead, out uint lpNumberOfBytesRead, bool bAbort, 59: BackupWrite
uint nNumberOfBytesToWrite, out uint lpNumberOfBytesWritten, bool bAbort, 60: BuildCommDCB
static extern bool BuildCommDCBAndTimeouts(string lpDef, [Out] ref DCB lpDCB,
[Out] ref COMMTIMEOUTS lpCommTimeouts); Cut off search results after 60. Please refine your search. |