Click here to Skip to main content
15,886,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Difference between CWaitCursor SetCursor(LoadCursor(NULL, IDC_WAIT)); Pin
«_Superman_»7-Jun-09 20:56
professional«_Superman_»7-Jun-09 20:56 
GeneralRe: Difference between CWaitCursor SetCursor(LoadCursor(NULL, IDC_WAIT)); Pin
ptr_Electron7-Jun-09 23:21
ptr_Electron7-Jun-09 23:21 
AnswerRe: Difference between CWaitCursor SetCursor(LoadCursor(NULL, IDC_WAIT)); Pin
CPallini7-Jun-09 21:03
mveCPallini7-Jun-09 21:03 
GeneralRe: Difference between CWaitCursor SetCursor(LoadCursor(NULL, IDC_WAIT)); Pin
ptr_Electron7-Jun-09 22:56
ptr_Electron7-Jun-09 22:56 
GeneralRe: Difference between CWaitCursor SetCursor(LoadCursor(NULL, IDC_WAIT)); Pin
Chandrasekharan P8-Jun-09 0:00
Chandrasekharan P8-Jun-09 0:00 
QuestionMapViewofFile fails because memory not being continuous. Pin
krishnan.s7-Jun-09 20:38
krishnan.s7-Jun-09 20:38 
AnswerRe: MapViewofFile fails because memory not being continuous. Pin
«_Superman_»7-Jun-09 20:59
professional«_Superman_»7-Jun-09 20:59 
QuestionNetShareAdd with user permission Pin
Nyil7-Jun-09 20:13
Nyil7-Jun-09 20:13 
I have a list of domains users( ie domain\user1, domain\user2, etc.. ), and I want to share a folder for this users only.

i am tried with NetShareAdd(). and succeed to share with everyone Read permission. But I do not want to give everyone ,really want to specify the users

This is the Code block i have tried.

#define MAXLEN 256
NET_API_STATUS res;
SHARE_INFO_502 p;
DWORD parm_err = 0;

char *dir="TESTSHARE";
wchar_t  shareName[MAXLEN];
mbstowcs( shareName, dir, MAXLEN );

char* remark = "TESTSHARE to test NetShareAdd";
wchar_t  ShareRemark[MAXLEN];
mbstowcs( ShareRemark, remark, MAXLEN );

p.shi502_passwd = NULL;
p.shi502_permissions = ACCESS_READ;
p.shi502_netname = LPSTR(shareName);
p.shi502_type = STYPE_DISKTREE; // disk drive
p.shi502_remark = LPSTR(ShareRemark);
p.shi502_max_uses = 4;
p.shi502_current_uses = 0;

res = NetShareAdd(NULL, 502, (LPBYTE) &p, &parm_err);


can Anyone one help me..
Thanks in advance
QuestionMaking GUI for Capicom Certificates Pin
UserNameless7-Jun-09 20:05
UserNameless7-Jun-09 20:05 
AnswerRe: Making GUI for Capicom Certificates Pin
Garth J Lancaster7-Jun-09 20:43
professionalGarth J Lancaster7-Jun-09 20:43 
GeneralRe: Making GUI for Capicom Certificates Pin
UserNameless7-Jun-09 20:49
UserNameless7-Jun-09 20:49 
QuestionMemory Alignment - 32 bit Pin
Richard Andrew x647-Jun-09 17:16
professionalRichard Andrew x647-Jun-09 17:16 
AnswerRe: Memory Alignment - 32 bit Pin
Joe Woodbury7-Jun-09 17:25
professionalJoe Woodbury7-Jun-09 17:25 
GeneralRe: Memory Alignment - 32 bit Pin
Richard Andrew x647-Jun-09 19:33
professionalRichard Andrew x647-Jun-09 19:33 
Question(Potential) Memory Mapped File question Pin
swjam7-Jun-09 15:53
swjam7-Jun-09 15:53 
AnswerRe: (Potential) Memory Mapped File question Pin
Joe Woodbury7-Jun-09 17:31
professionalJoe Woodbury7-Jun-09 17:31 
GeneralRe: (Potential) Memory Mapped File question Pin
swjam7-Jun-09 22:54
swjam7-Jun-09 22:54 
GeneralRe: (Potential) Memory Mapped File question Pin
Joe Woodbury8-Jun-09 5:28
professionalJoe Woodbury8-Jun-09 5:28 
GeneralRe: (Potential) Memory Mapped File question Pin
swjam8-Jun-09 18:30
swjam8-Jun-09 18:30 
GeneralRe: (Potential) Memory Mapped File question Pin
Joe Woodbury8-Jun-09 19:34
professionalJoe Woodbury8-Jun-09 19:34 
GeneralRe: (Potential) Memory Mapped File question Pin
swjam9-Jun-09 0:56
swjam9-Jun-09 0:56 
GeneralRe: (Potential) Memory Mapped File question Pin
Joe Woodbury9-Jun-09 5:51
professionalJoe Woodbury9-Jun-09 5:51 
AnswerRe: (Potential) Memory Mapped File question Pin
ktm TechMan7-Jun-09 20:30
ktm TechMan7-Jun-09 20:30 
QuestionEdit the windows BCD using linux Pin
SalilJain7-Jun-09 9:23
SalilJain7-Jun-09 9:23 
QuestionRe: Edit the windows BCD using linux Pin
David Crow7-Jun-09 16:35
David Crow7-Jun-09 16:35 

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.