LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

LockWorkStation missing prototype error.

Solved!
Go to solution

I get missing prototype error when I call sdk function LockWorkStation.

I have included window.h. (First file)

Windows XP.

What am I missing?

 

Message Edited by test_man on 03-16-2010 04:17 PM
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 1 of 2
(3,130 Views)
Solution
Accepted by topic author test_man

Add this before Windows.h if you're running XP

 

#define _WIN32_WINNT 0x0501 

 

Other values used for different versions of the Win OS. (0x0500 for Win2K, 0x0600 for Vista for example).

 

 

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

 

 

It's an OS-specific function so you need to indicate what OS you're targeting.    The prototype is in winusers.h but it's guarded by a check for the OS version.

 

Menchar

 

 

Message 2 of 2
(3,117 Views)