Windows API Translation

dennis luehring dl.soluz at gmx.net
Tue Feb 8 08:44:50 PST 2011


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?

or these typical win-api phobos constructs

from std.file

auto h = useWfuncs ?
CreateFileW(std.utf.toUTF16z(name), defaults) : 
CreateFileA(toMBSz(name), defaults);


More information about the Digitalmars-d mailing list