Missing include file stgprop.h  
Author Message
Sergey Bereznikov





PostPosted: Windows SDK, Missing include file stgprop.h Top

Ntquery.h try to include missing file stgprop.h in the June 2006 CTP.

As a workaround i've added storage property set definitions in it manually from the previous version of ntquery.h.

HTH,

Sergey.




Software Development for Windows Vista17  
 
 
Mike Mueller - MSFT





PostPosted: Windows SDK, Missing include file stgprop.h Top

Thanks for the info. We will investigate.

 
 
Sergey Bereznikov





PostPosted: Windows SDK, Missing include file stgprop.h Top

The same problem still in the July 2006 CTP. ;]

 
 
Paul Stalteri





PostPosted: Windows SDK, Missing include file stgprop.h Top

I have the same problem, can you post the details of your workaround.

I'm using the most recent version of the SDK downloaded last friday.


 
 
Andre.Ziegler





PostPosted: Windows SDK, Missing include file stgprop.h Top

Hi,

I also get this message when I want to compile the WTLExplorer-Sample from WTL 7.5 by using the Final of the WindowsSDK.

How can I fix this I set the directories that the WinSDK is at first place.


 
 
Andre.Ziegler





PostPosted: Windows SDK, Missing include file stgprop.h Top

No ideas

I commented the include out and the sample compiles. Is the header file not important


 
 
Andre.Ziegler





PostPosted: Windows SDK, Missing include file stgprop.h Top

Still no idea

 
 
Rich Taylor





PostPosted: Windows SDK, Missing include file stgprop.h Top

I'm seeing this too - in the RTM version of the SDK. Pretty bad...

I have tried just commenting out the reference to "stgprop.h". That fixes the missing file error, but now our code cannot find includes for PSGUID_STORAGE or PID_STG_CONTENTS. And that's just for starters I imagine.

PSGUID_STORAGE can now be found in "ShlGuid.h". I guess the integration of search into the shell moved this define.
PID_STG_CONTENTS define is nowhere now... It is referenced by a comment in "propkey.h", but no define anywhere.

I'm not sure how we'll setup building our code now.

- Rich Taylor
Hanna Strategies


 
 
Andre.Ziegler





PostPosted: Windows SDK, Missing include file stgprop.h Top

Hi,

PID_STG_CONTENTS can be found by googleing and PID_STG_CONTENTS is defined as:
PID_STG_CONTENTS = 0x00000013

Perhaps a member of the WinSDK-Team reads this at any time.


 
 
Shawn Henry - MSFT





PostPosted: Windows SDK, Missing include file stgprop.h Top

Stgprop.h will get included the next time we update our unmanaged headers and libs. In the meantime, here's the unofficial list of constants you need. You'll need t copy this into a file called stgprop.h and put it in your include directory.

This posting is provided "AS IS" with no warranties, and confers no rights.

#ifndef _STGPROP_H_
#define _STGPROP_H_

#if _MSC_VER > 1000
#pragma once
#endif

#define PSGUID_STORAGE { 0xb725f130, \
0x47ef, 0x101a, \
{ 0xa5, 0xf1, 0x02, 0x60, 0x8c, 0x9e, 0xeb, 0xac } }

//#define PID_STG_DICTIONARY ((PROPID) 0x00000000) //reserved
//#define PID_STG_CODEPAGE ((PROPID) 0x00000001) //reserved

#define PID_STG_DIRECTORY ((PROPID) 0x00000002)

#define PID_STG_CLASSID ((PROPID) 0x00000003)
#define PID_STG_STORAGETYPE ((PROPID) 0x00000004)

#define PID_STG_VOLUME_ID ((PROPID) 0x00000005)
#define PID_STG_PARENT_WORKID ((PROPID) 0x00000006)
#define PID_STG_SECONDARYSTORE ((PROPID) 0x00000007)

#define PID_STG_FILEINDEX ((PROPID) 0x00000008)
#define PID_STG_LASTCHANGEUSN ((PROPID) 0x00000009)
#define PID_STG_NAME ((PROPID) 0x0000000a)
#define PID_STG_PATH ((PROPID) 0x0000000b)

#define PID_STG_SIZE ((PROPID) 0x0000000c)
#define PID_STG_ATTRIBUTES ((PROPID) 0x0000000d)
#define PID_STG_WRITETIME ((PROPID) 0x0000000e)
#define PID_STG_CREATETIME ((PROPID) 0x0000000f)
#define PID_STG_ACCESSTIME ((PROPID) 0x00000010)
#define PID_STG_CHANGETIME ((PROPID) 0x00000011)
#define PID_STG_ALLOCSIZE ((PROPID) 0x00000012)
#define PID_STG_CONTENTS ((PROPID) 0x00000013)
#define PID_STG_SHORTNAME ((PROPID) 0x00000014)

#define PID_STG_MAX PID_STG_SHORTNAME

#define CSTORAGEPROPERTY 0x15

#endif _STGPROP_H_