Click here to Skip to main content
15,885,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: QApplication(argc, argv) Pin
barneyman24-Apr-11 23:42
barneyman24-Apr-11 23:42 
GeneralRe: QApplication(argc, argv) Pin
Richard MacCutchan25-Apr-11 1:32
mveRichard MacCutchan25-Apr-11 1:32 
AnswerRe: QApplication(argc, argv) Pin
vishalgpt25-Apr-11 0:02
vishalgpt25-Apr-11 0:02 
AnswerRe: QApplication(argc, argv) Pin
Maximilien25-Apr-11 0:48
Maximilien25-Apr-11 0:48 
QuestionFixed row in list control Pin
MKC00223-Apr-11 20:49
MKC00223-Apr-11 20:49 
AnswerRe: Fixed row in list control Pin
«_Superman_»24-Apr-11 1:02
professional«_Superman_»24-Apr-11 1:02 
AnswerRe: Fixed row in list control Pin
ShilpiP24-Apr-11 19:30
ShilpiP24-Apr-11 19:30 
QuestionACL Pin
vishalgpt23-Apr-11 19:23
vishalgpt23-Apr-11 19:23 
hi to all,
I am writing a function to check access rights on file or folder using AclAPI.h

I am using following api's
GetFileSecurity()
ImperonateSelf()
OpenThreadToken()
MapGenericMask()
AccessCheck()

do i have to include

#pragma comment(lib, "advapi32.lib")

in my code or not.

Without including #pragma comment(lib, "advapi32.lib") Program is working.

and
BOOL WINAPI OpenThreadToken(
  __in   HANDLE ThreadHandle,
  __in   DWORD DesiredAccess,
  __in   BOOL OpenAsSelf,
  __out  PHANDLE TokenHandle
);

what does parameter in OpenThreadToken (OpenAsSelf) means.

Please give some valuable suggestions.
Regards,
Vishal

AnswerRe: ACL Pin
Hans Dietrich23-Apr-11 21:57
mentorHans Dietrich23-Apr-11 21:57 
GeneralRe: ACL Pin
vishalgpt23-Apr-11 23:24
vishalgpt23-Apr-11 23:24 
Questionwindows explorer on c++ using functions winapi Pin
Romanchicheck22-Apr-11 8:35
Romanchicheck22-Apr-11 8:35 
AnswerRe: windows explorer on c++ using functions winapi Pin
Code-o-mat22-Apr-11 9:51
Code-o-mat22-Apr-11 9:51 
GeneralRe: windows explorer on c++ using functions winapi Pin
Romanchicheck22-Apr-11 10:02
Romanchicheck22-Apr-11 10:02 
GeneralRe: windows explorer on c++ using functions winapi Pin
Code-o-mat22-Apr-11 10:15
Code-o-mat22-Apr-11 10:15 
GeneralRe: windows explorer on c++ using functions winapi Pin
HimanshuJoshi22-Apr-11 10:16
HimanshuJoshi22-Apr-11 10:16 
AnswerRe: windows explorer on c++ using functions winapi Pin
HimanshuJoshi22-Apr-11 10:17
HimanshuJoshi22-Apr-11 10:17 
QuestionCopying and executing code of a function Pin
Bashilein22-Apr-11 1:40
Bashilein22-Apr-11 1:40 
AnswerRe: Copying and executing code of a function [modified] Pin
Code-o-mat22-Apr-11 3:20
Code-o-mat22-Apr-11 3:20 
AnswerRe: Copying and executing code of a function Pin
barneyman22-Apr-11 3:20
barneyman22-Apr-11 3:20 
GeneralRe: Copying and executing code of a function Pin
Bashilein22-Apr-11 6:40
Bashilein22-Apr-11 6:40 
GeneralRe: Copying and executing code of a function Pin
Code-o-mat22-Apr-11 9:04
Code-o-mat22-Apr-11 9:04 
GeneralRe: Copying and executing code of a function Pin
Bashilein22-Apr-11 22:06
Bashilein22-Apr-11 22:06 
GeneralRe: Copying and executing code of a function Pin
barneyman23-Apr-11 2:22
barneyman23-Apr-11 2:22 
GeneralRe: Copying and executing code of a function Pin
Bashilein24-Apr-11 2:25
Bashilein24-Apr-11 2:25 
GeneralRe: Copying and executing code of a function Pin
David198724-Apr-11 8:01
David198724-Apr-11 8:01 

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.