Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #617 > unrolled thread
| Started by | "Gary Miller" <gary@lucero.com> |
|---|---|
| First post | 2011-03-31 13:40 -0700 |
| Last post | 2011-04-01 23:20 +0000 |
| Articles | 10 — 5 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
GetSystemWindowsDirectory "Gary Miller" <gary@lucero.com> - 2011-03-31 13:40 -0700
Re: GetSystemWindowsDirectory "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-03-31 21:40 +0000
Re: GetSystemWindowsDirectory "Gary Miller" <gary_@_lucero_.com (remove all underscores)> - 2011-03-31 16:01 -0700
Re: GetSystemWindowsDirectory "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-04-01 23:24 +0000
Re: GetSystemWindowsDirectory "Philippe Mermod" <pmermod@REMOVEpkl.ch> - 2011-04-01 07:27 +0000
Re: GetSystemWindowsDirectory "Gary Miller" <gary_@_lucero_.com (remove all underscores)> - 2011-04-01 11:13 -0700
Re: GetSystemWindowsDirectory "Gary Miller" <gary_@_lucero_.com (remove all underscores)> - 2011-04-01 12:19 -0700
Re: GetSystemWindowsDirectory "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-04-01 23:22 +0000
Re: GetSystemWindowsDirectory "Karl-Heinz" <invalid@invalid.invalid> - 2011-04-01 11:04 +0200
Re: GetSystemWindowsDirectory "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-04-01 23:20 +0000
| From | "Gary Miller" <gary@lucero.com> |
|---|---|
| Date | 2011-03-31 13:40 -0700 |
| Subject | GetSystemWindowsDirectory |
| Message-ID | <in2oqm$459$1@adenine.netfront.net> |
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 ---
[toc] | [next] | [standalone]
| From | "Geoff Schaller" <geoffx@softwarexobjectives.com.au> |
|---|---|
| Date | 2011-03-31 21:40 +0000 |
| Message-ID | <4d94f4e2$0$88196$c30e37c6@exi-reader.telstra.net> |
| In reply to | #617 |
Gary, Try INT instead of DWORD (although I note the types are UINT). Where are you testing this? On the terminal server? It won't work in a regular environment - it just retrieves %system%. But why do you want it? It is the common WINDOWS system share - nothing you should be using or accessing from a workstation. shGetFolderPath is usually the best function to use. Geoff "Gary Miller" <gary@lucero.com> wrote in message news:in2oqm$459$1@adenine.netfront.net: > 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 ---
[toc] | [prev] | [next] | [standalone]
| From | "Gary Miller" <gary_@_lucero_.com (remove all underscores)> |
|---|---|
| Date | 2011-03-31 16:01 -0700 |
| Message-ID | <in312n$ero$1@adenine.netfront.net> |
| In reply to | #618 |
Geoff Thanks, Gary --- news://freenews.netfront.net/ - complaints: news@netfront.net ---
[toc] | [prev] | [next] | [standalone]
| From | "Geoff Schaller" <geoffx@softwarexobjectives.com.au> |
|---|---|
| Date | 2011-04-01 23:24 +0000 |
| Message-ID | <4d965e98$0$88198$c30e37c6@exi-reader.telstra.net> |
| In reply to | #620 |
Gary, What is the guest OS. It could not be W7 Home or XP Home for example because again, that function is not present. Also, the user would need to have rights to execute such a function. Do they? You also didn't explain why they need this. I find it extremely unusual to need this folder path. Geoff "Gary Miller" <gary_@_lucero_.com (remove all underscores)> wrote in message news:in312n$ero$1@adenine.netfront.net: > Geoff > Thanks, > > > Gary > > > > --- news://freenews.netfront.net/ - complaints: news@netfront.net ---
[toc] | [prev] | [next] | [standalone]
| From | "Philippe Mermod" <pmermod@REMOVEpkl.ch> |
|---|---|
| Date | 2011-04-01 07:27 +0000 |
| Message-ID | <8vld2tFd03U1@mid.individual.net> |
| In reply to | #617 |
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 ---
[toc] | [prev] | [next] | [standalone]
| From | "Gary Miller" <gary_@_lucero_.com (remove all underscores)> |
|---|---|
| Date | 2011-04-01 11:13 -0700 |
| Message-ID | <in54jv$2dpm$1@adenine.netfront.net> |
| In reply to | #622 |
Philippe Thanks, I didn't know that function existed. Gary --- news://freenews.netfront.net/ - complaints: news@netfront.net ---
[toc] | [prev] | [next] | [standalone]
| From | "Gary Miller" <gary_@_lucero_.com (remove all underscores)> |
|---|---|
| Date | 2011-04-01 12:19 -0700 |
| Message-ID | <in58f1$2h87$1@adenine.netfront.net> |
| In reply to | #622 |
Phil Actually in Terminal Server this function returns invalid (c:\documents and settings\user\windows) Gary --- news://freenews.netfront.net/ - complaints: news@netfront.net ---
[toc] | [prev] | [next] | [standalone]
| From | "Geoff Schaller" <geoffx@softwarexobjectives.com.au> |
|---|---|
| Date | 2011-04-01 23:22 +0000 |
| Message-ID | <4d965e39$0$88196$c30e37c6@exi-reader.telstra.net> |
| In reply to | #622 |
Phil, This won't give him the folder he is looking for. He wants the system shared path, not the user system path. The folder yields an operating system level folder on the TS server. But I think this is fraught and unnecessary. Mainly, the user needs to have appropriate rights to this folder and that would be unusual. Geoff "Philippe Mermod" <pmermod@REMOVEpkl.ch> wrote in message news:8vld2tFd03U1@mid.individual.net: > 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 ---
[toc] | [prev] | [next] | [standalone]
| From | "Karl-Heinz" <invalid@invalid.invalid> |
|---|---|
| Date | 2011-04-01 11:04 +0200 |
| Message-ID | <8vlisuFnrvU1@mid.individual.net> |
| In reply to | #617 |
Gary, > _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 definition is correct. Could it be that the OS the app is running is lower than required ? ---------------------------------------------- GetSystemWindowsDirectory - Requirements ---------------------------------------------- Minimum supported client Windows 2000 Professional Minimum supported server Windows 2000 Server ------------------------- http://msdn.microsoft.com/en-us/library/ms724403(v=vs.85).aspx regards Karl-Heinz
[toc] | [prev] | [next] | [standalone]
| From | "Geoff Schaller" <geoffx@softwarexobjectives.com.au> |
|---|---|
| Date | 2011-04-01 23:20 +0000 |
| Message-ID | <4d965dbb$0$88196$c30e37c6@exi-reader.telstra.net> |
| In reply to | #623 |
<ROFL> It would be very hard to find a PC with specs lower than these. W98 maybe? Windows NT? "Karl-Heinz" <invalid@invalid.invalid> wrote in message news:8vlisuFnrvU1@mid.individual.net: > Gary, > > > > _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 definition is correct. Could it be that the OS the app is running is > lower than required ? > > ---------------------------------------------- > GetSystemWindowsDirectory - Requirements > ---------------------------------------------- > > Minimum supported client > Windows 2000 Professional > > Minimum supported server > Windows 2000 Server > ------------------------- > > http://msdn.microsoft.com/en-us/library/ms724403(v=vs.85).aspx > > > regards > Karl-Heinz
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web