powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / C++ [игнор отключен] [закрыт для гостей] / rundll32 минимальный код
6 сообщений из 6, страница 1 из 1
rundll32 минимальный код
    #33885442
Tubrik
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Нужна помощь: минимальный (рабочий) код для dll запускаемой rundll32.
...
Рейтинг: 0 / 0
rundll32 минимальный код
    #33885581
Фотография buser
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Rundll32

The Run DLL utility (Rundll32.exe) included in Windows enables you to call functions exported from a 32-bit DLL. These functions must have the following syntax:


Код: plaintext
1.
2.
3.
4.
5.
void CALLBACK EntryPoint(
  HWND hwnd,        // handle to owner window
  HINSTANCE hinst,  // instance handle for the DLL
  LPTSTR lpCmdLine, // string the DLL will parse
  int nCmdShow      // show state
);
Note that EntryPoint is a placeholder for the actual function name. For a list of possible show states, see WinMain.

The following is the command-line syntax for Rundll32:

Код: plaintext
rundll32 DllName,FunctionName [Arguments]

DllName
Specifies the name of the DLL. The name cannot contain spaces, commas, or quotation marks. The utility searches for the DLL using the search criteria documented for the LoadLibrary function. Therefore, it is best to use the short name and provide a full path for the DLL.
FunctionName
Specifies the name of the function to call in DllName. Requires a comma (without no spaces) between DllName and FunctionName.
Arguments
Optional arguments for FunctionName.
Rundll32 loads the specified DLL using LoadLibrary, obtains the address of the function using the GetProcAddress function, and calls the function with the specified arguments, if any. When the function returns, Rundll32 unloads the DLL and exits.

It is possible to create a Unicode version of the function. Rundll32 first tries to find a function namedEntryPointW. If it cannot find this function, it tries EntryPointA, then EntryPoint. To create a DLL that supports ANSI on Windows Me/98/95 and Unicode otherwise, export two functions: EntryPointW and EntryPoint.
...
Рейтинг: 0 / 0
rundll32 минимальный код
    #33885738
Tubrik
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Когда пытаюсь вызвать функцию с именем funcName, пишет: ошибка отсутствует funcName
...
Рейтинг: 0 / 0
rundll32 минимальный код
    #33885765
Карабас Барабас
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Tubrik
T> Когда пытаюсь вызвать функцию с именем funcName, пишет:
T> ошибка отсутствует funcName
Значицца нет такой функции у тебя

PS: компиляторы С++ добавляют всякие префиксы, суффиксы к именам функций
Posted via ActualForum NNTP Server 1.3
...
Рейтинг: 0 / 0
rundll32 минимальный код
    #33885896
Akh
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Тут недавно "обсосали" эту проблему.
...
Рейтинг: 0 / 0
rundll32 минимальный код
    #33886026
Tubrik
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Все разобрался, нужно было еще файл *.def
...
Рейтинг: 0 / 0
6 сообщений из 6, страница 1 из 1
Форумы / C++ [игнор отключен] [закрыт для гостей] / rundll32 минимальный код
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]