Previous Book Contents Book Index Next

Inside Macintosh: Apple Game Sprockets Guide /
Chapter 2 - DrawSprocket / DrawSprocket Reference
DrawSprocket Functions / Choosing a Context and Saving Preferences


DSpContext_GetDisplayID

Use the DSpContext_GetDisplayID function to get the ID of the display a context is associated with.

OSStatus DSpContext_GetDisplayID (
DSpContextReference inContext,
DisplayIDType *outDisplayID);
inContext
A reference to a context.
outDisplayID
On exit, a display monitor ID for the device the context is associated with.
function result
A result code.
DESCRIPTION
You pass the DSpContext_GetDisplayID function a reference to a context in the inContext parameter and it returns the ID of the display the context is associated with in the outDisplayID parameter.

CALLING RESTRICTIONS
Do not call this function during an interrupt.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996