[DllImport("netapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)] public static extern uint NetUserModalsSet( string ServerName, uint Level, ref USER_MODALS_INFO_0 Buffer, out uint ParmError );
Microsoft documentation: Link
Last updated 2 months ago