[]
        
(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 nint 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
nint

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