Am 08.02.2011 17:40, schrieb Kagamin:
Trass3r Wrote:

 >  HANDLE WINAPI FindFirstChangeNotification(
 >    __in  LPCTSTR lpPathName,
 >    __in  BOOL bWatchSubtree,
 >    __in  DWORD dwNotifyFilter
 >  );

 FindFirstChangeNotification is - like any other Windows function that receives 
a string - just an alias that points to a version with suffix W or A depending 
on whether your project is configured to be Unicode or not.

D string encoding is not configurable. What configuration are you talking about?

he talks about stuff like that (from winbase.h - vs2010)

WINBASEAPI
__out
HANDLE
WINAPI
CreateFileA(
    __in     LPCSTR lpFileName,
    __in     DWORD dwDesiredAccess,
    __in     DWORD dwShareMode,
    __in_opt LPSECURITY_ATTRIBUTES lpSecurityAttributes,
    __in     DWORD dwCreationDisposition,
    __in     DWORD dwFlagsAndAttributes,
    __in_opt HANDLE hTemplateFile
    );
WINBASEAPI
__out
HANDLE
WINAPI
CreateFileW(
    __in     LPCWSTR lpFileName,
    __in     DWORD dwDesiredAccess,
    __in     DWORD dwShareMode,
    __in_opt LPSECURITY_ATTRIBUTES lpSecurityAttributes,
    __in     DWORD dwCreationDisposition,
    __in     DWORD dwFlagsAndAttributes,
    __in_opt HANDLE hTemplateFile
    );
#ifdef UNICODE
#define CreateFile  CreateFileW
#else
#define CreateFile  CreateFileA
#endif // !UNICODE

not the string itself - look at lpFileName

Reply via email to