Questions tagged [lpwstr]

The LPWSTR type is a 32-bit pointer to a string of 16-bit Unicode characters, which MAY be null-terminated.

The LPWSTR type is a 32-bit pointer to a string of 16-bit Unicode characters, which MAY be null-terminated.

http://msdn.microsoft.com/en-us/library/cc230355.aspx

19 questions
0
votes
0 answers

Marshaling Parameters to C++ API Function Call From C# Application

I'm calling calling a C/C++ function from a dll within my C# application. I can't for the life of me figure out how to properly Marshall the data. Here's the information on the API function I am trying to call: LONG LoginDialog(HWND hWndParent, …
user2481095
  • 2,024
  • 7
  • 22
  • 32
0
votes
2 answers

How to concatenate char* and LPWSTR string?

I want to use MoveFile function, this function use two LPWSTR arguments, but I have one char* and LWSTR, how to concatenate them? //move file LPWSTR latestFile = L"test.SPL"; char* spoolFolder = "C:\\Windows\\System32\\spool\PRINTERS\\"; …
BILL
  • 4,711
  • 10
  • 57
  • 96
-2
votes
2 answers

C++ Read values from the registry

I want to display these registry key values: MSSQL12.MSSQLSERVER MSSQL15.SQLEXPRESS MSSQL11.TEW_SQLEXPRESS Code: if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, TEXT("SOFTWARE\\Microsoft\\Microsoft SQL Server\\Instance Names\\SQL"), 0, …
Alexandr
  • 243
  • 2
  • 3
  • 15
-3
votes
1 answer

Never seen this syntax before, can someone explain..... return L""

Its been difficult trying to find an explanation online on the below syntax and searching for L"" in these forums doesn't provide any results. I'm inside Qt5 debugging an application which is too lengthy to paste here. I'm trying to resolve this…
bAsH
  • 25
  • 4
1
2