This command will return the depth of the backbuffer. You can pass this data to a DLL to assist in the direct access of backbuffer memory. You can only use this command when you have used the LOCK BACKBUFFER command.

Syntax: 
Return Integer=GET BACKBUFFER DEPTH()