locked
file locked with only readers windows vista & windows 7 RRS feed

  • General discussion

  • Hello All,

    Please help me in this......... I am having my application in that I tried to create a process in the following way:

    strcat(szPopExePath,"popexe.exe"); //here szpopExePath contains the location C:\Program Files\Application\specific application\

    flag3 = CreateProcess(szPopExePath,"/tapi",
    NULL,
    NULL,
    TRUE, // handle inheritance flag
    0, // creation flags
    NULL, // pointer to new environment block
    NULL, // pointer to current directory name
    &sui, // pointer to STARTUPINFO
    &pi // pointer to PROCESS_INFORMATION
    );

    flag3 is having value 1 which means process created correctly but "popexe.exe" is not running.If I got to task manager and check I am unable to find the popexe.exe process running.
    I have managed UAC also.
    In command prompt it is working fine.
    If I run the same application in windows XP process is getting created.
    Am I doing some thing wrong??
    I have checked it in process monitor. I have got the following message

    "file locked with only readers " because of this my application is unable to execute popexe.exe in the specified path. The same is working fine in windows XP.

    Please help me in this guys....

    Thank u very much in advance......

     

    • Changed type Nicholas Li Tuesday, March 6, 2012 9:31 AM
    Tuesday, February 7, 2012 6:44 AM

All replies

  • Message of process monitor in detail:

    date : 2/7/2012 2:19:52 PM

    Thread :5604

    class : File System

    operation : CreateFileMapping

    Result : FILE LOCKED WITH ONLY READERS

    Path : C:\Program Files\Application\specific application\popexe.exe

    Duration : 0.0000055

    SyncType: SyncTypeCreateSection
    PageProtection: PAGE_EXECUTE

    Can any one please help me on this?

    Tuesday, February 7, 2012 8:54 AM
  • How do you managed UAC?

    seems you don't have permission.


    मनोज कुमार जांगिड

    Tuesday, February 7, 2012 1:59 PM
  • Managed UAC means I have changed it in control panel....
    Tuesday, February 7, 2012 2:03 PM
  • Hi,

    You approached us with the problem about development. Unfortunately, our forum is used to discuss Windows 7 related issue. I suggest that you post your question to MSDN forum:
    http://social.msdn.microsoft.com/Forums/en-US/categories

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.


    William Tan

    TechNet Community Support

    Monday, February 13, 2012 1:46 AM