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

C / C++ / MFC

 
GeneralGet the path to MS Office Pin
Nitron9-Jun-05 8:12
Nitron9-Jun-05 8:12 
GeneralRe: Get the path to MS Office Pin
Kappy9-Jun-05 10:49
Kappy9-Jun-05 10:49 
GeneralRe: Get the path to MS Office Pin
Tom Archer9-Jun-05 16:18
Tom Archer9-Jun-05 16:18 
GeneralRe: Get the path to MS Office Pin
Nitron10-Jun-05 2:42
Nitron10-Jun-05 2:42 
GeneralMenu in child window Pin
PJ Arends9-Jun-05 7:02
professionalPJ Arends9-Jun-05 7:02 
GeneralRe: Menu in child window Pin
James R. Twine9-Jun-05 7:22
James R. Twine9-Jun-05 7:22 
GeneralRe: Menu in child window Pin
PJ Arends9-Jun-05 17:56
professionalPJ Arends9-Jun-05 17:56 
QuestionHow to Create A Shared Folder Pin
f29-Jun-05 6:41
f29-Jun-05 6:41 
i was surfing the whole noon just looking on how to create a shared folder over network with permission. i also couldn't found any example in MSDN. at last i found some code snippets on some forum.. anyone could give some code snippets? thanks in advanced.

SECURITY_INFORMATION SecurityInformation;
SecurityInformation = OWNER_SECURITY_INFORMATION;

SECURITY_DESCRIPTOR SecurityDescriptor;
ACL Acl;
SID Sid;

DWORD dwAclAllowed;
dwAclAllowed = sizeof(ACCESS_ALLOWED_ACE) - sizeof(DWORD) + GetLengthSid(&Sid);

InitializeAcl(&Acl, dwAclAllowed, ACL_REVISION);
InitializeSecurityDescriptor(&SecurityDescriptor, SECURITY_DESCRIPTOR_REVISION);
SetSecurityDescriptorOwner(&SecurityDescriptor, &Sid, TRUE);
SetSecurityDescriptorGroup(&SecurityDescriptor, &Sid, TRUE);
SetSecurityDescriptorDacl(&SecurityDescriptor, TRUE, &Acl, TRUE);
SetSecurityDescriptorSacl(&SecurityDescriptor, TRUE, &Acl, TRUE);

SetFileSecurity(strOCRDownloadFontLibPath, SecurityInformation, &SecurityDescriptor);


from,
-= aLbert =-

GeneralailFreeing memory Pin
laiju9-Jun-05 4:57
laiju9-Jun-05 4:57 
GeneralRe: ailFreeing memory Pin
Cedric Moonen9-Jun-05 5:05
Cedric Moonen9-Jun-05 5:05 
GeneralRe: ailFreeing memory Pin
Budric B.9-Jun-05 5:13
Budric B.9-Jun-05 5:13 
GeneralRead a line from a text file Pin
bkphat9-Jun-05 4:34
bkphat9-Jun-05 4:34 
GeneralRe: Read a line from a text file Pin
toxcct9-Jun-05 5:18
toxcct9-Jun-05 5:18 
GeneralRe: Read a line from a text file Pin
James R. Twine9-Jun-05 5:49
James R. Twine9-Jun-05 5:49 
GeneralChanging the font of a control ( CStatic ) Pin
Maximilien9-Jun-05 4:34
Maximilien9-Jun-05 4:34 
GeneralRe: Changing the font of a control ( CStatic ) Pin
James R. Twine9-Jun-05 4:42
James R. Twine9-Jun-05 4:42 
GeneralRe: Changing the font of a control ( CStatic ) Pin
Maximilien9-Jun-05 5:32
Maximilien9-Jun-05 5:32 
GeneralRe: Changing the font of a control ( CStatic ) Pin
James R. Twine9-Jun-05 5:45
James R. Twine9-Jun-05 5:45 
GeneralRe: Changing the font of a control ( CStatic ) Pin
Michael Dunn9-Jun-05 6:55
sitebuilderMichael Dunn9-Jun-05 6:55 
GeneralRe: Changing the font of a control ( CStatic ) Pin
Maximilien9-Jun-05 7:04
Maximilien9-Jun-05 7:04 
GeneralMSVCIRT error Pin
ronwurster9-Jun-05 4:06
ronwurster9-Jun-05 4:06 
GeneralRe: MSVCIRT error Pin
Blake Miller9-Jun-05 6:29
Blake Miller9-Jun-05 6:29 
Generalimage processing Pin
Arrun9-Jun-05 2:25
Arrun9-Jun-05 2:25 
GeneralRe: image processing Pin
Member 14276929-Jun-05 2:47
Member 14276929-Jun-05 2:47 
GeneralLoad msword doc files in mfc Pin
GnanaprakashJebaraj9-Jun-05 2:15
GnanaprakashJebaraj9-Jun-05 2:15 

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.