12 private class SafeNativeMethods
14 private SafeNativeMethods()
18 [DllImport(
"user32.dll",
CharSet =
CharSet.Auto, ExactSpelling =
true)]
19 internal static extern bool MessageBeep(
int type);
22 private int soundType;
26 this.soundType = soundType;
32 IntSecurity.UnmanagedCode.Assert();
35 SafeNativeMethods.MessageBeep(soundType);
SecurityAction
Specifies the security actions that can be performed using declarative security.
Defines the underlying structure of all code access permissions.
CharSet
Dictates which character set marshaled strings should use.
static void RevertAssert()
Causes any previous M:System.Security.CodeAccessPermission.Assert for the current frame to be removed...