I have made some changes. The CreateProcessWithLogonW functions returns a zero (fails) but when I run GetLastError, it thinks it ran success. The dll still isn't registered. ANY ideas??? Thanks in advance.
***************
#DEFINE FORMAT_MESSAGE_FROM_SYSTEM 0x00001000 && Value for...
for Walid:
********************
FUNCTION long2str
********************
* Passed : 32-bit non-negative numeric value (m.longval)
* Returns : ASCII character representation of passed
* value in low-high format (m.retstr)
* Example :
* m.long = 999999
* m.longstr =...
I made some changes. I don't get the error in the Event Viewer anymore but the dll still isn't getting registered. I can take the command line and run it from a cmd window and it works.
CreateProcessWithLogonW( ;
cUser , ;
cDomain , ;
cPass , ...
I'm getting an error in the Event Log under Security. I don't make much sense since I'm not using Chinese.
Logon Failure:
Reason: Unknown user name or bad password
User Name: ????
Domain: ???
Logon Type: 2
Logon Process: Advapi
Authentication Package: Negotiate
Workstation...
Does anyone have a good CreateProcessWithLogonW example for registering a dll as an admin a machine? I am not a FoxPro programmer.
here is what I have so far but I'm getting a type mismatch error on the "CreateProcessWithLogonW" call.
*******************
*******************
#define...
I'm trying to register a .net dll in Foxpro 6. The user that is logged unto his machine doesn't have access to register. Sooo, I was going to use CreateProcessWithLogonW to register based on an admin. #1) does anyone have a good example of CreateProcessWithLogonW Foxpro use? I am not a...
I'm not sure what you are asking for. Is this it?
lcProgramWebDLL = 'c:\Documents and Settings\jte\process\myDll.dll'
lcShortName = lfn2sfn(lcProgramWebDLL)
?lcShortName
In lfn2sfn,
* if successful, llretval will contain the length of the
* output string
llretval =...
Thanks for the help. Now my lfn2sfn isn't getting the correct llretval when running the GetShortPathName. I'm getting a "0" error. Does anyone know what this error is? I have tried using GetShortPathName from Kernel32 and Win32API. Otherwise, my code is identical to the code above. I'm...
let me start by saying that I'm not a Foxpro programming. I'm trying to use the lfn2sfn to get the short file name of a file. I have a varible name that is passed to the function. How to I read the return?
* lcProgramWebDLL is dynamic
* lcProgramWebDLL = "'"c:\Documents and...
I think that WebHTTPRequest is suppose to handle this if the url is https. But when I use the https url, I get an error "the ServicePointManager does not support proxies of https scheme
Does anyone have any good examples of setting up SSL with an external website? I have a C# dll that is communicating with an external site. Do I create some type of certificate? Do I create a web service? Where to start?
Thanks in advance.
I have an internal proxy that is using an username/password but I need to go to a site that requires a username/password. I'm trying to create the correct HttpWebResponse to handle this situation. Does anyone have any examples? I need a web request to go through my proxy server and log into...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.