Memory issues with APIs "CreateProcessAsUser/CreateProcessWithTokenW" RRS feed

  • Question

  • Hello,
    Problem steps:
    1. A user token is obtained using the windows API "LogonUser"
    2. The user is granted the access to interactive workstation and desktop.
    3. An application "notepad.exe" is started using the APIs "CreateProcessAsUser/CreateProcessWithTokenW" with the token obtained from above steps.

    Result: Notepad.exe comes up. But when file->Open is performed then the following error is displayed.


    "Not Enough memory available to complete this operatopn. Quit one or more applications to increase available memory, and then try again."

    Instead of the simple notepad application, if other application (which uses more memory) are used in "CreateProcessAsUser/CreateProcessWithTokenW",
     then the created process is terminated.

    Note:- if the user belongs to the Local Administrators group, then everything works properly.

    Please let us know if there are anyways to handle this?

    Thanks and Regards,

    Monday, September 1, 2014 9:28 AM