Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Philippe Mermod" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: GetSystemWindowsDirectory Date: 1 Apr 2011 07:27:25 GMT Lines: 35 Message-ID: <8vld2tFd03U1@mid.individual.net> References: X-Trace: individual.net xfcEtTdsyK1qaV1648fcIAFsPSPQJ2Kj9N7klcByCmgtRfsuc= Cancel-Lock: sha1:LKqVbPGZ6syhz4zcInV4RoZzXxk= User-Agent: XanaNews/1.18.1.6 Xref: x330-a1.tempe.blueboxinc.net comp.lang.clipper.visual-objects:622 Why don't U use GetFolderPath() VO function with CSIDL_SYSTEM as argument ? HTH, -- Phil Mermod http://www.pkl.ch/dev/ Gary Miller wrote: > As I understand there is an API for GetSystemWindowsDirectory > in KERNEL32. This doesn't exist in VO so I simply tried to > create a prototype to the function via the following. > > _DLL FUNC GetSystemWindowsDirectory( lpBuffer AS PSZ, uSize AS > DWORD) AS DWORD PASCAL:KERNEL32.GetSystemWindowsDirectoryA > > But when I run my application VO balks that it cannot find an > entry point in KERNEL32.DLL > > The problem I am trying to solve is that GetWindowsDirectory() > doesn't return properly in a Terminal Server environment and > the MSDN says to use GetSystemWindowsDirectory when running in > a TS environment. > > Any suggestions? > > Thanks, > Gary > > > --- news://freenews.netfront.net/ - complaints: > news@netfront.net ---