Switch to Bing in English
Copilot
あなたの日常的な AI アシスタント
Bing でこれらの結果が見つかりました
    賛成票29edited Jan 6, 2017 at 8:18

    Windows

    You can try to use GetComputerName and GetUserName, here is a example:

    #define INFO_BUFFER_SIZE 32767
    TCHAR infoBuf[INFO_BUFFER_SIZE];
    DWORD bufCharCount = INFO_BUFFER_SIZE;

    // Get and display the name of the computer.
    if( !GetComputerName( infoBuf, &bufCharCount ) )
    printError( TEXT("GetComputerName") );
    _tprintf( TEXT("\nComputer name: %s"), infoBuf );

    // Get and display the user name.
    if( !GetUserName( infoBuf, &bufCharCount ) )
    printError( TEXT("GetUserName") );
    _tprintf( TEXT("\nUser name: %s"), infoBuf );
    Content Under CC-BY-SA license
    これは役に立ちましたか?
  1. GetComputerNameA 関数 (winbase.h) - Win32 apps ...

  2. コンピュータ名を取得する - わびさびサンプルソース

  3. Win32API コンピュータ名を取得する …

    ウェブ2010年6月20日 · コンピュータ名を取得するには、GetComputerName関数を用いる。. GetComputerNameのプロトタイプ BOOL GetComputerName ( LPTSTR lpBuffer, // コンピュータ名 LPDWORD …

    • 推定読み取り時間:1 分
    • GetComputerNameA function (winbase.h) - Win32 apps

    • GetComputerName でコンピュータ名を取得 - プロバイダー ...

    • c++ - Get Computer Name and logged user name - Stack ...

    • Declare Function Api_GetComputerName& Lib "kernel32 ...

    • ホスト名とユーザ名を取得する方法【Windows API】 - erestage

    • 自分のコンピューター名を表示する

    このサイトを利用すると、分析、カスタマイズされたコンテンツ、広告に Cookie を使用することに同意したことになります。サード パーティの Cookie に関する詳細情報|Microsoft のプライバシー ポリシー