salve a tutti ho un altro programmino in testa e vorrei poter bloccare mouse e tastiera per evitare che qualcuno usi il mio pc a casa e x questo sto usando questo codice


codice:
Public Class Form1
    Private Declare Function BlockInput Lib "user32" (ByVal fBlock As Long) As Long
    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        On Error Resume Next
        ProgressBar1.Value = ProgressBar1.Value + "1"
        BlockInput(True)
        If ProgressBar1.Value = "100" Then
            BlockInput(False)
            Timer1.Enabled = False

        End If
    End Sub

Ma questo codice in esecuzione mi da una sorta di errore

codice:
A call to PInvoke function 'Logitech SetPoint Speed!WindowsApplication1.Form1::BlockInput' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.
Grazie a tutti e ancora buona domenica