L
Larry Smith
Hi there,
I need to initialize the first character to (binary) zero in a buffer
returned via "Marshal.AllocCoTaskMem()". This is ultimately going to be
assigned to an LPTSTR pointer inside a Win32 structure (for subsequent
passing to a Win32 function). Can someone show me how to actually assign
this zero (C null terminator) from the "IntPtr" returned from the latter
function (with emphasis on the fact that I'm dealing with a TCHAR from
Win32 - could be one or two characters that need to be zeroed IOW) . Thanks.
I need to initialize the first character to (binary) zero in a buffer
returned via "Marshal.AllocCoTaskMem()". This is ultimately going to be
assigned to an LPTSTR pointer inside a Win32 structure (for subsequent
passing to a Win32 function). Can someone show me how to actually assign
this zero (C null terminator) from the "IntPtr" returned from the latter
function (with emphasis on the fact that I'm dealing with a TCHAR from
Win32 - could be one or two characters that need to be zeroed IOW) . Thanks.