Why do Windows registry hives appear empty?Folder shortcut created on Windows 7 behaving oddly on XP and...

What is memelemum?

Make 24 using exactly three 3s

Count rotary dial pulses in a phone number (including letters)

Find limit in use of integrals

Would jet fuel for an F-16 or F-35 be producible during WW2?

Compactness of finite sets

Computing the matrix powers of a non-diagonalizable matrix

How to pull out the underlying query syntax being used by dataset?

Why did David Cameron offer a referendum on the European Union?

Should breaking down something like a door be adjudicated as an attempt to beat its AC and HP, or as an ability check against a set DC?

How should I introduce map drawing to my players?

Simple fuzz pedal using breadboard

What to do when you've set the wrong ISO for your film?

Employer asking for online access to bank account - Is this a scam?

Have 1.5% of all nuclear reactors ever built melted down?

Is it true that cut time means "play twice as fast as written"?

Did people go back to where they were?

Why doesn't the Earth accelerate towards the Moon?

Why do airplanes use an axial flow jet engine instead of a more compact centrifugal jet engine?

Using credit/debit card details vs swiping a card in a payment (credit card) terminal

What kind of metaphor is "trees in the wind"?

How to respond to an upset student?

What was the idiom for something that we take without a doubt?

Can I install both XCode & Android Studio on MacBook Air with only 8 GB of Ram



Why do Windows registry hives appear empty?


Folder shortcut created on Windows 7 behaving oddly on XP and 2003Is it possible to open a file with different programs from explorer and from shell?Grant Admin rights to an entire registry Hive?System32 folder is emptyWhy do different programs show different contents of c:windowssystem32How do I fix my Windows 10 PC to normal condition after using a registry cleaner without backing upTrying to fix Windows 7 PC after deleting a registry key for a class experimentAttempted to restore registry from WindowsSystem32ConfigRegBackup with xcopy. Got Share Violation errorWindows 10 adds ---open-url to registry value for default program open commandHow to fix Windows 10 Registry With bootable Install USB?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















I went into "C:WindowsSystem32config" on my Windows 10 machine, and tried to open the registry hive files.



SOFTWARE, for example, has a size of exactly 128 MB as reported by Explorer, but when opening it with Visual Studio Code, it is shown as empty. Notepad refuses to open it because it is "used by another process". I get the same results for the other files (SYSTEM, SECURITY, etc.).



Is Windows trying to prevent me from doing something stupid? Are these files special in some way (besides hosting the registry)?










share|improve this question























  • Of course they are special - they are the heart of Windows.

    – harrymc
    8 hours ago













  • @harrymc: So is ntoskrnl.exe, but that opens up in Notepad just fine.

    – grawity
    8 hours ago











  • @grawity: Are you looking for homogeneity in Windows permissions?

    – harrymc
    7 hours ago


















1















I went into "C:WindowsSystem32config" on my Windows 10 machine, and tried to open the registry hive files.



SOFTWARE, for example, has a size of exactly 128 MB as reported by Explorer, but when opening it with Visual Studio Code, it is shown as empty. Notepad refuses to open it because it is "used by another process". I get the same results for the other files (SYSTEM, SECURITY, etc.).



Is Windows trying to prevent me from doing something stupid? Are these files special in some way (besides hosting the registry)?










share|improve this question























  • Of course they are special - they are the heart of Windows.

    – harrymc
    8 hours ago













  • @harrymc: So is ntoskrnl.exe, but that opens up in Notepad just fine.

    – grawity
    8 hours ago











  • @grawity: Are you looking for homogeneity in Windows permissions?

    – harrymc
    7 hours ago














1












1








1








I went into "C:WindowsSystem32config" on my Windows 10 machine, and tried to open the registry hive files.



SOFTWARE, for example, has a size of exactly 128 MB as reported by Explorer, but when opening it with Visual Studio Code, it is shown as empty. Notepad refuses to open it because it is "used by another process". I get the same results for the other files (SYSTEM, SECURITY, etc.).



Is Windows trying to prevent me from doing something stupid? Are these files special in some way (besides hosting the registry)?










share|improve this question














I went into "C:WindowsSystem32config" on my Windows 10 machine, and tried to open the registry hive files.



