Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //http://waleedassar.blogspot.com (@waleedassar)
- //If you happen to have a mapped shared folder inside VirtualBox, then it always has the File system named "VBoxSharedFolderFS".
- #include "stdafx.h"
- #include "windows.h"
- #include "stdio.h"
- int main(int argc, char* argv[])
- {
- for(unsigned char x='A';x<='Z';x++)
- {
- char drv[0x4]={0};
- drv[0]=x;
- drv[1]=':';
- drv[2]='\\';
- if(DRIVE_REMOTE==GetDriveType(drv))
- {
- char FSName[0x110]={0};
- if(GetVolumeInformation(drv,0,0,0,0,0,FSName,0x100))
- {
- if(strcmpi("VBoxSharedFolderFS",FSName)==0)
- {
- MessageBox(0,"VirtualBox detected","walied",0);
- }
- else
- {
- printf("%s %s\r\n",drv,FSName);
- }
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement