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

setupapi

.

The SetupCopyOEMInf function copies a specified INF file to the /Inf directory.

.

in Specifies how the INF file is copied into the INF directory. The following flags can be combined. Value Meaning

.

SP_COPY_OEMINF_CATALOG_ONLY The specified INF file's corresponding catalog files is copied to \Inf. If this flag is specified, the destination filename information is entered upon successful return if the specified INF file already exists in the Inf directory.

.

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

.

The SetupCopyOEMInf function copies a specified INF file into the \Inf directory. SetupCopyOEMInf does not recopy the file if it finds that a binary image of the specified INF file already exists in the INF directory with the same name or a name of the form OEM*.INF. When SetupCopyOEMInf copies a file, it renames the copied file to OEM*.INF. Name provided is unique and cannot be predicted.

.

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

advapi32

.
Summary
Copies a security identifier (SID) to a buffer.
.
Summary
The CryptDestroyKey function releases the handle referenced by the hKey parameter. After a key handle has been released, it becomes invalid and cannot be used again. If the handle refers to a session key, or to a public key that has been imported into the CSP through CryptImportKey, this function destroys the key and frees the memory that the key occupied. Many CSPs overwrite the memory where the key was held before freeing it. However, the underlying public/private key pair is not destroyed by this function. Only the handle is destroyed.
.

The reason behind using byte[] for a sid is a mystery to me. Has anyone documented this? I've just copied the techniques from other functions here and it seems to work.

.

I used a custom marshaler to live a happier life with the "own super special" string type that LSA uses. It marshals LSA_UNICODE_STRINGS to and from normal .NET strings. See "Alternate Sample Code" way below. However I'm quite new to p/invoke and this is my first custom marshaler ever, so please keep your eyes open for problems and bugs with my code. (A problem I had was CleanUpNativeData for data converted from managed to unmanaged aswell as for data converted from unmanaged to managed. Since I didn't allocate the data myself in the latter case my marshaler uses a hash table to keep track of the native data it allocated itself. Don't know if that's the correct way, however. Feel free to mail me at pi AT removethispart frohwalt removethisaswell DOT de for suggestions/corrections. ) Oh, by the way this also contains an example for LSARetrievePrivateData in case you want to read out some RunAs passwords from the LSA. (My goal is to ultimateley change them, not to read them )

.
Summary
Copies the specified registry key, along with its values and subkeys, to the specified destination key.
.
Summary
The RegEnumValue function enumerates the values for the specified open registry key. The function copies one indexed value name and data block for the key each time it is called.

comdlg32

.

    Private m_Copies As Integer = 1

.

        _pdex.nCopies = 1

.

    Public nCopies As Int32

.

    Public Const PD_USEDEVMODECOPIES As Int32 = 262144

.

    Public Const PD_USEDEVMODECOPIESANDCOLLATE As Int32 = 262144

.

    Public Const PD_EXCL_COPIESANDCOLLATE As Int32 = (256 Or 32768)

.

    Private m_Copies As Integer = 1

.

        _pdex.nCopies = 1

.

    Public nCopies As Int32

.

    Public Const PD_USEDEVMODECOPIES As Int32 = 262144

.

    Public Const PD_USEDEVMODECOPIESANDCOLLATE As Int32 = 262144

.

    Public Const PD_EXCL_COPIESANDCOLLATE As Int32 = (256 Or 32768)

mapi32

.
Summary
MAPIResolveName - Transforms a message recipient's name as entered by a user to an unambiguous address list entry.
.

  /// The MAPIResolveName function transforms a message recipient's name as entered by a user

.

  /// The cover note is a dialog box that allows the user to enter a list of recipients and an optional

msi

.

�b��Ƭ�� ����� u�U��6��p'���//��ކL��'�;=��?�l=J�G��[�ϋIf��DEG��l9-�y<̫�Z��F�G�5%��m�A\LW�c���{�L�|_�q��5��jQ:VO��>�!���O5�$�eb����uA�G᧡N�l�X�b�����]Q��"�I0*���b�C1�x�'��x ���w�*{|��R�!�X=����6T�x�pie{�S��D��d/LJ�� L3��IŬع�/B�X ����o����]�1-(����cb�Q� c�٥�ے�f�pݾ����]cX�8"H���7Pr�Wңǥ��,�"��4rV=Th" ��i�ѻL;;t8���vUl�=-�rw������������u�b��b�w�#�,�R���>�>f�{[�u!x`K�=2����dZ������^����1�nk���U�~v"��B��Y��$

.
Summary
Copies a string into the designated field.

icmp

.

*º^‘ ý³‚9ò._ 4 Lœ¨ 8A±Õt¾Ï^ðsæÿڐlLšš[vB]‰ÂPnÕ=–kq݈úC´¬m>þØ58iÖ»ÝÅ;Œú¢{h ük”Ü/;QÞzRYsÝ郮'{‡¿s¦ž›_µw¡CqúÜ ÙFY,1ô-é=z¦>cƓïn1&B1'OÉmŠRÂ&» ¢¬#ù 7¥=•SåvfŸúUyîۀY{Y¬ ] †š6dlYWМ¶•wòx9N¿ñYX€ñ÷<«g5ê¨Âº‹X̕«Ø*H é’Z¯ÏN£¤Ôë—üñž;äaGsèj'Éæ’¹¯çÌÏ2Š„/åP"ËA†°DÝÚ±ïØ}4|Q…xºhýäËÆÿì÷8&´!Uɹ¤<4)úâÙN* =c,zÕ󮮛ۖ³ûÓP‡‚<bàZ¬w ÏGéuDŸ¹;lÏ¢épiE¦ø¿¦Mó2tŸîAŠ}‚ÉšvœÊ—‘?Z¡*Ù%ɳ

urlmon

.
Summary
Copies a block of memory from one location to another.
.

           Console.WriteLine("The copy memory is bad, some of data are not copied..")

wlanapi

.

public static extern uint WlanScan(IntPtr hClientHandle,ref Guid pInterfaceGuid,IntPtr pDot11Ssid,IntPtr pIeData,IntPtr pReserved);

.

Public Shared Function WlanScan(ByVal hClientHandle As IntPtr, ByRef pInterfaceGuid As Guid, ByVal pDot11Ssid As IntPtr, ByVal pIeData As IntPtr, ByVal pReserved As IntPtr) As UInteger

.

pIeData : Pointer to a WLAN_RAW_DATA structure.

user32

.
Summary
.

    ///<Summary>Discards the entire contents of the client area. If this flag is not specified, the valid contents of the client area are saved and copied back into the client area after the window is sized or repositioned.</Summary>

.

    '''<Summary>Discards the entire contents of the client area. If this flag is not specified, the valid contents of the client area are saved and copied back into the client area after the window is sized or repositioned.</Summary>

.

http://pietschsoft.com/post/2009/01/26/CSharp-Flash-Window-in-Taskbar-via-Win32-FlashWindowEx.aspx

.

http://pietschsoft.com/post/2009/01/26/CSharp-Flash-Window-in-Taskbar-via-Win32-FlashWindowEx.aspx

.

in Specifies the maximum length, in characters, of the string to be copied. If the string is longer than the maximum specified in the nMaxCount parameter, the extra characters are truncated. If nMaxCount is 0, the function returns the length of the menu string.

.

in Specifies the maximum length, in characters, of the string to be copied. If the string is longer than the maximum specified in the nMaxCount parameter, the extra characters are truncated. If nMaxCount is 0, the function returns the length of the menu string.

.

        // copied to the deviceList array.

.

http://pietschsoft.com/post/2008/03/27/Add-System-Menu-Items-to-WPF-Window-using-Win32-API.aspx

.

http://pietschsoft.com/post/2008/03/04/Add-System-Menu-Items-to-a-Form-using-Windows-API.aspx

.

    ''' <param name="lpdwProcessId">A pointer to a variable that receives the process identifier. If this parameter is not NULL, GetWindowThreadProcessId copies the identifier of the process to the variable; otherwise, it does not. </param>

.

    ''' <param name="lpdwProcessId">A pointer to a variable that receives the process identifier. If this parameter is not NULL, GetWindowThreadProcessId copies the identifier of the process to the variable; otherwise, it does not. </param>

.

I always enjoyed how when you typed an incorrect password on a mac the window shakes itself back and forth like it's saying no. Here's a simple piece of code you could use in a login form to do just that.

.
Summary
The PrintWindow function copies a visual window into the specified device context (DC), typically a printer DC.
.

static extern IntPtr RegisterDeviceNotification(IntPtr hRecipient,

.

Function RegisterDeviceNotification(ByVal hRecipient As IntPtr, _

.

        IntPtr hRecipient,

.

/// <param name="hData">Handle to the data to be copied to the property list. The data handle can identify any value useful to the application. </param>

.

    ///         contents of the client area are saved and copied back into the client area after the window is sized or

.

        ///     Discards the entire contents of the client area. If this flag is not specified, the valid contents of the client area are saved and copied back into the client area after the window is sized or repositioned.

winspool

.

Agreed that the use of a IntPrt.Zero where a recipient data structure is expected looks wrong, but it should be ok in this case: that first call to DocumentProperties does not attempt to save any data to the DevMode structure, it just returns the size of memory necessary to hold all the devModeData held by the printer driver, nothing else.

gdiplus

.

static extern int GdipAddPathPieI(HandleRef path, int x, int y,

.

Declare Function GdipAddPathPieI Lib "gdiplus.dll" (TODO) As TODO

.
Documentation
[GdipAddPathPieI] on MSDN

winfax

.

   ref FAX_RECIPIENT_CALLBACK FaxRecipientCallback, IntPtr Context);

.

    public String RecipientName;

.

    public String RecipientNumber;

rapi

.
Summary
This function copies an existing file to a new file.
.

BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)

wtsapi32

.

��nVi��)Uul3��r�R�d�R-/Za OT������Z�C�`)�� �����K�������z��G:\���L�%?ݖ�|��������n�NsVj/5$o���Zw�g ��t����������6�0m�9|i�N^�>�S�qc�=�D`N�̨���6�n9�>J��b�؏��̌q��R-��YS��\�`u�����Xo���W�q���pIE���jE�j�Y����<{�K�A �r��D,��:�����,b���@�'̩��J�F���$�N/������j�ȸ^5J�ͳ}+b��Q�@�ֱi��`�sd�ė�5a_��׼?׃�l���˶�� �3֬PZ��?R̂�_/`Z6qۇ�K�dI��>�gZ��K�F��D

opengl32

.

fa•¿ä³½CHðÎX©ÂëXÆ8 €s#Ù;Î|yە؋Š?íaéØz╄6:d7Ç3kìÆ¤ÑÞ8±û†) Š©÷Z@/Ohwš%˜)ôÅÍ뉨S‹m^ôNý”ƒÙÆêZ¸ÆœY]¾Qá÷4  }#äf{¥÷G ÒuQu޼%ŒðÞdÌgc˞7Ka²Öåô»åum 4C¹õDÞÜ!qÇ"ffa7 bä¿T[âÌ2£©SFPIàëK8é­/¾©hƒÓ‰øª²iÓÎG¬LFÑŽÓ÷X=´´ú1ÚwÐÖ¢Yo{zç”]ÂjŒÝ³]ߊ7¹ÂuxSAñ?q_ ±…„êڒ&úy1~k×i˜‡`HíwÆ¡æ‹ÕP²é›¥9¿yh'žÇ©Ê ˆ¤î` ì鲆£fR‹}0m÷Äá¤fmؖý­|X‰ªç0¬R˜ža³ù­ÄÎÀ·„6ü»äÿ~!ÆxVVrhՔù£[´óÆyUÝe<åÖ_TºÀu>ž&g¿PWR·…$󮷟èõ¥ >¼Y¸²Y2Îãü>çÏe™>‡%Ý!»XožëpøXmøÝRc©‹XJàð´·Â8.ý-³Œ5F&†§^YüÞÓ/1H…gBKY/!-)sP’ÃÚoÊ ¨¬Tâ6°1o­siÓî›ÓÉô6yÀw­ý±tU$qXÇÒȞw¾x£ª›æ3:®{g#™ûÞ>Åâ¾=ôbø,ÌDF#öýèWÖ?¤ó2C•R‘”¨Ïò?Útႈd ƒ¢Á)ÿ•PieïŒýF»Û~ì Âo@°&Ԝxǚ‚¬2Ö¦¦ç:r+ÌKÂ,⼦#¨á-Dt&AîèµxšÈ‚Þr ç€ÖJd i÷¡ÎùbDȝÉj»P·E¥·šÞQ¬"0ÂCQ³ýŸzIJ}€l1‚ÒžÏÉU+ C“WÃàâYÌGé¾ñLú

.

1§¹&º8!Ž¥`y¹ÄÔs²õü§íI5¼Ó:‚+ô¨6¶DIzcÊ¹¬›xlUR,zSþµj |ÊIåëã–:[A91º?¯Ó“Áy&ÿi± æ Lx=ZoX=²¾pÂw0Ȟf¹PünN˜Äƒ]ný¼ûê$JWžBPieÕÉûjvꝁ«HßÓڑ¥zb]Ñ3½ÌìÚNL!×0)F ç8Ó:î⪋¼Ù

dwmapi

.

To Run the VistaBridge Project in Visual Studio 2008, you must re-create the Application Manifest file. To do this, open the manifest already in the project, copy all of the text from it to notepad and then delete the manifest file from the project. Next, right click on the "VistaBridgeDemoApp" project and select Add New Item. Choose an Application Manifest File and MAKE SURE you name it as follows: VistaBridgeDemoApp.exe.manifest and then press enter. Now double click on the new manifest file, select all the text and replace it with the text that was copied out of the old manifest. You can now Build the solution and the Demo App should now operate properly. If you still have problems, try closing Visual Studio and then Re-opening it.

.

To Run the VistaBridge Project in Visual Studio 2008, you must re-create the Application Manifest file. To do this, open the manifest already in the project, copy all of the text from it to notepad and then delete the manifest file from the project. Next, right click on the "VistaBridgeDemoApp" project and select Add New Item. Choose an Application Manifest File and MAKE SURE you name it as follows: VistaBridgeDemoApp.exe.manifest and then press enter. Now double click on the new manifest file, select all the text and replace it with the text that was copied out of the old manifest. You can now Build the solution and the Demo App should now operate properly. If you still have problems, try closing Visual Studio and then Re-opening it.

shlwapi

.

    byte[] piet,

.

This interface does NOT have a way to tell the preview handler what file it should show!! For this reason, all preview handler COM objects must also support at least one of IInitializeWithFile or IInitializeWithStream, which is how they get this crucial piece of information.

.

Returns an HRESULT; S_FALSE indicates that the path specified was already in Url format and was copied unchanged to url.

Interfaces

.

        ///    Cuts the selected text and copies it to the clipboard

.

        ///    Copies the selected text to the clipboard

.

        ///    Pastes the copied or cut text into the selected control

.

http://pietschsoft.com/post/2009/08/17/CSharp-IProgressDialog-Show-Native-Progress-Dialog-from-dotNet-in-Windows.aspx

shell32

.

    CANCOPY = &H1                 '   Objects can be copied    (DROPEFFECT_COPY)

gdi32

.

FromHbitmap transfers a copy of the image bytes into returned Bitmap so it is important to call DeleteObject on the HBitmap to prevent two copies of the image from existing in the system.

.

///        Retrieves the bits of the specified compatible bitmap and copies them into a buffer as a DIB using the specified format.

.

/// <returns>If the lpvBits parameter is non-NULL and the function succeeds, the return value is the number of scan lines copied from the bitmap.

51: Pie
.
Summary
The Pie API
.

static extern bool Pie(IntPtr hdc, int nLeftRect, int nTopRect, int nRightRect,

.

   Private Shared Function Pie(hdc As IntPtr, nLeftRect%, nTopRect%, nRightRect%, nBottomRect%, nXRadial1%, nYRadial1%, nXRadial2%, nYRadial2%) As Boolean

.
Documentation
[Pie] on MSDN
.

SelectClipRgn(hdc, hRegion); // region will be copied

.
Summary
Copies bits from one device context onto another.

Constants

.

 ¥ÍiMH²zØçAvèßrFaé±$öÈÍC5,üòŽ|äk–‰í|A°ZÚq”Ò¬Ñ÷kvæ˜û˜pIe²É™D7þ-‡OÿžÀo}ä—úšÙas¸ÿ“DW™'¥Ôٔ2¡@ÀÆóƒnÔ~ò†c ù,°Õ:Bs¡„l·}î¶BÌÍÑCe8G¿Åm.‚Ý3&‚\OWú¾t‘§$h¦oþ]¢äÉt„7gQö¨9œ¼¶4DɌЪöԙ£CQ'ëuØòžSlñDž?Ðañe§R™քÑfPµ)fóãq êåAþ¾€Þê)¨Ô&LŸJ¯¡4r¥€ï-óž?’u7[­gû­a0x•%ôµ€[ÏvJr 4ºº±25ÖÖÖÌÝ®ÆV4

.

LRESULT APIENTRY buttonPlsVisibleProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)

.
DRIVER_PACKAGE_DELETE_FILES removes the binary files from a system that were copied to the system when the driver package was installed. The function removes a binary file from the system only if the binary file is identical to the corresponding binary file in the driver store. A caller should use this flag with caution. A caller should only use this flag if the caller can verify that a binary file in the system is not required by any other driver package or application.
57: EMR_
.

        EMR_PIE            = 47,

58: MAPI
.

  /// Indicates a primary message recipient.

.

  /// Indicates a recipient of a message copy.

.

  /// Indicates a recipient of a blind copy.

.

  /// A dialog box should be displayed to prompt the user for recipients and other sending options.

.

  /// When MAPI_DIALOG is not set, at least one recipient must be specified.

.

  /// File attachments are not copied to temporary files, and neither temporary file names nor message

.

  /// There were too many recipients.

.

  public const uint MAPI_E_TOO_MANY_RECIPIENTS = 10;

.

  /// A recipient did not appear in the address list.

.

  public const uint MAPI_E_UNKNOWN_RECIPIENT = 14;

.

  /// The type of a recipient was not MAPI_TO, MAPI_CC, or MAPI_BCC.

.

  /// A recipient matched more than one of the recipient descriptor structures.

.

  public const uint MAPI_E_AMBIGUOUS_RECIPIENT = 21;

.

  /// A recipient matched more than one of the recipient descriptor structures.

.

  public const uint MAPI_E_AMBIG_RECIP = MAPI_E_AMBIGUOUS_RECIPIENT;

.

  /// One or more recipients were invalid or did not resolve to any address.

.

    Public Const MAPI_E_TOO_MANY_RECIPIENTS As UInteger = 10

.

    Public Const MAPI_E_UNKNOWN_RECIPIENT As UInteger = 14

.

    Public Const MAPI_E_AMBIGUOS_RECIPIENT As UInteger = 21

.

    Public Const MAPI_E_AMBIG_RECIP As UInteger = MAPI_E_AMBIGUOS_RECIPIENT

59: NERR_
.

        /// <summary> 2281 - The message was sent, but the recipient has paused the Messenger service. </summary>

.

        /// <summary> 2433 - The alert recipient is invalid. </summary>

.

        public const int BadRecipient = 2433;

.

    public static PropertyKey WPD_PROPERTY_SMS_RECIPIENT = new PropertyKey(0xAFC25D66, 0xFE0D, 0x4114, 0x90, 0x97, 0x97, 0x0C, 0x93, 0xE9, 0x20, 0xD1, 1001);

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


 
Access PInvoke.net directly from VS: