Is this correct?: "\\\computername\\C:\\myfolder\\myfile.txt" for a network file object's file name?

Hi all,
I want to create a network shared file object in my file system filter
driver.
because i need to write to remote computer.
Is this name correct for that network file object when initObjectAttributes:
“\\computername\C:\myfolder\myfile.txt”

I don’t understand what written in filemon:
what that “X” stands for: in “\X:\computer\share\realpath”
and what formate should be “realpath”: is “\C:\myfolder\myfile” or just
“myfolder\myfile”??
"
//
// Network redirector names already specify a share name that we
// have to strip:
//
// \X:\computer\share\realpath
//
// And we want to present:
//
// X:\realpath
//
// to the user.
//
if( fileObject->DeviceObject->DeviceType ==
FILE_DEVICE_NETWORK_FILE_SYSTEM &&
strlen( fullPathName ) >= strlen(“\X:\”) ) {

//
// If this is Win2k the name is specified like this:
//
// ;X:0\computer\share\realpath
//
// so we have to handle that case as well
//
/* if( fullPathName[1] == ‘;’ ) {

//
// Win2K-style name. Grab the drive letter
// and skip over the share
//
fullPathName[0] = fullPathName[2];
fullPathName[1] = ‘:’;
fullPathName[2] = ‘\’;

//
// The third slash after the drive is the
// start of the real path (we start scanning
// at the ‘:’ since we don’t want to make assumptions
// about the length of the number).
//
slashes = 0;
ptr = &fullPathName[3];
while( *ptr && slashes != 3 ) {

if( *ptr == ‘\’ ) slashes++;
ptr++;
}
strcpy( &fullPathName[3], ptr );

} else if( fullPathName[2] == ‘:’ ) {

//
// NT 4-style name. Skip the share name
//
fullPathName[0] = fullPathName[1];
fullPathName[1] = ‘:’;
fullPathName[2] = ‘\’;

//
// The second slash after the drive’s slash (x:)
// is the start of the real path
//
slashes = 0;
ptr = &fullPathName[3];
while( *ptr && slashes != 3 ) {

if( *ptr == ‘\’ ) slashes++;
ptr++;
}
strcpy( &fullPathName[3], ptr );

} else {

//
// Its a UNC path, so add a leading slash
//
RtlMoveMemory( &fullPathName[1], fullPathName,
trlen( fullPathName ) + 1);
fullPathName[0] = ‘\’;
}
*/ }


Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com