Board logo

標題: VB6如何限制畫面複製功能(printScreen)? [打印本頁]

作者: awen8250    時間: 2015-11-8 13:16     標題: VB6如何限制畫面複製功能(printScreen)?

請教大家: 很急...

目前想針對各個系統來限制畫面複製功能(printScreen),也就是說:有的系統可以printScreen,有的系統不行,
重點是USER會同時開啟多個系統在電腦上,所以用以下程式是無法做到 : 有的系統printScreen,有的系統不行。

Private Declare Function SetWindowsHookEx Lib "user32" Alias "SetWindowsHookExA" _
(ByVal idHook As Long, ByVal lpfn As Long, ByVal hMod As Long, ByVal dwThreadId As Long) As Long

Private Declare Function UnhookWindowsHookEx Lib "user32" (ByVal hHook As Long) As Long

Private Declare Function CallNextHookEx Lib "user32" _
(ByVal hHook As Long, ByVal nCode As Long, ByVal wParam As Long, ByVal lParam As Long) As Long

Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer

Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" _
(Destination As Any, Source As Any, ByVal Length As Long)

請問VB6該如何做到?能用判斷USER是否按下printScreen鍵來判斷嗎?
有範例程式可參考嗎?
拜託幫忙,謝謝!




歡迎光臨 麻辣家族討論版版 (http://forum.twbts.com/)