WlanSaveTemporaryProfile function wlanapi

int WlanSaveTemporaryProfile(
  1. HANDLE hClientHandle,
  2. Pointer<GUID> pInterfaceGuid,
  3. PCWSTR strProfileName,
  4. PCWSTR? strAllUserProfileSecurity,
  5. int dwFlags,
  6. bool bOverWrite,
)

Saves a temporary profile to the profile store.

To learn more, see learn.microsoft.com/windows/win32/api/wlanapi/nf-wlanapi-wlansavetemporaryprofile.

Implementation

@pragma('vm:prefer-inline')
int WlanSaveTemporaryProfile(
  HANDLE hClientHandle,
  Pointer<GUID> pInterfaceGuid,
  PCWSTR strProfileName,
  PCWSTR? strAllUserProfileSecurity,
  int dwFlags,
  bool bOverWrite,
) => _WlanSaveTemporaryProfile(
  hClientHandle,
  pInterfaceGuid,
  strProfileName,
  strAllUserProfileSecurity ?? nullptr,
  dwFlags,
  bOverWrite ? TRUE : FALSE,
  nullptr,
);