I need help to disable "windows"

BlitzPlus Forums/BlitzPlus Beginners Area/I need help to disable "windows"

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

how can i disable the "Windows" button
when my game is on?

while my game is on
exccept my gaming buttons(say arrow buttons)
all other buttons (Windows,
Windows+E,Ctrl+Alt+Del)

shold not function at all

how can i achieve this ?

;=============================
some one gave me the below code:

HWND hTrayWnd = FindWindow("Shell_TrayWnd","")
HWND hStartWnd = GetTopWindow(hTrayWnd)

//Disable start button
EnableWindow(hStartWnd, FALSE)

//Remember to enable it when done:-
EnableWindow(hStartWnd, TRUE)

P.S. If you havent realised, you can use userlibs with the above WinAPI commands in Blitz to acheive the same!
;====================


can anyone pliz tell me how to use this in my game?
(for i never used userlibs and i dont know how to use)

(is there any other simple way?)
(PLIZ HELP ME)

;;;;a part of my game
graphics 800,600

setbuffer backbuffer()

startGame()

function startGame()

a = false
DisableWindows()
while not a


;;;;;gaming codes
;;;;;;;text 10,10,"Help Me, Pliz"

if keyhit(1)
a = true
EnableWindows()
end
endif


flip
cls

wend

end function