コード例 #1
0
ファイル: main.c プロジェクト: Azarien/processhacker2
VOID NTAPI LoadCallback(
    _In_opt_ PVOID Parameter,
    _In_opt_ PVOID Context
    )
{
    DiskDrivesInitialize();
    NetAdaptersInitialize();

    DiskDrivesLoadList();
    NetAdaptersLoadList();
}
コード例 #2
0
ファイル: main.c プロジェクト: batidiane/processhacker2
static VOID NTAPI LoadCallback(
    _In_opt_ PVOID Parameter,
    _In_opt_ PVOID Context
    )
{
    if (WindowsVersion >= WINDOWS_VISTA)
    {
        if (IphlpHandle = LoadLibrary(L"iphlpapi.dll"))
        {
            GetIfEntry2_I = PhGetProcedureAddress(IphlpHandle, "GetIfEntry2", 0);
            GetInterfaceDescriptionFromGuid_I = PhGetProcedureAddress(IphlpHandle, "NhGetInterfaceDescriptionFromGuid", 0);
            NotifyIpInterfaceChange_I = PhGetProcedureAddress(IphlpHandle, "NotifyUnicastIpAddressChange", 0);
            CancelMibChangeNotify2_I = PhGetProcedureAddress(IphlpHandle, "CancelMibChangeNotify2", 0);
            ConvertLengthToIpv4Mask_I = PhGetProcedureAddress(IphlpHandle, "ConvertLengthToIpv4Mask", 0);
        }
    }

    NetAdaptersInitialize();
    NetAdaptersLoadList();
}