System::Runtime::InteropServices::Marshal::StringToHGlobalAnsi method

Marshal::StringToHGlobalAnsi method

Copies the contents of a specified string into unmanaged memory.

static IntPtr System::Runtime::InteropServices::Marshal::StringToHGlobalAnsi(const String &s)
ParameterTypeDescription
sconst String&A string to be copied.

ReturnValue

The address, in unmanaged memory.

See Also