MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / GetTempPathW

Function GetTempPathW

pydevd_attach_to_process/winappdbg/win32/kernel32.py:3353–3365  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3351
3352
3353def GetTempPathW():
3354 _GetTempPathW = windll.kernel32.GetTempPathW
3355 _GetTempPathW.argtypes = [DWORD, LPWSTR]
3356 _GetTempPathW.restype = DWORD
3357
3358 nBufferLength = _GetTempPathW(0, None)
3359 if nBufferLength <= 0:
3360 raise ctypes.WinError()
3361 lpBuffer = ctypes.create_unicode_buffer("", nBufferLength)
3362 nCopied = _GetTempPathW(nBufferLength, lpBuffer)
3363 if nCopied > nBufferLength or nCopied == 0:
3364 raise ctypes.WinError()
3365 return lpBuffer.value
3366
3367
3368GetTempPath = GuessStringType(GetTempPathA, GetTempPathW)

Callers 1

GetTempFileNameWFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected