1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
/* The class is registered, let's create the program*/
hwnd = CreateWindowEx (
0, /* Extended possibilites for variation */
szClassName, /* Classname */
"Windows App", /* Title Text */
WS_OVERLAPPEDWINDOW, /* default window */
CW_USEDEFAULT, /* Windows decides the position */
CW_USEDEFAULT, /* where the window ends up on the screen */
544, /* The programs width */
375, /* and height in pixels */
HWND_DESKTOP, /* The window is a child-window to desktop */
NULL, /* No menu */
hThisInstance, /* Program Instance handler */
NULL /* No Window Creation data */
);
/* Make the window visible on the screen */
ShowWindow (hwnd, nFunsterStil);
hd_file = CreateFile("C:\\Users\\Kyle\\Desktop\\watcher",0,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
// ReadDirectoryChangesW(hd_file FILE_LIST_DIRECTORY,
//// __out PVOID lpBuffer, // this here
//// __in DWORD nBufferLength, // and this here
//// __in FALSE,
//// __in FILE_NOTIFY_CHANGE_LAST_ACCESS,
//// __out_opt PDWORD lpBytesReturned,
//// __inout_opt OVERLAPPED,
//// __in_opt LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine
////);
|