Click here to Skip to main content
15,891,943 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: question about CRITICAL_SECTION. Pin
George226-Jan-03 2:10
George226-Jan-03 2:10 
GeneralRe: question about CRITICAL_SECTION. Pin
peterchen26-Jan-03 6:33
peterchen26-Jan-03 6:33 
GeneralRe: question about CRITICAL_SECTION. Pin
George226-Jan-03 14:18
George226-Jan-03 14:18 
GeneralError: Inaccurate System Timer Pin
Edwin Geng25-Jan-03 21:54
Edwin Geng25-Jan-03 21:54 
GeneralRe: Error: Inaccurate System Timer Pin
Gary R. Wheeler26-Jan-03 5:23
Gary R. Wheeler26-Jan-03 5:23 
Generalfatal error LNK1104: cannot open file "nafxcw.lib" Pin
jimNLX25-Jan-03 21:07
jimNLX25-Jan-03 21:07 
GeneralRe: fatal error LNK1104: cannot open file "nafxcw.lib" Pin
bryce25-Jan-03 23:37
bryce25-Jan-03 23:37 
GeneralHANDLE to a directory in Win-ME Pin
Piccinano25-Jan-03 20:34
Piccinano25-Jan-03 20:34 
Windows ME
Visual C++ 6.0

Hi!

I need to get/set the attibutes and date/time of directories.
I tried the win32 functions GetFileTime & SetFileTime. For this functions I need a handle to the directory.


HANDLE handle = CreateFile(
"C:\\TEMP",
GENERIC_READ, //for GetFileTime
0, //don't share
NULL, //no SECURITY_ATTRIBUTES
OPEN_EXISTING,
FILE_NORMAL, //also tried FILE_ATTRIBUTE_DIRECTORY
//and & FILE_FLAG_BACKUP_SEMANTICS
NULL);


I always get INVLID_HANDLE_VALUE, GetLastError returns 5.

How to get a handle in Win 95-98?

Thanx


GeneralRe: HANDLE to a directory in Win-ME Pin
Mike Nordell26-Jan-03 14:07
Mike Nordell26-Jan-03 14:07 
GeneralWTL documentation, free book, tutorial... Pin
axa25-Jan-03 18:23
axa25-Jan-03 18:23 
GeneralRe: WTL documentation, free book, tutorial... Pin
saierdia25-Jan-03 20:11
saierdia25-Jan-03 20:11 
GeneralDialog/Thread Question Pin
SAVAGE KEN25-Jan-03 15:04
sussSAVAGE KEN25-Jan-03 15:04 
GeneralRe: Dialog/Thread Question Pin
Michael Dunn25-Jan-03 15:46
sitebuilderMichael Dunn25-Jan-03 15:46 
QuestionCasting DWORD to String? Pin
georgiek5025-Jan-03 13:45
georgiek5025-Jan-03 13:45 
AnswerRe: Casting DWORD to String? Pin
Mike Nordell25-Jan-03 14:39
Mike Nordell25-Jan-03 14:39 
GeneralRe: Casting DWORD to String? Pin
georgiek5026-Jan-03 0:58
georgiek5026-Jan-03 0:58 
GeneralRe: Casting DWORD to String? Pin
Mike Nordell26-Jan-03 2:03
Mike Nordell26-Jan-03 2:03 
GeneralRe: Casting DWORD to String? Pin
PJ Arends26-Jan-03 17:02
professionalPJ Arends26-Jan-03 17:02 
GeneralRe: Casting DWORD to String? Pin
georgiek5027-Jan-03 1:40
georgiek5027-Jan-03 1:40 
GeneralDouble Click Tree Control Pin
25-Jan-03 11:44
suss25-Jan-03 11:44 
GeneralRe: Double Click Tree Control Pin
Michael Dunn25-Jan-03 15:47
sitebuilderMichael Dunn25-Jan-03 15:47 
GeneralInvoking the JVM from C++ Pin
Member 8408525-Jan-03 6:05
Member 8408525-Jan-03 6:05 
GeneralArrrggghh! Threads and CInternetSession Pin
(Steven Hicks)n+125-Jan-03 5:17
(Steven Hicks)n+125-Jan-03 5:17 
GeneralRe: Arrrggghh! Threads and CInternetSession Pin
Neville Franks25-Jan-03 10:14
Neville Franks25-Jan-03 10:14 
GeneralRe: Arrrggghh! Threads and CInternetSession Pin
(Steven Hicks)n+125-Jan-03 10:24
(Steven Hicks)n+125-Jan-03 10:24 

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.