Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6923441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:32:10+00:00 2026-05-27T10:32:10+00:00

Basically I run a network of computers and need to know what region code

  • 0

Basically I run a network of computers and need to know what region code the drives of the various computers are set to. I don’t need to change the region, but I have no idea how to determine the region without going to each computer individually and sticking in a disc. I tried using Apple’s cocoa DVD playback framework, but that requires that a disk be inserted into the drive, which sort of defeats the purpose.

So are there any APIs that I can use to determine the region code on a Mac Pro’s DVD drive without requiring that a disc be inserted? I am willing to code in pretty much any language.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:32:11+00:00Added an answer on May 27, 2026 at 10:32 am

    I found some utilities that are capable of dealing with DVD region settings on OS X: DVD Info X, and Region X. DVD Info X will display the region code of your drive without requiring to have a DVD inserted.

    Region X is more interesting because although it doesn’t directly serve your purpose, its source is available. Looking at it I found that the ScanAll method in Region X.m is what you need. More specifically, the interesting case is the one where the disk name isn’t found (because there’s no disk mounted) and a SCSI command is used to find out the DVD drive’s properties (the printf calls are my addition):

    task = (*scsitaskinterface)->CreateSCSITask(scsitaskinterface);
    if (task)
    {
        cdb[0] = 0xa4;
        cdb[1] = 0x00;
        cdb[2] = 0x00;
        cdb[3] = 0x00;
        cdb[4] = 0x00;
        cdb[5] = 0x00;
        cdb[6] = 0x00;
        cdb[7] = 0x00;
        cdb[8] = (sizeof(DVDInfo) >> 8) & 0xff;
        cdb[9] = sizeof(DVDInfo) & 0xff;
        cdb[10] = 0x08;
        cdb[11] = 0x00;
        memset(&DVDInfo, 0, sizeof(DVDInfo));
        ProcessCDB(task, cdb, 12, DirIn, &DVDInfo, sizeof(DVDInfo), 30000);
    
        printf("drive region %#hhx\n", DVDInfo.driveRegion);
        printf("number of region changes left: %hhu\n", DVDInfo.numberUserResets);
    
        if (DVDInfo.rpcScheme == 0) RPC1++;
        if (DVDInfo.rpcScheme != 0) RPC2++;
    
        (*task)->Release(task);
    }
    

    I ran this on my Macbook Pro and the result was as expected.

    Obviously you’ll need to massage it in order to isolate that part into something you can use, but I think that this code will be a useful starting point.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a Textmate snippet, but have run into some difficulties. Basically,
Basically I need to run the script with paths related to the shell script
Basically I have some code to check a specific directory to see if an
I need to let an aspx.cs file run code to enumerate the contents of
Been trouble-shooting this for a few days now and have basically run dry of
i have developed an application that will basically run on all versions of the
I am trying to use JSON to populate a div, so I basically run
Basically I want to run a script checking for the existence of a certain
Basically I am wondering if it is possible to run a console script (.sh)
I was wondering how to run some JUnit4 test inside a java program. Basically

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.