D3D_GET_DESKTOP_DEPTH
This command will return the Depth of the desktop. You can use this command in conjunction with the SET DISPLAY MODE COMMAND to set your application screen size to the same as the default desktop resolution.
SYNTAX
Return Integer = D3D_GET_DESKTOP_DEPTH ()