sources consuming systemdrive

Hi all,

I have a sporadic user mode bug and decided to implement a MiniDumpWriteDump()
wrapper when that happens. To use it, the sources file include
$(SystemDrive)\Progra~1\Debugg~1\sdk\inc because dbghelp.h does not come with
WDK, and the build system does not support long path names.

The build_*.log shows that the $(SystemDrive) is not expanded. Does anyone know
the syntax to be used inside the sources file?

Regards,
Calin

I would copy/paste the defs from this header (with the proper comment that they are copy pasted) and never #include it.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

“Calin Iaru” wrote in message news:xxxxx@ntdev…
> Hi all,
>
> I have a sporadic user mode bug and decided to implement a MiniDumpWriteDump()
> wrapper when that happens. To use it, the sources file include
> $(SystemDrive)\Progra~1\Debugg~1\sdk\inc because dbghelp.h does not come with
> WDK, and the build system does not support long path names.
>
> The build_*.log shows that the $(SystemDrive) is not expanded. Does anyone know
> the syntax to be used inside the sources file?
>
> Regards,
> Calin
>
>
>
>

If you put it in a ‘sources.inc’ file and include that, it MIGHT expand it
correctly.

Good luck,

mm

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Friday, August 13, 2010 7:39 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] sources consuming systemdrive

I would copy/paste the defs from this header (with the proper comment
that they are copy pasted) and never #include it.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

“Calin Iaru” wrote in message news:xxxxx@ntdev…
> Hi all,
>
> I have a sporadic user mode bug and decided to implement a
> MiniDumpWriteDump() wrapper when that happens. To use it, the sources
> file include $(SystemDrive)\Progra~1\Debugg~1\sdk\inc because
> dbghelp.h does not come with WDK, and the build system does not support
long path names.
>
> The build_*.log shows that the $(SystemDrive) is not expanded. Does
> anyone know the syntax to be used inside the sources file?
>
> Regards,
> Calin
>
>
>
>


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

“Calin Iaru” wrote in message news:xxxxx@ntdev…
> Hi all,
>
> I have a sporadic user mode bug and decided to implement a
> MiniDumpWriteDump()
> wrapper when that happens. To use it, the sources file include
> $(SystemDrive)\Progra~1\Debugg~1\sdk\inc because dbghelp.h does not come
> with
> WDK, and the build system does not support long path names.
>
> The build_*.log shows that the $(SystemDrive) is not expanded. Does anyone
> know
> the syntax to be used inside the sources file?
>
> Regards,
> Calin

Strange. Nmake usually accepts environment variables, so this should work.
Check that SystemDrive is present in environment when you start build.

– pa

SystemDrive is included in the environment and environment variables can be
used with the $(name) syntax in Sources files (and obviously by nmake) and
my build environment works and certainly uses them. So the OP is doing
something wrong. Perhaps the sources file itself will contain the clue.

For example I use a environment variable HTS_PROJECT_ROOT to locate global
paths for related projects, and my sources.inc file included in all my
sources files has the line:

INCLUDES=$(INCLUDES);$(HTS_PROJECT_ROOT)\inc;$(HTS_PROJECT_ROOT)\inc\sys

and this works quite well.

Mark Roddy

On Fri, Aug 13, 2010 at 12:49 PM, Pavel A. wrote:

> “Calin Iaru” wrote in message news:xxxxx@ntdev…
>
>> Hi all,
>>
>> I have a sporadic user mode bug and decided to implement a
>> MiniDumpWriteDump()
>> wrapper when that happens. To use it, the sources file include
>> $(SystemDrive)\Progra~1\Debugg~1\sdk\inc because dbghelp.h does not come
>> with
>> WDK, and the build system does not support long path names.
>>
>> The build_*.log shows that the $(SystemDrive) is not expanded. Does anyone
>> know
>> the syntax to be used inside the sources file?
>>
>> Regards,
>> Calin
>>
>
> Strange. Nmake usually accepts environment variables, so this should work.
> Check that SystemDrive is present in environment when you start build.
>
> – pa
>
>
>
>
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>