Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

failed to call Windows api WNetGetUniversalNameW, error code 1203 #593

Open
@chenjie4255

Description

@chenjie4255

How to Reproduce

  • Use File Explorer map a memfs64 file system to X:
  • Calling the sample application and pass the "X:"

The source code of sample application are list below:

int wmain(int argc, wchar_t** argv) {std::wstring filename = std::wstring(argv[1]);WCHAR buffer[MAX_PATH];DWORD size = MAX_PATH;DWORD ret = WNetGetUniversalNameW(filename.c_str(), REMOTE_NAME_INFO_LEVEL, buffer, &size);if (ret != NO_ERROR) {auto lastError = GetLastError();std::wcout << L"Failed to get universal name W, error: " << ret << L",lasterror=" << lastError << std::endl;return lastError;}else {std::wcout << L"REMOTE name: " << buffer << std::endl;}}

Behaviors

Expected:

  • call WNetGetUniversalNameW ok
    • I also tested another network drive which is a Samba client, The API call worked without error.

Actual:

  • Output: error code 1203

Environment

  • OS version and build: win11 pro 22631.4571
  • WinFsp version and build: 23075

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp