Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
J

jbalaji84

@jbalaji84
About
Posts
11
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • PostMessage
    J jbalaji84

    hi Tom, did u get the answer for your question, "if we want to direct a message to another process will both PostMessage/SendMessage work?" If so, can you reply that to me? I dont think postmessage/sendmessage works across processes. it that right? Thanks in advance. cheers....! Balaji

    C / C++ / MFC question data-structures

  • how to change administrator user rights
    J jbalaji84

    Thanks for that. I will try this and let you know the status ..... Hope this works :)

    Windows API windows-admin business help tutorial question

  • how to change administrator user rights
    J jbalaji84

    Unfortunately, my application is automatically invoked by CreateProcess() for that. So i cant right click that exe and do so? Is there any other way? OR can u provide the info about how to include manifest file in my code so that i can try that directly??? Balaji.J

    Windows API windows-admin business help tutorial question

  • System32 access denied
    J jbalaji84

    ya, u didnt say me :-D But apart from that line, the remaining part of the discussion is for you also...:-O Balaji.J

    Windows API csharp c++ help workspace

  • how to change administrator user rights
    J jbalaji84

    I tried running the application by logging into the "Administrator" user. In that case, there was no problem and everything works fine. But when i log-in in to the user account which is of "Administrator" type in Vista, and tried running my application, it fails in that CreateFile() function call with "Access is Denied" error value. Balaji.J

    Windows API windows-admin business help tutorial question

  • System32 access denied
    J jbalaji84

    Hi, Thanks for the reply. I am not trying to access Registry path using CreateFile(), i was trying to access manually through REGEDIT. Now after giving permission for that Registry path manually, by right clicking that registry and setting the "Permission", i was able to access that Registry manually. The main problem now is, i am trying to access the device path using its GUID valus,Now the code fails in the following CreateFile() function and when i see the reason using GetLastError(), it says "Access is Denied". The following is the piece of code which fails(Remember, this same code works well in XP and 2000. Only in Vista, i am getting this problem): snprintf(device_path, sizeof(device_path), "\\\\.\\%s.tap",device_guid); thandle =CreateFile (device_path, GENERIC_READ | GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_SYSTEM | FILE_FLAG_OVERLAPPED, 0); if ( thandle == INVALID_HANDLE_VALUE) { LOG (stderr,"Error : CreateFile failed on Netdirect device: %s",device_path); exit (1); } Could you tell me why this CreateFile() functin fails in that above case? Thanks in Advance. Balaji.J

    Windows API csharp c++ help workspace

  • how to change administrator user rights
    J jbalaji84

    Hi, Thanks for the reply. I am not trying to access Registry path using CreateFile(), i was trying to access manually through REGEDIT. Now after giving permission for that Registry path manually, by right clicking that registry and setting the "Permission", i was able to access that Registry manually. The main problem now is, i am trying to access the device path using its GUID valus,Now the code fails in the following CreateFile() function and when i see the reason using GetLastError(), it says "Access is Denied". The following is the piece of code which fails(Remember, this same code works well in XP and 2000. Only in Vista, i am getting this problem): snprintf(device_path, sizeof(device_path), "\\\\.\\%s.tap",device_guid); thandle =CreateFile (device_path, GENERIC_READ | GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_SYSTEM | FILE_FLAG_OVERLAPPED, 0); if ( thandle == INVALID_HANDLE_VALUE) { LOG (stderr,"Error : CreateFile failed on Netdirect device: %s",device_path); exit (1); } Could you tell me why this CreateFile() functin fails in that above case? Thanks in Advance. Balaji.J

    Windows API windows-admin business help tutorial question

  • System32 access denied
    J jbalaji84

    Hi Jonathan, I am getting similar problem relatd to access denied for Administrator user as follows: I Created a user with admin rights in Vista Business trial version. Account type of the user is 'Administrator'. The following registry access is denied for that user when i tried accessing it through CreateFile() fuction: HKEY_LOCAL_MACHINE\CurrentControlSet\Control\Class\\Properties Even when i tried accessing the above location directly using "REGEDIT", i am getting a pop-up dialog saying "Access restricted". Do we need to do any specific configuration change for resolving this issue? I need to access the above location as a user with Admin rights. How can i gain access to that registry? Any tweaking ???? Balaji.J

    Windows API csharp c++ help workspace

  • System32 access denied
    J jbalaji84

    Hi Jonathan, I am getting similar problem relatd to access denied for Administrator user as follows: I Created a user with admin rights in Vista Business trial version. Account type of the user is 'Administrator'. The following registry access is denied for that user when i tried accessing it through CreateFile() fuction: HKEY_LOCAL_MACHINE\CurrentControlSet\Control\Class\\Properties Even when i tried accessing the above location directly using "REGEDIT", i am getting a pop-up dialog saying "Access restricted". Do we need to do any specific configuration change for resolving this issue? I need to access the above location as a user with Admin rights. How can i gain access to that registry? Any tweaking ???? :)

    Windows API csharp c++ help workspace

  • System32 access denied
    J jbalaji84

    Hi Jonathan, I am getting similar problem relatd to access denied for Administrator user as follows: I Created a user with admin rights in Vista Business trial version. Account type of the user is 'Administrator'. The following registry access is denied for that user when i tried accessing it through CreateFile() fuction: HKEY_LOCAL_MACHINE\CurrentControlSet\Control\Class\\Properties Even when i tried accessing the above location directly using "REGEDIT", i am getting a pop-up dialog saying "Access restricted". Do we need to do any specific configuration change for resolving this issue? I need to access the above location as a user with Admin rights. How can i gain access to that registry? Any tweaking ???? :) Balaji.J

    Windows API csharp c++ help workspace

  • how to change administrator user rights
    J jbalaji84

    Hi, I Created a user with admin rights in Vista Business trial version. Account type of the user is 'Administrator'. The following registry access is denied for that user when i tried accessing it through CreateFile() fuction: HKEY_LOCAL_MACHINE\CurrentControlSet\Control\Class\\Properties Even when i tried accessing the above location directly using "REGEDIT", i am getting a pop-up dialog saying "Access restricted". Do we need to do any specific configuration change for resolving this issue? I need to access the above location as a user with Admin rights. How can we acheive that? Balaji.J

    Windows API windows-admin business help tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups