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
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

Search Results for "TCITEM" in [All]

user32

.

    struct TCITEM

.

Declare Function TCITEM Lib "user32.dll" (TODO) As TODO

.

    TCITEM tcitem = new TCITEM();

.

    tcitem.size = 200;

.

    IntPtr tcitemPtr = VirtualAllocEx(process, IntPtr.Zero, (uint)Marshal.SizeOf(typeof(TCITEM)), AllocationType.Commit, MemoryProtection.ReadWrite);

.

    tcitem.mask = TCIF_STATE | TCIF_TEXT;

.

    tcitem.text = pszTextPtr;

.

    IntPtr ptr = Marshal.AllocHGlobal(Marshal.SizeOf(tcitem));

.

    Marshal.StructureToPtr(tcitem, ptr, true);

.

    tcitem.size = 1; // ├╝berschrieben

.

    WriteProcessMemory(process, tcitemPtr, ptr, Marshal.SizeOf(tcitem), IntPtr.Zero);

.

    int res = SendMessage(handle, TCM_GETITEMA, index, tcitemPtr);

.

    ptr = Marshal.AllocHGlobal(Marshal.SizeOf(tcitem));

.

    ReadProcessMemory(process, tcitemPtr, ptr, (int)Marshal.SizeOf(tcitem), out bytesReaded);

.

    tcitem = (TCITEM)Marshal.PtrToStructure(ptr, tcitem.GetType());

.

    VirtualFreeEx(process, tcitemPtr, 0, FreeType.Release);

.
Documentation
[TCITEM] on MSDN

 
Access PInvoke.net directly from VS: