I hereby claim:
- I am yuk7 on github.
- I am yuk7 (https://keybase.io/yuk7) on keybase.
- I have a public key ASBNgw1dfZlc4bHEdyPdle9_td-0ZtE95bxBgF8s1MTpaQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#include <stdio.h> | |
#include <windows.h> | |
typedef int (WINAPI *FUNC)(PCWSTR,PCWSTR); | |
int main() | |
{ | |
HMODULE hmod; | |
FUNC func; | |
$wslapi = &{ | |
$wsldll = @' | |
[DllImport("wslapi.dll", CharSet = CharSet.Ansi)] | |
public static extern bool WslIsDistributionRegistered( | |
[MarshalAs(UnmanagedType.LPWStr)]string distributionName); | |
[DllImport("wslapi.dll", CharSet = CharSet.Ansi)] | |
public static extern uint WslUnregisterDistribution( | |
[MarshalAs(UnmanagedType.LPWStr)]string distributionName); |