[]
        
(Showing Draft Content)

C1.Util.DX.DXUtil.StringToHGlobalAnsi

StringToHGlobalAnsi Method

StringToHGlobalAnsi(string)

Copies the contents of a managed String into unmanaged memory, converting into ANSI format as it copies.

Declaration
public static IntPtr StringToHGlobalAnsi(string s)
Public Shared Function StringToHGlobalAnsi(s As String) As IntPtr
Parameters
Type Name Description
string s

A managed string to be copied.

Returns
Type Description
IntPtr

The address, in unmanaged memory, to where s was copied, or IntPtr.Zero if s is null.