|
|
||
|
|
| MarshalStringsAs is an option to DefineDLLFunction that specifies how string arguments should be marshaled into the DLL function. This applies to any arguments that are mapped to the System.String class, which includes types specified in your declaration as |
| "ANSI" | strings will be sent as single-byte C-style strings (default) | |
| "Unicode" | strings will be sent as 2-byte Unicode strings | |
| Automatic | strings will be sent in the platform's default format |