473,320 Members | 2,117 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

_fileinfo and _set_fileinfo in VS 2005

In older versions of Visual Studio, there was a global variable named
_fileinfo and/or a function named _set_fileinfo. These seem to be gone in
Visual Studio 2005. The documentation mentions them, but does not say what
should be used instead.

The purpose of these features was to control whether open files are
inherited by child processes created using _spawn.

Is there a similar way to control this under VS 2005? My goal is for the
files to be inherited. If this is the default, then I'm good, but I'd like to
know for sure.

Thank you.

Jun 23 '06 #1
3 1243
> In older versions of Visual Studio, there was a global variable named
_fileinfo and/or a function named _set_fileinfo. These seem to be gone in
Visual Studio 2005. The documentation mentions them, but does not say what
should be used instead.

The purpose of these features was to control whether open files are
inherited by child processes created using _spawn.

Is there a similar way to control this under VS 2005? My goal is for the
files to be inherited. If this is the default, then I'm good, but I'd like
to
know for sure.


The documentation
http://msdn2.microsoft.com/en-us/library/ecthkkx5.aspx
mentions that the global variable itself, and _get_fileinfo are no longer
supported.

You can still set the fileinfo variable through _set_fileinfo
apparently this was done for security reasons (see link)

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
Jun 23 '06 #2
>The documentation http://msdn2.microsoft.com/en-us/library/ecthkkx5.aspx
mentions that the global variable itself, and _get_fileinfo are no longer
supported.

You can still set the fileinfo variable through _set_fileinfo
apparently this was done for security reasons (see link)


I agree that it says this. It's the same as the documentation included with
VS 2005 itself. However, _set_fileinfo doesn't really exist. It's not
mentioned in any header file, and I get an unresolved external when I try to
use it.

E:\tmp>cl fi.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for
80x86
Copyright (C) Microsoft Corporation. All rights reserved.

fi.c
Microsoft (R) Incremental Linker Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.

/out:fi.exe
fi.obj
fi.obj : error LNK2019: unresolved external symbol __set_fileinfo referenced
in function _main
fi.exe : fatal error LNK1120: 1 unresolved externals

The source for that is
--------------------
#include <stdlib.h>

void main(void)
{
_set_fileinfo(1);
}
--------------------

Thanks.

Jun 23 '06 #3
>>You can still set the fileinfo variable through _set_fileinfo
apparently this was done for security reasons (see link)


I agree that it says this. It's the same as the documentation included
with
VS 2005 itself. However, _set_fileinfo doesn't really exist. It's not
mentioned in any header file, and I get an unresolved external when I try
to
use it.


I just did a search in my VC8 folder for any file that contains the string '
_set_fileinfo'
No hits.

also, the MSDN docs say on another page that _get_fileinfo is still
supported.
http://msdn2.microsoft.com/en-us/library/ecthkkx5.aspx
but the documentation for that function says that that is gone as well
http://msdn2.microsoft.com/en-us/library/tzwcfdtx.aspx

so I think the documentation for _set_fileinfo is wrong, and it is gone as
well.
is says that _get_fileinfo is no longer supported, but I think this is a
copy and paste error, and it should say '_set_fileinfo'.

If you want, you can use http://connect.microsoft.com/ for submitting
feedback so that the docs are updated.

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
Jun 24 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.