---
title: "FindFirstChangeNotification?"
type: "forum-thread"
url: "https://www.webforum.nu/amne/c-cpp/28072-findfirstchangenotification"
topic: "C/C++"
topic_url: "https://www.webforum.nu/amne/c-cpp"
author: "Misan"
published: "2001-07-26T12:33:00.000Z"
updated: "2001-08-02T23:13:00.000Z"
replies: 3
views: 561
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/c-cpp/28072-findfirstchangenotification"
---

# FindFirstChangeNotification?

## #1 — Misan, 2001-07-26T12:33Z

Är det nån som har använt FindFirstChangeNotification och FindNextChangeNotification som kan hjälpa mig och få detta till att fungera.

\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~
hTxtFile = FindFirstChangeNotification("C:\\\\Proj\\TestEvent", false,
    FILE_NOTIFY_CHANGE_FILE_NAME &#0124;    
    FILE_NOTIFY_CHANGE_LAST_WRITE &#0124; 
    FILE_NOTIFY_CHANGE_SIZE &#0124;	
    FILE_NOTIFY_CHANGE_ATTRIBUTES &#0124;
    FILE_NOTIFY_CHANGE_SECURITY);

		
    if(hTxtFile != INVALID_HANDLE_VALUE)
    {
	nResultFind = FindNextChangeNotification(hTxtFile);
    }
\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~

/Misan

Vid redigering....koden blir inte snygg vid för liten textruta =)

\[Redigerat av Misan den 26 jul 2001\]

Permalänk: https://www.webforum.nu/p/28072

## #2 — PeW, 2001-07-29T08:03Z

Men har du ingen mera kod med handtag m.m..?

Permalänk: https://www.webforum.nu/p/401114

## #3 — UlfT, 2001-07-29T10:27Z

Det ser ut som om du gjort ett litet slarvfel.
C:\\\\Proj\\TestEvent
ska nog vara
C:\\\\Proj\\\\TestEvent
alltså dubbla backslashar rakt igenom.

Permalänk: https://www.webforum.nu/p/401115

## #4 — developer, 2001-08-02T23:13Z

<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/hh/winbase/filesio_1545.asp>

Permalänk: https://www.webforum.nu/p/401116

---

Tråden på webben: https://www.webforum.nu/amne/c-cpp/28072-findfirstchangenotification
