mousey
mousey

Reputation: 11901

Need some help with #define

In the #define what does the L mean ?

#define NT_DEVICE_NAME      L"\\Device\\SIOCTL"

Upvotes: 1

Views: 79

Answers (2)

Jörgen Sigvardsson
Jörgen Sigvardsson

Reputation: 4887

It means that the string is a unicode (UTF-16) encoded string. A UTF-16 string is a sequence of 16 bit words, rather than 8 bit characters. Windows's native format for strings is UTF-16. See here for more information about unicode: http://www.unicode.org/

Upvotes: 0

AndreKR
AndreKR

Reputation: 33697

That the string should be of type wchar_t[].

Upvotes: 7

Related Questions