Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / C++ [игнор отключен] [закрыт для гостей] / rundll32 минимальный код / 6 сообщений из 6, страница 1 из 1
28.07.2006, 14:50
    #33885442
Tubrik
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
rundll32 минимальный код
Нужна помощь: минимальный (рабочий) код для dll запускаемой rundll32.
...
Рейтинг: 0 / 0
28.07.2006, 15:20
    #33885581
buser
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
rundll32 минимальный код
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
28.07.2006, 16:00
    #33885738
Tubrik
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
rundll32 минимальный код
Когда пытаюсь вызвать функцию с именем funcName, пишет: ошибка отсутствует funcName
...
Рейтинг: 0 / 0
28.07.2006, 16:05
    #33885765
Карабас Барабас
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
rundll32 минимальный код
Tubrik
T> Когда пытаюсь вызвать функцию с именем funcName, пишет:
T> ошибка отсутствует funcName
Значицца нет такой функции у тебя

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


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