Archived

This topic is now archived and is closed to further replies.

TheMatrixXXX

virtual harddisk

Recommended Posts

TheMatrixXXX    122
does one of you know the encryption tool DriveCrypt? in this tool you can create container files which you can mount like a normal harddrive in the windows explorer can you tell me how to create such a virtual drive? and how does the windows explorer work with drag&drop? thx for your help --=[[TheMatrixXXX]]=--

Share this post


Link to post
Share on other sites
IndirectX    122
You can write a shell extension to create a new folder under My Computer. I''m not sure if you can make it look like a drive or if you have to write some sort of a driver to have a virtual drive.

For drag&drop, take a look at DragAcceptFiles or just search MSDN.

Share this post


Link to post
Share on other sites
IndirectX    122
Look, TheMatrixXXX. Nobody is going to post a function that creates a virtual drive out of any file, because:

1. It''s an awful lot of code (as in really, really, really lot).
2. This is system programming, and this site is primarily for game programmers, so few, if any, people ever implemented something like this.
3. Even if they did, they most likely wouldn''t just post their code because it took them much trouble to figure out exactly how to do things, and if you want to have a program that creates a virtual drive you have to understand how that happens, not just copy someone else''s code.
4. Even if they posted the code, you wouldn''t understand it anyway. That''s just too much code to comprehend for someone who has no even idea how to implement a similar thing.

Similarly, nobody is going to post a "How to create a virtal harddrive out of a container file in 10 minutes" guide because the size of that post would probably be sufficient to write a small book. People can provide pointers and ideas, but they won''t tell you exactly what to do. MSDN exists for such purpose.

Then you keep repeating your question even though you already have two answers. To show others that you understand their responses, you should reply to the posts instead of reposting the original question. You won''t get a step-by-step answer; see above.

Can you even implement a container file, period? With no bells and whistles, just a simple container file? If no, which is what I suspect your answer is, then making virtual drives is way over your head. Learn some Win32 API and only then try to use it. Your question, and your responses, strongly resemble "How do I make Quake4? I don''t know anything!" posts.

Tell us what you already know, what ideas you have, what your needs are. If you don''t have any ideas, say so and we will try to help you come up with some. But remember two things: look for information yourself (MSDN & Google) and reply to others'' posts.

Share this post


Link to post
Share on other sites
TheMatrixXXX    122
@IndirectX:
i never asked for a complete running simple to understand source code. i just thouht about my own virtual drive app and i was just interested if it is very complicated to hook a imagefile like a physical drive into the windows drivemap, and i didn´t have any ideas what to code exactly, i just had the idea and wanted to know how it works. And you are right i don´t know much about the win32 system API and i thouhgt it woult be useful to learn something about it and then not a simple program to open/close the cd-rom drive or somethink like that. And i know that this board is a game developers forum, but i know that many people are very good programmers here and so i postet that here.

@vaporisator:
thx for your post the code showed me that i need a virutal driver to do that but i just flew over the code last night.



--=[[TheMatrixXXX]]=--

Share this post


Link to post
Share on other sites