Click here to Skip to main content
16,004,887 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow Can I check file permissions? Pin
Dimitris Vikeloudas16-May-05 4:18
Dimitris Vikeloudas16-May-05 4:18 
GeneralPlease help me Pin
microsoftcertificate16-May-05 3:54
sussmicrosoftcertificate16-May-05 3:54 
GeneralRe: Please help me Pin
microsoftcertificate16-May-05 6:22
sussmicrosoftcertificate16-May-05 6:22 
GeneralRe: Please help me Pin
Christian Graus16-May-05 14:25
protectorChristian Graus16-May-05 14:25 
GeneralRe: Please help me Pin
ucc80116-May-05 20:31
ucc80116-May-05 20:31 
GeneralBrowsing workgroups Pin
badzio16-May-05 3:33
badzio16-May-05 3:33 
GeneralRe: Browsing workgroups Pin
David Crow16-May-05 3:38
David Crow16-May-05 3:38 
GeneralRe: Browsing workgroups Pin
badzio16-May-05 21:54
badzio16-May-05 21:54 
<br />
const WCHAR * srvName=NULL;<br />
DWORD dwPrefMaxLen = MAX_PREFERRED_LENGTH;<br />
DWORD dwEntriesRead = 0;<br />
DWORD dwTotalEntries = 0;<br />
DWORD dwTotalCount = 0;<br />
DWORD dwLevel = 0;<br />
DWORD dwResumeHandle = 0;<br />
NET_API_STATUS nStatus;<br />
GROUP_USERS_INFO_0 usrbuf;<br />
CString ls_grp="Alfasoft";<br />
wchar_t grp[UNCLEN+4];<br />
mbstowcs( grp, ls_grp, lenof( grp) );<br />
nStatus = NetGroupGetUsers(srvName,grp,dwLevel, (LPBYTE *) &usrbuf,dwPrefMaxLen,&dwEntriesRead,&dwTotalEntries,&dwResumeHandle);<br />

result: nStatus = 2220 (NERR_GroupNotFound)
but groupname - Alfasoft is valid. This group exists (my computers in in this group)
So - what do I do wrong?

I'm affraid that this function is linked with groups on computer not in LAN
------------------------------------------
gourangaWink | ;-)
JID badzio(at)chrome(dot)pl
------------------------------------------
GeneralRe: Browsing workgroups Pin
David Crow17-May-05 3:52
David Crow17-May-05 3:52 
GeneralRe: Browsing workgroups Pin
badzio17-May-05 4:01
badzio17-May-05 4:01 
GeneralRe: Browsing workgroups Pin
David Crow17-May-05 4:09
David Crow17-May-05 4:09 
GeneralRe: Browsing workgroups Pin
badzio17-May-05 4:25
badzio17-May-05 4:25 
GeneralRe: Browsing workgroups Pin
David Crow17-May-05 5:16
David Crow17-May-05 5:16 
GeneralRe: Browsing workgroups Pin
Graham Bradshaw16-May-05 14:13
Graham Bradshaw16-May-05 14:13 
GeneralRe: Browsing workgroups Pin
badzio17-May-05 4:28
badzio17-May-05 4:28 
GeneralRe: Browsing workgroups Pin
Graham Bradshaw17-May-05 4:33
Graham Bradshaw17-May-05 4:33 
GeneralRe: Browsing workgroups Pin
badzio17-May-05 22:12
badzio17-May-05 22:12 
GeneralRe: Browsing workgroups Pin
Graham Bradshaw17-May-05 22:17
Graham Bradshaw17-May-05 22:17 
GeneralRe: Browsing workgroups Pin
badzio18-May-05 3:29
badzio18-May-05 3:29 
GeneralRe: Browsing workgroups Pin
Graham Bradshaw18-May-05 3:48
Graham Bradshaw18-May-05 3:48 
GeneralRe: Browsing workgroups Pin
badzio18-May-05 21:36
badzio18-May-05 21:36 
GeneralRe: Browsing workgroups Pin
Graham Bradshaw19-May-05 2:44
Graham Bradshaw19-May-05 2:44 
GeneralRe: Browsing workgroups Pin
badzio19-May-05 2:52
badzio19-May-05 2:52 
GeneralRe: Browsing workgroups Pin
ThatsAlok16-May-05 18:24
ThatsAlok16-May-05 18:24 
GeneralRe: Browsing workgroups Pin
badzio17-May-05 4:41
badzio17-May-05 4:41 

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.