tags:

views:

86

answers:

2

What is the value of OPEN_EXISTING in the Windows API?

I'm trying to open directories directly so I can examine the entries for deleted files, and I need to specify that value, but the C# environment doesn't include that under the FileMode enumeration.

related question: CreateFile to view a directory

A: 

It appears that the value of OPEN_EXISTING is 3.

MSDN - CreateFile

Fred
+1  A: 

General tip: Download the Windows SDK, no matter what language you are using. Then you can grep the included header files and look for the constants.

DR