代码之家  ›  专栏  ›  技术社区  ›  Kishore Kumar

如何在WPF中运行应用程序时禁用“打印屏幕”按钮?

  •  7
  • Kishore Kumar  · 技术社区  · 15 年前

    当我的WPF应用程序运行时,如何禁用打印屏幕功能?

    使用案例是,我的客户希望避免从外部世界不必要地复制有价值的以患者为中心的数据,他们提供物理安全性,以防止人们通过非数字方式获取数据。

    8 回复  |  直到 15 年前
        1
  •  4
  •   Community Mohan Dere    9 年前
        2
  •  5
  •   Jodrell    13 年前

    http://pinvoke.net/default.aspx/user32.RegisterHotKey http://msdn.microsoft.com/en-us/magazine/cc163713.aspx

    IDHOT_SNAPDESKTOP Window_Load Window_Closed WindowInteropHelper(this)

    HwndSource source = HwndSource.FromHwnd(<handle>);
    source.AddHook(<WndProc>);
    


    EnsureHandle()

        3
  •  1
  •   Dpedrinha    9 年前

    Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().IsScreenCaptureEnabled = false;
    
        4
  •  0
  •   MSalters    15 年前

        5
  •  0
  •   Community Mohan Dere    9 年前
        6
  •  0
  •   akjoshi HCP    15 年前

        7
  •  0
  •   Pradeep    15 年前
        8
  •  0
  •   Ferruccio    15 年前