Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by lsugirl

  1. lsugirl

    CreateProcessWithLogonW example

    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...
  2. lsugirl

    CreateProcessWithLogonW example

    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 =...
  3. lsugirl

    CreateProcessWithLogonW example

    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 , ...
  4. lsugirl

    CreateProcessWithLogonW example

    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...
  5. lsugirl

    CreateProcessWithLogonW example

    Thanks. I don't get the error anymore and it seems to run fine but the dll isn't getting registered.
  6. lsugirl

    CreateProcessWithLogonW example

    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...
  7. lsugirl

    Access to registry denied

    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...
  8. lsugirl

    When does GETENV("TEMP") return Long file names?

    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 =...
  9. lsugirl

    When does GETENV("TEMP") return Long file names?

    If I step through the code, I get "Error occurred, code is: 0". If there are no breakpoints in the code, I get "Error occurred, code is: 123
  10. lsugirl

    When does GETENV("TEMP") return Long file names?

    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...
  11. lsugirl

    When does GETENV("TEMP") return Long file names?

    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...
  12. lsugirl

    Setting up SSL

    I found this great example. http://www.codeproject.com/csharp/HttpWebRequest_Response.asp
  13. lsugirl

    Setting up SSL

    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
  14. lsugirl

    Setting up SSL

    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.
  15. lsugirl

    HttpWebResponse with internal proxy

    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...

Part and Inventory Search

Back
Top