Sign in to follow this  
Followers 0
Hello12345

hello with dll call

5 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

there you go

$dll = DllOpen("WinLockDll.dll")
; Hide Start button
DllCall($dll, "int", "StartButton_Show_Hide", "int", "Hide_StartButton")
Sleep(1000)
; Show Start button
DllCall($dll, "int", "StartButton_Show_Hide")
Edited by CWorks

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

Thanks.

they both work.

Share this post


Link to post
Share on other sites

;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]

Share this post


Link to post
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
Sign in to follow this  
Followers 0