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
D

deyadav

@deyadav
About
Posts
7
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Another "fatal error RC1107" bug...
    D deyadav

    Thanks Guys... Its fixed for me also:cool:

    C / C++ / MFC help csharp visual-studio com algorithms

  • On Vista GetUserObjectInformation return 0 for lpnLengthNeeded...
    D deyadav

    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).

    C / C++ / MFC

  • On Vista GetUserObjectInformation return 0 for lpnLengthNeeded...
    D deyadav

    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); } } }

    C / C++ / MFC

  • Debug and attach to a process
    D deyadav

    no i have the admistrative rights and when i do CTRL+ALT+DEL i can see all the running processes in the Task Manager.

    C / C++ / MFC debugging question

  • Debug and attach to a process
    D deyadav

    thankx 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:

    C / C++ / MFC debugging question

  • Debug and attach to a process
    D deyadav

    i 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:

    C / C++ / MFC debugging question

  • Debug and attach to a process
    D deyadav

    i 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

    C / C++ / MFC debugging 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