Originariamente Scritto da
Ethereal
HRESULT Mount( int Device, char* MountPoint )
{
char MountConv[260];
sprintf_s( MountConv,"\\??\\%s", MountPoint );
char * SysPath = NULL;
switch( Device )
{
case DEVICE_MEMORY_ONBOARD:
SysPath = "\\Device\\BuiltInMuSfc";
break;
.....................
STRING sSysPath = { (USHORT)strlen( SysPath ), (USHORT)strlen( SysPath ) + 1, SysPath };
STRING sMountConv = { (USHORT)strlen( MountConv ), (USHORT)strlen( MountConv ) + 1, MountConv };
int res = ObCreateSymbolicLink( &sMountConv, &sSysPath );
if (res != 0)
return res;
return DriveMounted(MountPoint);
}
Ho modificato in questo modo
Codice:
HRESULT Mount( char* MountPoint )
{
char MountConv[260];
sprintf_s( MountConv,"\\??\\%s", MountPoint );
char* SysPath = NULL;
SysPath = "\\Device\\BuiltInMuSfc";
STRING sSysPath = { (USHORT)strlen( SysPath ), (USHORT)strlen( SysPath ) + 1, SysPath };
STRING sMountConv = { (USHORT)strlen( MountConv ), (USHORT)strlen( MountConv ) + 1, MountConv };
int res = ObCreateSymbolicLink( &sMountConv, &sSysPath );
return res;
}
..........
Mount("bb:");
XLaunchNewImage("bb:\\A0\\Fsd\\default.xex", 0);
Ma non funziona lo stesso
Originariamente Scritto da
Raiden
vi scambiano per terroristi arabi se continuate così :P
Segnalibri