Re: newbie Calling DLL in Server2003
- From: "Claude Fox" <cfuchs@xxxxxxxxxxxxx>
- Date: Wed, 14 Jun 2006 07:13:00 -0400
You might want to take a look at the ActiveVFP setup.prg at:
http://codegallery.gotdotnet.com/SednaY
the gist of it is that you need to give each directory and file proper
access rights for NETWORK_SERVICE like such:
* NETWORK_SERVICE
IF ll2003
*data dir
STRTOFILE([cacls "]+lcPath1+[" /E /G NETWORK_SERVICE]+[:W] +
CHR(13)+CHR(10),THIS.cAppStartPath+"temp.cmd",.T.)
STRTOFILE([cacls "]+lcPath1+[" /E /G NETWORK_SERVICE]+[:R] +
CHR(13)+CHR(10),THIS.cAppStartPath+"temp.cmd",.T.)
*error log dir
STRTOFILE([cacls "]+lcPath2+[" /E /G NETWORK_SERVICE]+[:W] +
CHR(13)+CHR(10),THIS.cAppStartPath+"temp.cmd",.T.)
*app temp dir
STRTOFILE([cacls "]+lcPath3+[" /E /G NETWORK_SERVICE]+[:W] +
CHR(13)+CHR(10),THIS.cAppStartPath+"temp.cmd",.T.)
*general temp dir
STRTOFILE([cacls "]+lcPath4+[" /E /G NETWORK_SERVICE]+[:W] +
CHR(13)+CHR(10),THIS.cAppStartPath+"temp.cmd",.T.)
*uploads temp dir
STRTOFILE([cacls "]+lcPath5+[" /E /G NETWORK_SERVICE]+[:W] +
CHR(13)+CHR(10),THIS.cAppStartPath+"temp.cmd",.T.)
*individual data files
FOR lnI = 1 TO lnFileCount
STRTOFILE([cacls "]+lcPath1+[\]+laDataFiles(lnI,1)+[" /E /G
NETWORK_SERVICE]+[:W] + CHR(13)+CHR(10),THIS.cAppStartPath+"temp.cmd",.T.)
STRTOFILE([cacls "]+lcPath1+[\]+laDataFiles(lnI,1)+[" /E /G
NETWORK_SERVICE]+[:R] + CHR(13)+CHR(10),THIS.cAppStartPath+"temp.cmd",.T.)
ENDFOR
ENDIF
<shall@xxxxxxxx> wrote in message
news:1150142259.727825.284520@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I want to have a web page open to the public.
When one presses "OK", it calls the DLL.
I need the DLL to be run as Administrator.
I've looked at GetUserName, impersonate.
When a web page calls a DLL, how do I find out if it's being
run as SYSTEM, or INTERACTIVE, OR NETWORK, etc ?
TIA
Steve
.
- References:
- newbie Calling DLL in Server2003
- From: shall
- newbie Calling DLL in Server2003
- Prev by Date: Re: OCR
- Next by Date: Re: Consuming web service with VFP9 sp1
- Previous by thread: newbie Calling DLL in Server2003
- Next by thread: Read ini file to retrieve file paths
- Index(es):
Relevant Pages
|