Here's my stored procedure

Code:
CREATE PROCEDURE Login
/*
(
parameter1 INT
OUT parameter2 datatype
)
*/
BEGIN

SELECT        COUNT(*) AS Expr1, Username, [Password], CanEdit
FROM            Accounts
GROUP BY Username, [Password], CanEdit
HAVING        (Username = ?) AND ([Password] = ?)

END
I want to call it when I click login button in my system?
I tried to find a tutorials but I cant understand because of lack of comments in the codes.

Help please.