Re: newbie Calling DLL in Server2003



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



.



Relevant Pages

  • Re: Execution detail of Asp.net
    ... page in another temp dir. ... then loads them. ... > compiles the page to a dll in a temp dir, and loads the page (again a ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Distribution of MFC42.dll
    ... >>putting out for several years as a partial solution to DLL hell. ... in which anyone can write to the Windows directories. ... "temp" and recompiled, leaving this z.dll in my temp directory. ... EXE is in temp, DLL is in temp, DLL is in System32: ...
    (microsoft.public.vc.mfc)
  • Re: Temp Table Problem
    ... >I have a query that creates a temp table on SQL Server 2K. ... >This was actually a unit in a working program that was converted to a DLL. ... SQL server has two kinds of temporary tables. ... local temporary tables visible only to the connection that creates them. ...
    (borland.public.delphi.database.ado)
  • Re: Elevated Privileges
    ... I hope that wasn't "temp" as in %Temp%? ... .DLL will work if stored elsewhere (my choice would be in the app's ... >the core software that you can not get rid of, ... holes through which malware can escape limited rights etc. ...
    (microsoft.public.windowsxp.security_admin)