- Fix headers.
- Fix MSVC warning C4200: nonstandard extension used : zero-sized array in struct/union.
[PSDK]
Fix MSVC warning C4200: nonstandard extension used : zero-sized array in struct/union. Note to Wine synchronizers and PSDK maintainers: those MIB* structures should go into a tcpmib.h header instead.
svn path=/trunk/; revision=66425
/*
-* PROJECT: ReactOS shell extensions
-* LICENSE: GPL - See COPYING in the top level directory
-* FILE: dll\shellext\ntobjshex\ntobjns.cpp
-* PURPOSE: NT Object Namespace shell extension
-* PROGRAMMERS: David Quintana <gigaherz@gmail.com>
-*/
+ * PROJECT: ReactOS shell extensions
+ * LICENSE: GPL - See COPYING in the top level directory
+ * FILE: dll\shellext\ntobjshex\ntobjns.cpp
+ * PURPOSE: NT Object Namespace shell extension
+ * PROGRAMMERS: David Quintana <gigaherz@gmail.com>
+ */
#include "precomp.h"
#include "ntobjutil.h"
/*
- * PROJECT: ReactOS system libraries
+ * PROJECT: ReactOS shell extensions
* LICENSE: GPL - See COPYING in the top level directory
- * FILE: dll\win32\stobject\stobject.cpp
- * PURPOSE: Systray shell service object
- * PROGRAMMERS: Robert Naumann
- David Quintana <gigaherz@gmail.com>
+ * FILE: dll\shellext\ntobjshex\ntobjns.h
+ * PURPOSE: NT Object Namespace shell extension
+ * PROGRAMMERS: David Quintana <gigaherz@gmail.com>
*/
#pragma once
/*
- * PROJECT: ReactOS system libraries
+ * PROJECT: ReactOS shell extensions
* LICENSE: GPL - See COPYING in the top level directory
- * FILE: dll\win32\stobject\stobject.cpp
- * PURPOSE: COM registration services for STobject.dll
- * PROGRAMMERS: Robert Naumann
- David Quintana <gigaherz@gmail.com>
+ * FILE: dll\shellext\ntobjshex\ntobjshex.cpp
+ * PURPOSE: NT Object Namespace shell extension
+ * PROGRAMMERS: David Quintana <gigaherz@gmail.com>
*/
#include "precomp.h"
#include <ndk/rtlfuncs.h>
}
-// All the possible values are defined here because I want the type field to be
+// All the possible values are defined here because I want the type field to be
// "persistable" and not change if more types are added in the future.
enum OBJECT_TYPE {
DIRECTORY_OBJECT, SYMBOLICLINK_OBJECT,
UNKNOWN_OBJECT_TYPE = -1
};
-extern const LPCWSTR ObjectTypeNames [];
+extern const LPCWSTR ObjectTypeNames[];
#define NT_OBJECT_PIDL_MAGIC (USHORT)0x9A03
USHORT magic; // 0x9A03 ~~~ "NTOB"
// If this is -1, there will be a NtPidlTypeData following this, and before any other extensions
- OBJECT_TYPE objectType;
+ OBJECT_TYPE objectType;
OBJECT_BASIC_INFORMATION objectInformation;
USHORT entryNameLength;
- WCHAR entryName[0];
+ WCHAR entryName[ANYSIZE_ARRAY];
};
struct NtPidlTypeData
{
USHORT typeNameLength;
- WCHAR typeName[0];
+ WCHAR typeName[ANYSIZE_ARRAY];
};
struct NtPidlSymlinkData
{
USHORT targetNameLength;
- WCHAR targetName[0];
+ WCHAR targetName[ANYSIZE_ARRAY];
};
#include <poppack.h>
typedef struct {
DWORD dwNumEntries;
- MIB_TCPROW_OWNER_PID table[0];
+ MIB_TCPROW_OWNER_PID table[1];
} MIB_TCPTABLE_OWNER_PID, *PMIB_TCPTABLE_OWNER_PID;