SOFTWARE, for example, has a size of exactly 128 MB as reported by Explorer, but when opening it with Visual Studio Code, it is shown as empty. Notepad refuses to open it because it is "used by another process". I get the same results for the other files (SYSTEM, SECURITY, etc.).



Is Windows trying to prevent me from doing something stupid? Are these files special in some way (besides hosting the registry)?







windows windows-registry






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 8 hours ago









ArnoArno

5313624




5313624













  • Of course they are special - they are the heart of Windows.

    – harrymc
    8 hours ago













  • @harrymc: So is ntoskrnl.exe, but that opens up in Notepad just fine.

    – grawity
    8 hours ago











  • @grawity: Are you looking for homogeneity in Windows permissions?

    – harrymc
    7 hours ago



















  • Of course they are special - they are the heart of Windows.

    – harrymc
    8 hours ago













  • @harrymc: So is ntoskrnl.exe, but that opens up in Notepad just fine.

    – grawity
    8 hours ago











  • @grawity: Are you looking for homogeneity in Windows permissions?

    – harrymc
    7 hours ago

















Of course they are special - they are the heart of Windows.

– harrymc
8 hours ago







Of course they are special - they are the heart of Windows.

– harrymc
8 hours ago















@harrymc: So is ntoskrnl.exe, but that opens up in Notepad just fine.

– grawity
8 hours ago





@harrymc: So is ntoskrnl.exe, but that opens up in Notepad just fine.

– grawity
8 hours ago













@grawity: Are you looking for homogeneity in Windows permissions?

– harrymc
7 hours ago





@grawity: Are you looking for homogeneity in Windows permissions?

– harrymc
7 hours ago










1 Answer
1






active

oldest

votes


















5














They appear as empty because Visual Studio Code doesn't understand the concept of not being able to open the file. They're not actually empty, vscode is just literally unable to know whether they are or not.



Windows has the concept of "exclusive open" (aka "share modes", elsewhere also called "mandatory locking"). It is commonly used by database software to prevent another program from writing data at the same time as the database engine is managing it; if two handlers tried to write at once, they could end up corrupting the entire database. The same applies to filesystems – Windows doesn't actually let you access the raw disk device if it is mounted as a filesystem.



(That said, there are database formats specifically made for simultaneous access, such as LMDB.)



But the primary reason Windows Registry uses exclusive open is for security enforcement. Each Registry key can have a set of permissions (DACL/SACL) attached to it, just like a file or folder. If you could directly open a registry hive (especially the system or security hives), you could simply read the data that was supposed to be secured via permissions.






share|improve this answer


























  • Blocking other readers is potentially useful for a database that doesn't want other readers to see some of the file from before a transaction, some of the file from after a write, and even some bytes from the file during a supposedly atomic transaction. It's certainly inconvenient for use-cases where you don't care about getting a clean snapshot of the whole file, though.

    – Peter Cordes
    6 mins ago












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1441177%2fwhy-do-windows-registry-hives-appear-empty%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









5














They appear as empty because Visual Studio Code doesn't understand the concept of not being able to open the file. They're not actually empty, vscode is just literally unable to know whether they are or not.



Windows has the concept of "exclusive open" (aka "share modes", elsewhere also called "mandatory locking"). It is commonly used by database software to prevent another program from writing data at the same time as the database engine is managing it; if two handlers tried to write at once, they could end up corrupting the entire database. The same applies to filesystems – Windows doesn't actually let you access the raw disk device if it is mounted as a filesystem.



(That said, there are database formats specifically made for simultaneous access, such as LMDB.)



But the primary reason Windows Registry uses exclusive open is for security enforcement. Each Registry key can have a set of permissions (DACL/SACL) attached to it, just like a file or folder. If you could directly open a registry hive (especially the system or security hives), you could simply read the data that was supposed to be secured via permissions.






share|improve this answer


























  • Blocking other readers is potentially useful for a database that doesn't want other readers to see some of the file from before a transaction, some of the file from after a write, and even some bytes from the file during a supposedly atomic transaction. It's certainly inconvenient for use-cases where you don't care about getting a clean snapshot of the whole file, though.

    – Peter Cordes
    6 mins ago
















5














They appear as empty because Visual Studio Code doesn't understand the concept of not being able to open the file. They're not actually empty, vscode is just literally unable to know whether they are or not.



