LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to use the Handle returned by open with LockFileEx

Solved!
Go to solution

Hi,

 

I am trying to use the file handle returned by open to lock the file using Windows SDK function LockFileEx. It is giving me an error like invalid handler. Pl suggest me the solution.

 

regards,

0 Kudos
Message 1 of 2
(3,260 Views)
Solution
Accepted by topic author ramjeev

Are you using an SDK function to open the file? The handle from the ANSI fopen() or the CVI OpenFile() functions will not work - you need the SDK function handle.

 

JR

Message 2 of 2
(3,250 Views)