The Wayback Machine - https://web.archive.org/web/20200715113441/https://github.com/topics/winapi
Skip to content
#

winapi

Here are 433 public repositories matching this topic...

pocesar
pocesar commented Jun 11, 2019

I'm trying to convert the C code for TaskScheduler COM to rust, and currently stuck with the VARIANT argument of ITaskService::Connect:

    //  Create an instance of the Task Service.
    let mut p_service: *mut ITaskService = unsafe { std::mem::zeroed() };

    let hr = unsafe {
      CoCreateInstance(
        &TaskScheduler::uuidof(),
        ptr::null_mut(),
        CLSCTX_IN
mpolicki
mpolicki commented Jul 28, 2018

I tried using the ScreenToClient and ClientToScreen methods in WinApi/WinApi/Windows/NativeWindow.cs because I thought they did the same thing as the Windows functions of the same name. But, after getting unexpected results, I noticed that the methods had AdjustWindowRectEx/InverseAdjustWindowRectEx calls in them as well, which results in something other than a simple client/screen coord

Improve this page

Add a description, image, and links to the winapi topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the winapi topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.