Click here to Skip to main content
15,902,198 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Passing one-dimensional arrays to functions Pin
Nitron29-Dec-03 11:10
Nitron29-Dec-03 11:10 
GeneralInterrupt functions Pin
Joe_G29-Dec-03 3:09
Joe_G29-Dec-03 3:09 
GeneralRe: Interrupt functions Pin
David Crow29-Dec-03 3:46
David Crow29-Dec-03 3:46 
GeneralRe: Interrupt functions Pin
Gary R. Wheeler29-Dec-03 11:36
Gary R. Wheeler29-Dec-03 11:36 
QuestionHow to get the user group in win NT/2000/XP Pin
C-lviu29-Dec-03 2:45
C-lviu29-Dec-03 2:45 
AnswerRe: How to get the user group in win NT/2000/XP Pin
David Crow29-Dec-03 3:00
David Crow29-Dec-03 3:00 
GeneralRe: How to get the user group in win NT/2000/XP Pin
C-lviu29-Dec-03 4:11
C-lviu29-Dec-03 4:11 
GeneralRe: How to get the user group in win NT/2000/XP Pin
David Crow29-Dec-03 5:17
David Crow29-Dec-03 5:17 
I can use the following to get all users on my PDC:

LPUSER_INFO_0   pUserInfo = NULL,
                pUserInfoTemp = NULL;
NET_API_STATUS  nStatus;
DWORD           dwIndex,
                dwEntriesRead, 
                dwTotalEntries, 
                dwResumeHandle = 0;
CString         strText;
 
nStatus = NetUserEnum(_T("\\\\tulsant"), 0, 0, (LPBYTE *) &pUserInfo, MAX_PREFERRED_LENGTH, &dwEntriesRead, &dwTotalEntries, &dwResumeHandle);
if (nStatus == NERR_Success || nStatus == ERROR_MORE_DATA)
{
    pUserInfoTemp = pUserInfo;
    if (NULL != pUserInfoTemp)
    {
        for (dwIndex = 0; dwIndex < dwEntriesRead; dwIndex++)
        {
            if (NULL == pUserInfoTemp)
                break;
 
            strText = pUserInfoTemp->usri0_name;
            m_cbUserList.AddString(strText);
 
            pUserInfoTemp++;
        }
    }
}



A rich person is not the one who has the most, but the one that needs the least.
GeneralRe: How to get the user group in win NT/2000/XP Pin
C-lviu29-Dec-03 5:40
C-lviu29-Dec-03 5:40 
GeneralRe: How to get the user group in win NT/2000/XP Pin
David Crow29-Dec-03 5:54
David Crow29-Dec-03 5:54 
AnswerRe: How to get the user group in win NT/2000/XP Pin
Brian Shifrin29-Dec-03 7:26
Brian Shifrin29-Dec-03 7:26 
QuestionHow could print a line without ending the page? Pin
shooterlily29-Dec-03 2:32
shooterlily29-Dec-03 2:32 
AnswerRe: How could print a line without ending the page? Pin
Roger Allen29-Dec-03 4:48
Roger Allen29-Dec-03 4:48 
GeneralRe: How could print a line without ending the page? Pin
shooterlily29-Dec-03 18:37
shooterlily29-Dec-03 18:37 
AnswerRe: How could print a line without ending the page? Pin
Brian Shifrin29-Dec-03 7:56
Brian Shifrin29-Dec-03 7:56 
GeneralRestore netwerk connection Pin
JensB29-Dec-03 1:49
JensB29-Dec-03 1:49 
GeneralSecurity code for a piece of code Pin
Anonymous29-Dec-03 1:18
Anonymous29-Dec-03 1:18 
GeneralRe: Security code for a piece of code Pin
Monty229-Dec-03 1:52
Monty229-Dec-03 1:52 
GeneralFailing to register custom ActiceX control Pin
Raghunandan S28-Dec-03 23:28
Raghunandan S28-Dec-03 23:28 
GeneralRe: Failing to register custom ActiceX control Pin
Monty229-Dec-03 0:07
Monty229-Dec-03 0:07 
GeneralRe: Failing to register custom ActiceX control Pin
Prakash Nadar29-Dec-03 0:26
Prakash Nadar29-Dec-03 0:26 
GeneralRe: Failing to register custom ActiceX control Pin
Nitron29-Dec-03 11:06
Nitron29-Dec-03 11:06 
GeneralRe: Failing to register custom ActiceX control Pin
Raghunandan S29-Dec-03 16:41
Raghunandan S29-Dec-03 16:41 
GeneralUsing CDatabase * in dll Pin
gabriel dina28-Dec-03 23:13
gabriel dina28-Dec-03 23:13 
GeneralRe: Using CDatabase * in dll Pin
David Crow29-Dec-03 3:02
David Crow29-Dec-03 3:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.