Click here to Skip to main content
16,014,294 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ gotchas Pin
Roger Stoltz10-Jun-07 21:57
Roger Stoltz10-Jun-07 21:57 
GeneralRe: C++ gotchas Pin
CPallini10-Jun-07 22:11
mveCPallini10-Jun-07 22:11 
GeneralRe: C++ gotchas Pin
Roger Stoltz10-Jun-07 23:51
Roger Stoltz10-Jun-07 23:51 
GeneralRe: C++ gotchas Pin
CPallini11-Jun-07 0:22
mveCPallini11-Jun-07 0:22 
Questionbasic question Pin
smzhaq10-Jun-07 9:42
smzhaq10-Jun-07 9:42 
AnswerRe: basic question Pin
Christian Graus10-Jun-07 12:24
protectorChristian Graus10-Jun-07 12:24 
GeneralRe: basic question Pin
smzhaq10-Jun-07 22:23
smzhaq10-Jun-07 22:23 
QuestionGetNamedSecurityInfo problem Pin
KellyR10-Jun-07 9:21
KellyR10-Jun-07 9:21 
Hi, I'm using GetNamedSecurityInfo in a program I wrote to remove some registry keys from the Windows XP registry.

It seems to work on all the keys except for one. For some reason on one key it returns "The parameter is incorrect" as its error, yet I attempt to find this same key a moment later using the same path in a different function and it says that the key is valid.

Does anyone know what this "parameter is incorrect" might mean, besides it just having an invalid path name? All I'm passing it is a path, a pointer to an ACL to fill, and a pointer to a security descriptor.

Here's the code:

void RemoveAccessDenied(LPTSTR FullKey)<br />
{<br />
  PSECURITY_DESCRIPTOR pSD = NULL;<br />
  PACL pACL = NULL;<br />
<br />
 GetNamedSecurityInfo(FullKey, SE_REGISTRY_KEY, DACL_SECURITY_INFORMATION, NULL, NULL, &pACL, NULL,  &pSD);<br />
<br />
//.. blah blah etc<br />
}


Thanks!


KR

AnswerRe: GetNamedSecurityInfo problem Pin
KellyR10-Jun-07 18:05
KellyR10-Jun-07 18:05 
GeneralRe: GetNamedSecurityInfo problem Pin
Mark Salsbery10-Jun-07 18:13
Mark Salsbery10-Jun-07 18:13 
QuestionUsing Microsoft Visual C++ 2005EE Compile Error Pin
Blekk10-Jun-07 8:20
Blekk10-Jun-07 8:20 
AnswerRe: Using Microsoft Visual C++ 2005EE Pin
Christian Graus10-Jun-07 12:27
protectorChristian Graus10-Jun-07 12:27 
GeneralRe: Using Microsoft Visual C++ 2005EE Pin
Blekk11-Jun-07 2:46
Blekk11-Jun-07 2:46 
Questionplease show me the way to read file text quickly Pin
Pham duc an10-Jun-07 7:09
Pham duc an10-Jun-07 7:09 
AnswerRe: please show me the way to read file text quickly Pin
Matthew Faithfull10-Jun-07 8:21
Matthew Faithfull10-Jun-07 8:21 
Questionoutput to printer Pin
KARFER10-Jun-07 4:32
KARFER10-Jun-07 4:32 
AnswerRe: output to printer Pin
Randor 10-Jun-07 11:00
professional Randor 10-Jun-07 11:00 
QuestionIs CSocket a blocking socket ? Pin
Girish60110-Jun-07 1:01
Girish60110-Jun-07 1:01 
AnswerRe: Is CSocket a blocking socket ? Pin
S Douglas10-Jun-07 2:11
professionalS Douglas10-Jun-07 2:11 
AnswerRe: Is CSocket a blocking socket ? Pin
Mark Salsbery10-Jun-07 6:44
Mark Salsbery10-Jun-07 6:44 
Question"Add Event Handler" greyed out in VS2005 Pin
flippydeflippydebop9-Jun-07 22:09
flippydeflippydebop9-Jun-07 22:09 
AnswerRe: "Add Event Handler" greyed out in VS2005 Pin
#realJSOP10-Jun-07 0:59
professional#realJSOP10-Jun-07 0:59 
GeneralRe: "Add Event Handler" greyed out in VS2005 Pin
S Douglas10-Jun-07 2:16
professionalS Douglas10-Jun-07 2:16 
GeneralRe: "Add Event Handler" greyed out in VS2005 Pin
#realJSOP11-Jun-07 2:42
professional#realJSOP11-Jun-07 2:42 
GeneralRe: "Add Event Handler" greyed out in VS2005 Pin
flippydeflippydebop10-Jun-07 2:34
flippydeflippydebop10-Jun-07 2:34 

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.