// Déclaration de la DLL [DllImport("dwmapi.dll", PreserveSig = false)] public static extern int DwmEnableComposition(bool fEnable); // Désactivation d'Aero DwmEnableComposition(false);
// Déclaration de la DLL function DwmEnableComposition(fEnable: Boolean): Integer; stdcall; external 'dwmapi.dll'; // Désactivation d'Aero DwmEnableComposition(False);
<DllImport("dwmapi.dll", PreserveSig := False)> _ Shared Function DwmEnableComposition(ByVal fEnable As Boolean) As Integer End Function Public Shared Sub EnableAero(ByVal value As Boolean) DwmEnableComposition(value) End Sub