#COMPILE EXE "test_declare.exe"
#DIM ALL

DECLARE FUNCTION GetStdHandle LIB "kernel32.dll" ALIAS "GetStdHandle" (BYVAL nStdHandle AS DWORD) AS QUAD

FUNCTION PBMAIN() AS LONG
    LOCAL hStdOut AS QUAD
    hStdOut = GetStdHandle(-11)
    FUNCTION = 0
END FUNCTION
