Click here to Skip to main content
15,920,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: FileSystemObject Pin
David Crow17-May-05 7:39
David Crow17-May-05 7:39 
GeneralRe: FileSystemObject Pin
pnpfriend17-May-05 8:03
pnpfriend17-May-05 8:03 
GeneralRe: FileSystemObject Pin
David Crow17-May-05 9:43
David Crow17-May-05 9:43 
GeneralRe: FileSystemObject Pin
pnpfriend18-May-05 9:34
pnpfriend18-May-05 9:34 
GeneralRe: FileSystemObject Pin
David Crow18-May-05 9:39
David Crow18-May-05 9:39 
GeneralRe: FileSystemObject Pin
pnpfriend23-May-05 10:56
pnpfriend23-May-05 10:56 
GeneralPlease Help with File Access Pin
Dimitris Vikeloudas17-May-05 5:20
Dimitris Vikeloudas17-May-05 5:20 
GeneralRe: Please Help with File Access Pin
Blake Miller17-May-05 6:29
Blake Miller17-May-05 6:29 
You need to pass buffer to the AccessCheck for the privilege set. You need to pass in a thread token, not the process token. Here are some tips:

For the PRIVILEGE_SET privileges;
I changed it to PRIVILEGE_SET* lpPrivileges;
and malloced about 8192 bytes.
Set the dwPrivilegeLength to 8192
Pass lpPrivileges (already a pointer) to AccessCheck instead of &privileges (which was your locla variable).

Then I got error 1309 instead, meaning you need to open the thread token instead of the process token. Look at using OpenThread with GetCurentThradId followed by OpenThreadToken and maybe error 1309 will go away or be replaced by something else.
GeneralRe: Please Help with File Access Pin
Blake Miller17-May-05 6:44
Blake Miller17-May-05 6:44 
GeneralRe: Please Help with File Access Pin
Dimitris Vikeloudas17-May-05 22:47
Dimitris Vikeloudas17-May-05 22:47 
Generalencrytping files Pin
dSolariuM17-May-05 4:50
dSolariuM17-May-05 4:50 
GeneralRe: encrytping files Pin
Blake Miller17-May-05 4:56
Blake Miller17-May-05 4:56 
GeneralRe: encrytping files Pin
David Crow17-May-05 5:54
David Crow17-May-05 5:54 
Generalnamespaces Pin
scratchmonkey17-May-05 4:24
scratchmonkey17-May-05 4:24 
GeneralRe: namespaces Pin
Trollslayer17-May-05 4:47
mentorTrollslayer17-May-05 4:47 
GeneralRe: namespaces Pin
scratchmonkey17-May-05 5:16
scratchmonkey17-May-05 5:16 
GeneralRe: namespaces Pin
Anthony_Yio17-May-05 17:27
Anthony_Yio17-May-05 17:27 
GeneralProblem in DLL Pin
rajas17-May-05 4:16
rajas17-May-05 4:16 
GeneralRe: Problem in DLL Pin
Blake Miller17-May-05 4:55
Blake Miller17-May-05 4:55 
GeneralRe: Problem in DLL Pin
rajas17-May-05 5:13
rajas17-May-05 5:13 
GeneralRe: Problem in DLL Pin
Blake Miller17-May-05 5:40
Blake Miller17-May-05 5:40 
GeneralRe: Problem in DLL Pin
rajas17-May-05 6:06
rajas17-May-05 6:06 
GeneralRe: Problem in DLL Pin
rajas17-May-05 10:04
rajas17-May-05 10:04 
GeneralThread priority management Pin
ilgale17-May-05 4:04
ilgale17-May-05 4:04 
GeneralRe: Thread priority management Pin
Bob Stanneveld17-May-05 4:59
Bob Stanneveld17-May-05 4:59 

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.