How to copy data at a location pointed by IntPtr
Hi all,
I am new to C# i have to copy these following things into IntPtr
IntPtr hMapFile = CreateFileMapping(INVALID_HANDLE_VALUE, IntPtr.Zero, PageProtection.PAGE_READWRITE, 0, lSize, sMapObject);
if (!IntPtr.Zero.Equals(hMapFile))
{
IntPtr pMem = MapViewOfFile(hMapFile, AccessTypes.FILE_MAP_WRITE, 0,0,0);
IntPtr pMem1 = pMem;
int iArraySize = (sbCtrlInfoString.Length + Marshal.SizeOf(rcRect) + 1);
if (pMem != IntPtr.Zero)
{
// here at first i have to copy RECT info into IntPtr and then
// One stringbuilder String of a specified length after RECT
}
AnyOne please Reply me, i am in troubles.
|