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
jbalaji84
Posts
-
PostMessage -
how to change administrator user rightsThanks for that. I will try this and let you know the status ..... Hope this works :)
-
how to change administrator user rightsUnfortunately, 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
-
System32 access deniedya, u didnt say me :-D But apart from that line, the remaining part of the discussion is for you also...:-O Balaji.J
-
how to change administrator user rightsI 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
-
System32 access deniedHi, 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 -
how to change administrator user rightsHi, 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 -
System32 access deniedHi 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
-
System32 access deniedHi 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 ???? :)
-
System32 access deniedHi 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
-
how to change administrator user rightsHi, 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