ylliX - Online Advertising Network

Logging from winapi callbacks

I am developing a C application in Visual Studio 2022, using winapi. I have some issues regarding logging (for debug purposes) from callbacks when using winapi thread pools. Below is a minimal example (without error handling, for shorter code): VOID CALLBACK WorkCallback(PTP_CALLBACK_INSTANCE instance, PVOID parameter, PTP_WORK work) { UNREFERENCED_PARAMETER(instance); UNREFERENCED_PARAMETER(parameter); UNREFERENCED_PARAMETER(work); printf(“Hello from WorkCallback\n\r”); } […]

What does the HRESULT code 0x80193AFC mean?

On Windows 10 Enterprise LTSC Version 1809 Build 17763.6054 I try to run the Windows Win32 API syscall within my rust program: windows::Win32::Management::MobileDeviceManagementRegistration::RegisterDeviceWithManagement This function will register the device to an MDM server. I get the following HRESULT error code: 0x80193AFC when it is run. I was not able to find this code documented anywhere […]