Thanks Guys... Its fixed for me also:cool:
deyadav
Posts
-
Another "fatal error RC1107" bug... -
On Vista GetUserObjectInformation return 0 for lpnLengthNeeded...I tried with all the combinations but its failing with all on Vista... maybe this is because in Vista MS moved all the services in Session 0 (i still have to dig into it).
-
On Vista GetUserObjectInformation return 0 for lpnLengthNeeded...I have a service in which i am enumarating windowstations and then all the Desktops. Then i open each desktop and get user object info to get the SID... everything is working fine on Win2000, XP but on Vista GetUserObjectInformation API returns 0 for lpnLengthNeeded which is needed to a allocated the memory Code snippet.... HDESK hDesk = OpenDesktop(lpszDesktop, DF_ALLOWOTHERACCOUNTHOOK,TRUE, DESKTOP_ENUMERATE); if(hDesk) { if(!GetUserObjectInformation(hDesk, UOI_USER_SID, NULL, 0, &dwLength)) { if (GetLastError() != ERROR_INSUFFICIENT_BUFFER) AtlThrowLastWin32(); } // //If no user is associated, the value of dwLength is zero. // if(dwLength) { PSID pSid = 0; pSid = (PSID) HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY, dwLength); if (pSid == NULL) AtlThrow(E_OUTOFMEMORY); if (!GetUserObjectInformation(hDesk, UOI_USER_SID, pSid , dwLength, &dwLength)) AtlThrowLastWin32(); char str[250]; DWORD dw = 260; GetTextualSid(pSid,str,&dw); ///code is available in MSDN char lpName[250]; char lpDomain[250]; SID_NAME_USE SidType; if( !LookupAccountSid(0, pSid, lpName, &dw, lpDomain, &dw , &SidType ) ) { dw = GetLastError(); if( dw == ERROR_NONE_MAPPED ) wsprintf(ss,"=====SID == %s ====== NAME: NONE_MAPPED",str); else wsprintf(ss,"=====SID == %s ====== NAME: %s [%d]",str,lpName,SidType); } } }
-
Debug and attach to a processno i have the admistrative rights and when i do CTRL+ALT+DEL i can see all the running processes in the Task Manager.
-
Debug and attach to a processthankx for ur reply but my problem is I DON'T SEE the processes in the process dialog.... Build|Start debug|Attach to process... now in the process dialog all the running processes r there.... but on my system it's blank(not a single process is there)..... YYYYYYY is my question.... do i have to make any settings for this?????? :zzz:
-
Debug and attach to a processi made a sample application and before i try to debug the dll i run the sample application so that i can select it from the process dialog, but there i don't see anything..... :confused:
-
Debug and attach to a processi m trying to debug a dll and when i try to attach it to a running process, i don't see any process in the process dialog box WHY? steps: 1: create new dll project 2: do anything..... 3: from the debug menu select start debug option 4: then select attach to process 5: now the process dialog box appears now i have to select a process from the list but on my system i don't see any process in this process dialog. Dev Dev