Click here to Skip to main content
15,914,406 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ Copy constructors Pin
Nemanja Trifunovic8-Jul-05 14:06
Nemanja Trifunovic8-Jul-05 14:06 
Generalwin32 threads Pin
Ann668-Jul-05 12:20
sussAnn668-Jul-05 12:20 
GeneralRe: win32 threads Pin
Blake V. Miller8-Jul-05 16:29
Blake V. Miller8-Jul-05 16:29 
Generalto IE programmers Pin
llp00na8-Jul-05 8:08
llp00na8-Jul-05 8:08 
GeneralRe: to IE programmers Pin
Jose Lamas Rios8-Jul-05 10:47
Jose Lamas Rios8-Jul-05 10:47 
GeneralRe: to IE programmers Pin
Ravi Bhavnani8-Jul-05 11:40
professionalRavi Bhavnani8-Jul-05 11:40 
GeneralRe: to IE programmers Pin
ThatsAlok8-Jul-05 21:21
ThatsAlok8-Jul-05 21:21 
GeneralHelp with LookupAccountSid Pin
Dimitris Vikeloudas8-Jul-05 5:54
Dimitris Vikeloudas8-Jul-05 5:54 
Hi. Iwant to get the owner name of a file or directory. I hope to get the creators name.

Thus I used the GetFileSecurity to get the file security id and then the GetSecurityOwnerDescriptor to get the account security id. Then, I stack.

According to the manual you have to use the LookupAccountSide specifing two buffers as parameters: One to get the account name and another to get the domain name. Also according to them you need to give the current size of the buffers. The call will fail if one of buffer is not large enough and it will return the correct buffer sizes. It will also fail for other reasons like network failure etc.

Does anyone knows what is the error returned due to a buffer failure? Is it the same error for both buffers or a different one? How many calls do I need until I correct the buffers (by reading the sizes and allocating the buffers) until I get anyothe legitimate failure??




Why MicroSoft, NEVER, NEVER, NEVER documents the possible ways that a function may fail??? Is this a developers friendly company???
GeneralRe: Help with LookupAccountSid Pin
David Crow8-Jul-05 6:07
David Crow8-Jul-05 6:07 
GeneralRe: Help with LookupAccountSid..still looking Pin
Dimitris Vikeloudas8-Jul-05 6:22
Dimitris Vikeloudas8-Jul-05 6:22 
GeneralRe: Help with LookupAccountSid..still looking Pin
David Crow8-Jul-05 8:11
David Crow8-Jul-05 8:11 
GeneralUnderstanding Debug Information Displayed Pin
jerry1211a8-Jul-05 5:28
jerry1211a8-Jul-05 5:28 
GeneralRe: Understanding Debug Information Displayed Pin
S. Senthil Kumar8-Jul-05 6:03
S. Senthil Kumar8-Jul-05 6:03 
GeneralRe: Understanding Debug Information Displayed Pin
Tom Archer8-Jul-05 6:56
Tom Archer8-Jul-05 6:56 
GeneralIcon of an executable file Pin
voda8-Jul-05 5:10
voda8-Jul-05 5:10 
GeneralRe: Icon of an executable file Pin
David Crow8-Jul-05 5:40
David Crow8-Jul-05 5:40 
GeneralRe: Icon of an executable file Pin
Blake V. Miller8-Jul-05 16:44
Blake V. Miller8-Jul-05 16:44 
GeneralVC7, PROPVARIANT, #import Pin
peterchen8-Jul-05 4:41
peterchen8-Jul-05 4:41 
GeneralMultithreaded Client Pin
vadimpl8-Jul-05 4:32
vadimpl8-Jul-05 4:32 
GeneralRe: Multithreaded Client Pin
Ravi Bhavnani8-Jul-05 11:43
professionalRavi Bhavnani8-Jul-05 11:43 
GeneralDouble pointers question Pin
Budric B.8-Jul-05 4:06
Budric B.8-Jul-05 4:06 
GeneralRe: Double pointers question Pin
David Crow8-Jul-05 5:37
David Crow8-Jul-05 5:37 
GeneralRe: Double pointers question Pin
John R. Shaw8-Jul-05 10:13
John R. Shaw8-Jul-05 10:13 
GeneralRe: Double pointers question Pin
Toby Opferman8-Jul-05 10:31
Toby Opferman8-Jul-05 10:31 
GeneralDisplaying MFC dialog Pin
cdm5z8-Jul-05 3:39
cdm5z8-Jul-05 3:39 

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.