hispeed_mike Posted May 12, 2010 Posted May 12, 2010 Hi All, first dll call and I am just strgling to get me head around the conversion from VB to autoit and how to structure the call. I am trying to show the Turn Off Computer Dialog from XP. I cannot use the standard dialog windows uses as it has the shutdown option and we have modified the gina to only allow the restart button and some custom text we have injected. Here is the VB script: 'System & API - How to Show Shutdown Dialog Private Declare Function SHShutDownDialog Lib "shell32" Alias "#60" (ByVal YourGuess As Long) As Long Private Sub Main() SHShutDownDialog 0 End Sub How Do I get it into a dllcall for autoit? I have read the Help and multiple examples but I just don't get it. All help appreciated, thanks in advance.
wolf9228 Posted May 12, 2010 Posted May 12, 2010 (edited) Hi All, first dll call and I am just strgling to get me head around the conversion from VB to autoit and how to structure the call. I am trying to show the Turn Off Computer Dialog from XP. I cannot use the standard dialog windows uses as it has the shutdown option and we have modified the gina to only allow the restart button and some custom text we have injected. Here is the VB script: 'System & API - How to Show Shutdown Dialog Private Declare Function SHShutDownDialog Lib "shell32" Alias "#60" (ByVal YourGuess As Long) As Long Private Sub Main() SHShutDownDialog 0 End Sub How Do I get it into a dllcall for autoit? I have read the Help and multiple examples but I just don't get it. All help appreciated, thanks in advance. ;Private Declare Function SHShutDownDialog Lib "shell32" _ ;Alias "#60" (ByVal lType As Long) As Long SHShutDownDialog() Func SHShutDownDialog() $BOOL = DllCall("shell32.dll","int",60,"int",0) if @error Then Return 0 Return $BOOL[0] EndFunc Edited May 12, 2010 by wolf9228 صرح السماء كان هنا
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now