The fields of the StructLayoutAttribute class are listed below. For a complete list of StructLayoutAttribute class members, see the StructLayoutAttribute Members topic.
CharSet | Indicates how string data members within the class should be marshaled. If the CharSet field is set to the CharSet value Unicode, all string arguments are converted to Unicode characters before being passed to the unmanaged implementation. If the field is set to Ansi, the strings are converted to ANSI strings. If the CharSet is set to Auto, the conversion is platform dependent (Unicode on WinNT and ANSI on Win 9x). |
CheckFastMarshal | [To be supplied.] |
Pack | Indicates the packing size that should be used when the System.Runtime.InteropServices.Value Sequential value is specified. The default packing size is 4. |
StructLayoutAttribute Class | System.Runtime.InteropServices Namespace