Where is cmcfg32.lib?

I found the source code on MSDN about how to enable / disable privileges in C ++

According to the source code, the linker should contain cmcfg32.lib , but it cannot be found ...

I tried to compile without including this library, it compiles without any error, but when I run my program, it crashes with a fatal error.

So please, if you know which SDK contains cmcfg32.lib let me know;)

Thanks!

+4
source share
2 answers

It looks (to me) as a minor error in the code. Delete the line:

#pragma comment(lib, "cmcfg32.lib") 

Of, if you want the correct library to be linked automatically, change it to:

 #pragma comment(lib, "advapi32.lib") 
+2
source

This code connects me seamlessly using version 6.0a of the SDK. "cmcfg" googles as the configuration of the connection manager, I don’t know what it is or why it is needed here.

Just uninstall #pragma.

+4
source

Source: https://habr.com/ru/post/1305209/


All Articles