SDL_GetWMInfo in Microsoft Windows

Hello,
I’m trying to add a menu to the window that SDL creates in
Microsoft Windows.
This is a snippet of my code:
#include “SDL.h”
#include “SDL_syswm.h”

[…]

int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
SDL_SysWMinfo wmInfo;
SDL_VERSION(&wmInfo.version); // Imprescindible
int i = SDL_GetWMInfo(&wmInfo);
if (i != 1)
{
LOG_FATAL("Al obtener el manejador de la ventana de SDL: " << i);
MessageBox(
NULL,
_T(“Error al obtener el manejador de la ventana de SDL.”),
szTitle,
NULL);
return -1;
}
LOG_TRACE(“Estableciendo men?..”);
HMENU menu = LoadMenu(hInstance, _T(“CARGADORWIN32MENU”));
if (menu == NULL)
{
LOG_FATAL(“Al cargar el men?.”);
MessageBox(
NULL,
_T(“Error al cargar el men?.”),
szTitle,
NULL);
return -1;
}
if (SetMenu( wmInfo.window, menu ) == 0)
{
LOG_FATAL("Al establecer el men? a la ventana: " << GetLastError());
MessageBox(
NULL,
_T(“Error al establecer el men?.”),
szTitle,
NULL);
return -1;
}

[…]

I’m using SDL-1.2.13_vc80 and the problem is that SDL_GetWMInfo(&wmInfo)
returns 0 (not implemented?).

I must have access to the Window because I need to add a menu to it. Is
there another way to get the handle of the window created by SDL? Or, can I
create a window and force SDL to use it instead of the one it creates? What
I had before trying to get the handle was two windows: mine (with menu) and
SDL’s one with the OpenGL context running on it. But now I need the next
step…

Thanks.