IN_OBJECT lDocID;
ULONGPTR perms;
/* Get the document ID of the active document */
if ( ( nError = IN_GetDocumentID( 0, &lDocID ) ) != IN_SUCCESS )
{
ErrorHandler( nError, "Error message:" );
}
/* Get the permissions for the active document window */
if ( ( nError = IN_GetPermissions( lDocID , &perms ) ) != IN_SUCCESS )
{
ErrorHandler( nError, "Error message:" );
}