If the function fails, the return value is a nonzero error code defined in Winerror.h. You can use the FormatMessage function with the FORMAT_MESSAGE_FROM_SYSTEM flag to get a generic description of the error.
Telegram группы: @ConfigMgr - Configuration Manager, Intune, MEM @ConfigMgrEN - Configuration Manager, Intune, MEM - English only @OpsMgr - Operations Manager, Data Protection Manager, Orchestrator @ITTalks - разговоры об IT @ITflood - флуд