M
M
MGNeo2018-12-24 07:29:40
C++ / C#
MGNeo, 2018-12-24 07:29:40

MinGW32, LockWorkStation() undefined symbol?

The problem is the following.
I am developing under Windows 10 , using the MinGW32 compiler and IDE Code::Blocks . I want to use the LockWorkStation() function , but the compiler cannot find the definition of this symbol. Although, if you go through the code editor to this definition, it is located in winuser.h .
According to MSDN , the function I need is in user32.lib . I could not find
such a file in the MinGW compiler directory, so I tried to use user32.lib from other locations, since I have several compilers. It didn't solve the problem.
I tried using the libuser32.a file , which is in the MinGW32 compiler directory , but that didn't help.
I am completely confused. Can you tell me what I need to do in order for MinGW to allow me to use the required function?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question