HI.
Is accessing WMI thread safe?
I mean this:
I my Thread repeatedly list the print jobs in the sn spool with this code
FSWbemLocator := CreateOleObject('WbemScripting.SWbemLocator');
FWMIService := FSWbemLocator.ConnectServer('localhost', 'root\CIMV2', WbemUser, WbemPassword);
FWbemObjectSet:= FWMIService.ExecQuery('SELECT * FROM Win32_PrintJob','WQL',wbemFlagForwardOnly);
oEnum := IUnknown(FWbemObjectSet._NewEnum) as IEnumVariant;
etc. ......
Do I need to protect that with a criticalsection Acquire/Release?
Thank you