Windows has the concept of "exclusive open" (aka "share modes", elsewhere also called "mandatory locking"). It is commonly used by database software to prevent another program from writing data at the same time as the database engine is managing it; if two handlers tried to write at once, they could end up corrupting the entire database. The same applies to filesystems – Windows doesn't actually let you access the raw disk device if it is mounted as a filesystem.



(That said, there are database formats specifically made for simultaneous access, such as LMDB.)



But the primary reason Windows Registry uses exclusive open is for security enforcement. Each Registry key can have a set of permissions (DACL/SACL) attached to it, just like a file or folder. If you could directly open a registry hive (especially the system or security hives), you could simply read the data that was supposed to be secured via permissions.






share|improve this answer


























  • Blocking other readers is potentially useful for a database that doesn't want other readers to see some of the file from before a transaction, some of the file from after a write, and even some bytes from the file during a supposedly atomic transaction. It's certainly inconvenient for use-cases where you don't care about getting a clean snapshot of the whole file, though.

    – Peter Cordes
    6 mins ago














5












5








5







They appear as empty because Visual Studio Code doesn't understand the concept of not being able to open the file. They're not actually empty, vscode is just literally unable to know whether they are or not.



Windows has the concept of "exclusive open" (aka "share modes", elsewhere also called "mandatory locking"). It is commonly used by database software to prevent another program from writing data at the same time as the database engine is managing it; if two handlers tried to write at once, they could end up corrupting the entire database. The same applies to filesystems – Windows doesn't actually let you access the raw disk device if it is mounted as a filesystem.



(That said, there are database formats specifically made for simultaneous access, such as LMDB.)



But the primary reason Windows Registry uses exclusive open is for security enforcement. Each Registry key can have a set of permissions (DACL/SACL) attached to it, just like a file or folder. If you could directly open a registry hive (especially the system or security hives), you could simply read the data that was supposed to be secured via permissions.






share|improve this answer















They appear as empty because Visual Studio Code doesn't understand the concept of not being able to open the file. They're not actually empty, vscode is just literally unable to know whether they are or not.



Windows has the concept of "exclusive open" (aka "share modes", elsewhere also called "mandatory locking"). It is commonly used by database software to prevent another program from writing data at the same time as the database engine is managing it; if two handlers tried to write at once, they could end up corrupting the entire database. The same applies to filesystems – Windows doesn't actually let you access the raw disk device if it is mounted as a filesystem.



(That said, there are database formats specifically made for simultaneous access, such as LMDB.)



But the primary reason Windows Registry uses exclusive open is for security enforcement. Each Registry key can have a set of permissions (DACL/SACL) attached to it, just like a file or folder. If you could directly open a registry hive (especially the system or security hives), you could simply read the data that was supposed to be secured via permissions.







share|improve this answer














share|improve this answer



share|improve this answer








edited 8 hours ago

























answered 8 hours ago









grawitygrawity

248k38526586




248k38526586













  • Blocking other readers is potentially useful for a database that doesn't want other readers to see some of the file from before a transaction, some of the file from after a write, and even some bytes from the file during a supposedly atomic transaction. It's certainly inconvenient for use-cases where you don't care about getting a clean snapshot of the whole file, though.

    – Peter Cordes
    6 mins ago



















  • Blocking other readers is potentially useful for a database that doesn't want other readers to see some of the file from before a transaction, some of the file from after a write, and even some bytes from the file during a supposedly atomic transaction. It's certainly inconvenient for use-cases where you don't care about getting a clean snapshot of the whole file, though.

    – Peter Cordes
    6 mins ago

















Blocking other readers is potentially useful for a database that doesn't want other readers to see some of the file from before a transaction, some of the file from after a write, and even some bytes from the file during a supposedly atomic transaction. It's certainly inconvenient for use-cases where you don't care about getting a clean snapshot of the whole file, though.

– Peter Cordes
6 mins ago





Blocking other readers is potentially useful for a database that doesn't want other readers to see some of the file from before a transaction, some of the file from after a write, and even some bytes from the file during a supposedly atomic transaction. It's certainly inconvenient for use-cases where you don't care about getting a clean snapshot of the whole file, though.

– Peter Cordes
6 mins ago


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1441177%2fwhy-do-windows-registry-hives-appear-empty%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...