Jump to content

hello with dll call


Hello12345
 Share

Recommended Posts

this dll is located at http://codeproject.com with a gui, that also has the source code for the gui.

attached is the dll and the source from the site for the c gui.

$open=DllOpen("WinLockDll.dll")
DllCall($open,'int:cdecl',"StartButton_Show_Hide")                                                                  
ConsoleWrite('@@ Debug(2) : DllCall($open,''Int'',"StartButton_Show_Hide") = ' & DllCall($open,'Int',"StartButton_Show_Hide") & @lf & '>Error code: ' & @error & @lf) ;### Debug Console
Sleep(1000)

this as far as i got but cannot get the functions to work.

any help is appreciated

thanks

WinLockDll.dll

WinLockEXE.c

Edited by Hello12345
Link to comment
Share on other sites

try next test script :

;Hide StartButton
DllCall("WinLockDll.dll", "Int", "StartButton_Show_Hide", "Int", "0")

Sleep(5000)

DllCall("WinLockDll.dll", "Int", "StartButton_Show_Hide", "Int", "1")

Sleep(1000)

;Hide Clock
DllCall("WinLockDll.dll", "Int", "Clock_Show_Hide", "Int", "0")

Sleep(5000)

DllCall("WinLockDll.dll", "Int", "Clock_Show_Hide", "Int", "1")

Sleep(1000)

;Hide Desktop
DllCall("WinLockDll.dll", "Int", "Desktop_Show_Hide", "Int", "0")

Sleep(5000)

DllCall("WinLockDll.dll", "Int", "Desktop_Show_Hide", "Int", "1")

Sleep(1000)

;Hide Taskbar
DllCall("WinLockDll.dll", "Int", "Taskbar_Show_Hide", "Int", "0")

Sleep(5000)

DllCall("WinLockDll.dll", "Int", "Taskbar_Show_Hide", "Int", "1")

Sleep(1000)

;Disable CrtlAltDel
DllCall("WinLockDll.dll", "Int", "CtrlAltDel_Enable_Disable", "Int", "0")

Sleep(5000)

DllCall("WinLockDll.dll", "Int", "CtrlAltDel_Enable_Disable", "Int", "1")

Sleep(1000)

DllCall("WinLockDll.dll", "Int", "Process_Desktop", "str", "MyDesktop2", "str", "Calc.exe")
Edited by FeReNGi
Link to comment
Share on other sites

  • 3 years later...

;Disable CrtlAltDel
DllCall("WinLockDll.dll", "Int", "CtrlAltDel_Enable_Disable", "Int", "0")
MsgBox(0, 'Pause', 'Ctrl Alt Del has been disable')
DllCall("WinLockDll.dll", "Int", "CtrlAltDel_Enable_Disable", "Int", "1")

This code does disable the ctrl+alt+del combination, but it will only enable the combination on next reboot. Anyone has a working workaround?

AUTOIT[sup] I'm lovin' it![/sup]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...