D
duraisridhar
Hi All,
I'm creating a file with long filename (more then 200 chars ) in
Windows system using CreateFile method by prepending "\\?\" in the
file name( as suggested in MSDN). The files is created successfully,
but I could not open the file by clicking the file. Even the "open"
menu in the right click is not working. The Right click shows only
two options - "open", "send to". Other options/menus like
"Properties" , "Copy", "Rename", "Paste" etc ., menu is not shown.
When File name is smaller (less then 150 chars) , my code works
without any problem and I can open the file, can see the "Properties"
and other menus when I right click.
Could you guess where i going wrong ?. What options should I use so
that I can see all right click options. For your reference, I paste
snip of my code,
HANDLE fileHandle = CreateFile("\\?\D:\LongFileName\<fileName with
230 Chars>.txt ",
GENERIC_READ |
GENERIC_WRITE,
FILE_SHARE_READ,
NULL, CREATE_ALWAYS,
FILE_ATTRIBUTE_NORMAL, NULL);
Any help on this will be greatly appreciated.
Regards,
Sri
I'm creating a file with long filename (more then 200 chars ) in
Windows system using CreateFile method by prepending "\\?\" in the
file name( as suggested in MSDN). The files is created successfully,
but I could not open the file by clicking the file. Even the "open"
menu in the right click is not working. The Right click shows only
two options - "open", "send to". Other options/menus like
"Properties" , "Copy", "Rename", "Paste" etc ., menu is not shown.
When File name is smaller (less then 150 chars) , my code works
without any problem and I can open the file, can see the "Properties"
and other menus when I right click.
Could you guess where i going wrong ?. What options should I use so
that I can see all right click options. For your reference, I paste
snip of my code,
HANDLE fileHandle = CreateFile("\\?\D:\LongFileName\<fileName with
230 Chars>.txt ",
GENERIC_READ |
GENERIC_WRITE,
FILE_SHARE_READ,
NULL, CREATE_ALWAYS,
FILE_ATTRIBUTE_NORMAL, NULL);
Any help on this will be greatly appreciated.
Regards,
Sri