We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cda417f + 5e55ed0 commit e889c44Copy full SHA for e889c44
msal_extensions/windows.py
@@ -5,6 +5,9 @@
5
_LOCAL_FREE = ctypes.windll.kernel32.LocalFree
6
_GET_LAST_ERROR = ctypes.windll.kernel32.GetLastError
7
_MEMCPY = ctypes.cdll.msvcrt.memcpy
8
+_MEMCPY.argtypes = [ctypes.c_void_p, ctypes.c_void_p, ctypes.c_size_t] # Note:
9
+ # Suggested by https://github.com/AzureAD/microsoft-authentication-extensions-for-python/issues/85 # pylint: disable=line-too-long
10
+ # Matching https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/memcpy-wmemcpy?view=msvc-160 # pylint: disable=line-too-long
11
_CRYPT_PROTECT_DATA = ctypes.windll.crypt32.CryptProtectData
12
_CRYPT_UNPROTECT_DATA = ctypes.windll.crypt32.CryptUnprotectData
13
_CRYPTPROTECT_UI_FORBIDDEN = 0x01
0 commit comments